【发布时间】:2014-11-24 16:27:47
【问题描述】:
所以我在我的 Xcode 项目中使用了 Venmo/Synx 和 CocoaPods,结果完全搞砸了。
我能够修复 Manifest.lock 和 Podfile.lock 错误,但现在我收到此错误:
文件“Pods.debug.xcconfig”无法打开,因为没有这样的文件。 (/Users/user/GitHub/xxxxxx/Pods/Pods/Target 支持文件/Pods/Pods.debug.xcconfig)
如您所见,路径不正确,因为没有Pods/Pods 目录(多了一个pod)。
我该如何解决这个问题?我只将PODS_ROOT 添加到用户定义的变量中,因为它修复了我的 Podfile 和 Manifest.lock 文件。
任何帮助将不胜感激!
编辑:
添加PODS_ROOT后,我在运行pod install时得到这个。
[!] The `Project [Debug]` target overrides the `PODS_ROOT` build setting defined in `Pods/Target Support Files/Pods/Pods.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
【问题讨论】:
-
再次运行
pod install可能会解决此问题。 -
@KeithSmiley 我已经尝试了很多次,包括删除所有 CocoaPods 的痕迹,然后重新添加。我也试过
pod update,但无济于事。只是无法解决这个问题。 -
Pods也应该从 synx 中排除:github.com/venmo/synx/blob/master/lib/synx/project.rb#L10 -
@KeithSmiley 是的,我也看到了,但是,我正在使用 SVProgressHUD,当我运行
synx时,它会删除所有图像,所以我再次运行 pod install,这给了我所有错误。我通过添加 PODS_ROOT 来修复它以消除 Podfile.lock 和 Manifest.lock 错误。现在我收到此错误:/ -
只是仔细检查...您是否正在打开工作区文件?或 .xcodeproj
标签: cocoapods xcode6.1 xcconfig