ios – “sudo pod install”出错

我已经有一个项目使用podfile.

我想在一个旧项目上添加一个Podfile,但是我收到了这个错误
sudo pod安装

错误

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安装.你不应该需要sudo.

这看起来像是因为规范发生了变化而且与运行git pull相冲突

相关文章

UITabBarController 是 iOS 中用于管理和显示选项卡界面的一...
UITableView的重用机制避免了频繁创建和销毁单元格的开销,使...
Objective-C中,类的实例变量(instance variables)和属性(...
从内存管理的角度来看,block可以作为方法的传入参数是因为b...
WKWebView 是 iOS 开发中用于显示网页内容的组件,它是在 iO...
OC中常用的多线程编程技术: 1. NSThread NSThread是Objecti...