多年的項目,一直使用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