"Other Linker Flags" in build settings (BUILD FAILED)

in my project that im working on I added cocoapods to it and originally all that was in “Other linker flags” was $(_COCOS_LIB_IOS_BEGIN) AND $(_COCOS_LIB_IOS_END) everything works fine but then I added google-mobile-ads and amazonads to my pod file and ran pod install and it said to add $(inherited) to my “other linker flags” target and I did but then i get this error. if I remove ($inherited) everything builds fine, if I keep ($inherited) and remove $(_COCOS_LIB_IOS_BEGIN) and $(_COCOS_LIB_IOS_END) everythings builds fine, but when I have all 3 I get the error ? is it safe to remove $(_COCOS_LIB_IOS_BEGIN) and $(_COCOS_LIB_IOS_END) ? or what would be the solution to this ?