我的所有目标使用相同的库,因此我使用link_with使我的podfile整洁.但令我惊讶的是,编译的项目失败了.
Xcode抱怨它无法在pod中找到一些文件,例如
diff: /../Podfile.lock: No such file or directory diff:
/Manifest.lock: No such file or directory error: The sandBox is not in
sync with the Podfile.lock. Run ‘pod install’ or update your CocoaPods
installation.
和
‘DDLog.h’ file not found
我再次运行pod安装并一次又一次清理xcode.但没有运气.我无法弄清楚原因.从我所看到的,cocopods只将每个目标的shellScript更改为一个Pods-resources.sh,这就是link_with应该做的,对吧?
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-CloudPhone/Pods-"my target"-resources.sh\"\n"; shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh\"\n";
这是cocopods的错误吗?我正在使用最新的0.37,现在我回去单独指定每个目标.
更新:
CocoaPods 1.0已删除link_with而支持abstract_target