CocoaPods - pod setup Failed: /usr/bin/git checkout master

此生再无相见时 提交于 2019-11-27 17:25:46

问题


After I run $sudo gem install cocoapods and then $pod setup, there is an error. Please help me to fix it.

[!] 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

回答1:


Looks like you have an edited spec that's messing with the git repo. The easiest way to fix this would be to delete the local copy of the specs repo. From terminal:

rm -rf ~/.cocoapods; pod setup

EDIT:

Today (1/30/14) there was an issue with the specs repo that may make you want to fix this. Read more about it on the CocoaPods Blog



来源:https://stackoverflow.com/questions/16825715/cocoapods-pod-setup-failed-usr-bin-git-checkout-master

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!