在安装新的CocoaPod时,我得到了以下错误。
$ pod install
Analyzing dependencies
[!] Pod::Executable pull
A AFHARchiver/0.2.1/AFHARchiver.podspec
A AFWunderlist/1.0/AFWunderlist.podspec
A AFWunderlist/1.1/AFWunderlist.podspec
A AFgzipRequestSerializer/0.0.1/AFgzipRequestSerializer.podspec。。。
A wpxmlrpc/0.4/wpxmlrpc.podspec
A zipzap/6.0/zipzap.podspec
Pull is not possible because you have unmerged files.
Please, fix them up in the work tree, and then use `'git add/rm <file>'`
as appropriate to mark resolution, or use `'git commit -a'`.我想我会分享下面的修复方法。
发布于 2014-02-04 02:01:02
问题出在specs仓库,而不是我这边。
在这里podfile gives an error on install找到了答案,但由于问题在症状上不太明确,我想我应该再次交叉引用它,以防有人以不同的方式查看它。
答案在这里的博客文章http://blog.cocoapods.org/Repairing-Our-Broken-Specs-Repository/中,它解释了这个问题和修复方法,下面重复:
“您必须手动删除Specs存储库的任何本地副本,并重新克隆Specs存储库的新版本。您可以使用以下命令执行此操作:
$ pod repo remove master
$ pod setup如果您对Specs存储库有任何未合并的本地提交或更改,则应确保您拥有它们的副本。我建议您手动复制这些更改并重新提交它们。您可以在不删除的情况下修复您的存储库,但是,这不是一个简单的过程,因此我们建议您删除Specs存储库的副本及其任何分支。“
发布于 2014-02-27 21:06:25
rm -rf ~/.cocoapods也可以工作
https://stackoverflow.com/questions/21534309
复制相似问题