问题
I have a cocos2d-x project that I'm 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 amazon ads 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) everything builds fine, but when I have all 3, I get the error ?
回答1:
Add config in pod file.
post_install do |installer|
installer.pods_project.targets.each do |target|
if ['pod name', 'pod name',].include? target.name
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '4.0'
end
end
end
end
来源:https://stackoverflow.com/questions/53734127/what-is-other-linker-flags-issue-in-xcode-build-settings