What is “Other Linker Flags” issue in Xcode build settings?

亡梦爱人 提交于 2019-12-24 23:10:53

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!