愉快滴,从cocoapods0.39.0升级到1.1.1

2016-11-08  本文已影响0人  jimmyken

多年的项目,一直使用cocoapods0.39.0管理,
最近升级系统后装了新版的cocoapods1.1.1,
最初没有异样,debug,Archive都是正常的,原因是pods的文件也是上传到了gitlib。
因为要更新库,pod update后就悲剧了。

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

提示pod的新版静态库路径已经更改了,需要手动调整。

vim xxxxxx.xcodeproj/project.pbxproj 找到LIBRARY_SEARCH_PATHS = ( 这里包含了需要的静态库文件,添加Podfile里面所有的库信息,例如:
""$PODS_CONFIGURATION_BUILD_DIR/SDWebImage"",
这里注意的:
1.添加Podfile里面的所有库,库相互引用的也要添加,
2.两处地方要改,一处是debug,一处使release的,
最后给一个截图,重要的信息我去掉,不影响最终效果

例图.png
上一篇下一篇

猜你喜欢

热点阅读