错误“sudo pod安装”
我已经有一个项目与一个podfile工作。
我想在旧项目上添加一个Podfile,但是我在sudo pod install
上遇到这个错误
错误:
Resolving dependencies of `./Podfile' Updating spec repositories [!] git pull Updating 35bbbaf..8b42708 error: The following untracked working tree files would be overwritten by merge: AFXAuthClient/1.0.4/AFXAuthClient.podspec Please move or remove them before you can merge. Aborting
这很奇怪,因为我没有在我的项目上使用AFXAuthClient,我从来没有使用它。
这是我的Podfile:
platform :ios, '5.0' pod 'TTTAttributedLabel', '~> 1.6.0' pod 'ECSlidingViewController', '~> 0.9.0'
我试图没有成功:
gem install cocoapods pod setup
注意:我得到与pod安装程序相同的错误
从命令行运行rm -rf ~/.cocoapods
然后再次运行pod install
。 你不应该需要sudo。
这看起来像是因为规范发生了变化,而且与运行git pull
相冲突
如果你看到这样的错误,那可能是因为CocoaPods不得不强制推送他们的回购 。 他们build议:
pod repo remove master pod setup