重新升级了MAC OS,XCODE版本后,pod update更新依赖包时,出现如下提示:
[!] The `XXX_dev_debug [Distribution]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods/Pods.distribution.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
而之前是正常的,估计是XCODE升级带来的问题吧。
按提示,在编译选项里,如上面的OTHER_LDFLAGS里添加$(inherited)添加进去就可以了
[!] The `XXX_dev_debug [Distribution]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods/Pods.distribution.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
而之前是正常的,估计是XCODE升级带来的问题吧。
按提示,在编译选项里,如上面的OTHER_LDFLAGS里添加$(inherited)添加进去就可以了

在MacOS升级至新版本并更新Xcode后,尝试使用pod update来更新依赖包时,遇到目标覆盖OTHER_LDFLAGS设置的问题。通过在编译选项中添加$(inherited)解决了此错误。
2079

被折叠的 条评论
为什么被折叠?



