19

在我运行$sudo gem install cocoapodsthen 之后$pod setup,出现错误。请帮我修复它。

[!] Pod::Executable pull

Updating eaf98af..ba3c030
error: Your local changes to the following files would be overwritten by merge:

    Google-Maps-iOS-SDK/1.3.0/Google-Maps-iOS-SDK.podspec

Please, commit your changes or stash them before you can merge.

Aborting
4

1 回答 1

32

看起来你有一个与 git repo 混淆的编辑规范。解决此问题的最简单方法是删除规范存储库的本地副本。从终端:

rm -rf ~/.cocoapods; pod setup

编辑:

今天(2014 年 1 月 30 日),specs repo 出现了一个问题,可能会让你想解决这个问题。在CocoaPods 博客上阅读有关它的更多信息

于 2013-05-30T14:01:55.927 回答