美文网首页
CocoaPods 错误 target overrides th

CocoaPods 错误 target overrides th

作者: 拂溪 | 来源:发表于2019-11-03 11:10 被阅读0次

    [!] The FlickrKit [Debug] target overrides the OTHER_LDFLAGS build setting defined in Pods/Target Support Files/Pods-FlickrKit/Pods-FlickrKit.debug.xcconfig'. This can lead to problems with the CocoaPods installation - Use the$(inherited)` flag, or
    - Remove the build settings from the target.

    [!] The FlickrKit [Release] target overrides the OTHER_LDFLAGS build setting defined in Pods/Target Support Files/Pods-FlickrKit/Pods-FlickrKit.release.xcconfig'. This can lead to problems with the CocoaPods installation - Use the$(inherited)` flag, or
    - Remove the build settings from the target.

    这种警告会导致编译出错。
    问题分析:
     Target 中的一些设置和CocoaPods 默认设置出现差异导致冲突。
    
    解决:

    保留 CocoaPods 中的设置。
    1、将PODS_ROOT 的值换成(inherited) 2、Other Linker Flags的值换成(inherited)
    3、终端执行下pod update
    然后再次编译项目试试
    网上还流行另外一种简单粗暴的方法
    点击项目文件 project.xcodeproj,右键显示包内容,用文本编辑器打开project.pbxproj,删除OTHER_LDFLAGS的地方,保存,回到 Xcode,编译通过。

    相关文章

      网友评论

          本文标题:CocoaPods 错误 target overrides th

          本文链接:https://www.haomeiwen.com/subject/courbctx.html