CocoaPods-Pod设置失败:/ usr / bin / git checkout master [英] CocoaPods - pod setup Failed: /usr/bin/git checkout master

查看:93
本文介绍了CocoaPods-Pod设置失败:/ usr / bin / git checkout master的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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


推荐答案

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

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

编辑:

今天( 1/30/14)规格库存在问题,可能使您想解决此问题。在 CocoaPods博客

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

这篇关于CocoaPods-Pod设置失败:/ usr / bin / git checkout master的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆