ios - Cocoapods 错误 : "Pull is not possible because you have unmerged files."

标签 ios macos cocoapods

安装新的 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/

相关文章:

ios - 如何以编程方式重定向到 iOS 中的电池健康页面?

ios - iPhone 应用程序错误预期标识符或 '('

ios - 使用泛型将两个泛型数组放入一个 Swift 字典中

ios - 找不到 -lRCTGeolocation 的库

ios - XCode 5.1 的 Cocoapods 错误

cocoapods - iOS Siri Intents Extension "I don' 看不到应用程序。你需要下载一个。”

ios - 是否有同时处理捏合和平移的手势识别器?

iphone - 使用 UIViewContentModeScaleAspectFit 填充 View ?

PHP 执行 casperjs/phantomjs 脚本

swift - 覆盖 NSSearchFieldCell 导致占位符不居中