美文网首页
xcode10 error $(inherited)

xcode10 error $(inherited)

作者: TryEnough | 来源:发表于2019-05-13 21:13 被阅读0次

原文:

http://tryenough.com/2278/

问题 :

解决使用 CocoaPods 执行 pod install 时出现 - Use the $(inherited) flag ... 警告[!]

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

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

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

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

解决方法

打开项目 Target - Build Settings ,

搜索 Other Linker Flags ,在这个设置上加入 $(inherited) 。

打开项目 Target - Build Settings,依次搜索如下图所示的警告上提示的设置名称,将这些设置选项全部改为 $(inherited) 。

然后重新执行 pod install 或者 pod update 就会发现警告消失了。

相关文章

网友评论

      本文标题:xcode10 error $(inherited)

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