美文网首页
iOS组件化学习-错误解决(2)

iOS组件化学习-错误解决(2)

作者: liuyihua的技术修炼场 | 来源:发表于2017-08-22 10:58 被阅读13次

CocoaPods 错误 target overrides the OTHER_LDFLAGS...

CocoaPods 错误 target overrides the OTHER_LDFLAGS...

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

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

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

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

这种警告是不能忽视的,它带来的直接后果就是无法通过编译。直接报错:

 ld: symbol(s) not found for architecture x86_64 clang:
 error: linker command  ........

而产生此警告的原因是项目 Target 中的一些设置,CocoaPods 也做了默认的设置,如果两个设置结果不一致,就会造成问题。

我想要使用 CocoaPods 中的设置,分别在我的项目中定义PODS_ROOTOther Linker Flags的地方,把他们的值用$(inherited)替换掉,进入终端,执行

   pod update --verbose --no-repo-update
image.png image.png

相关文章

网友评论

      本文标题:iOS组件化学习-错误解决(2)

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