[!] 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)
3、终端执行下pod update
然后再次编译项目试试
网上还流行另外一种简单粗暴的方法
点击项目文件 project.xcodeproj,右键显示包内容,用文本编辑器打开project.pbxproj,删除OTHER_LDFLAGS的地方,保存,回到 Xcode,编译通过。
网友评论