安装新的 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'`.
我想我会在下面分享修复。
最佳答案
问题出在规范存储库上,而不是在我这边。
在这里找到答案 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 存储库的副本及其任何分支。”
关于ios - Cocoapods 错误 : "Pull is not possible because you have unmerged files.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21534309/