ios – “sudo pod install”出错

前端之家收集整理的这篇文章主要介绍了ios – “sudo pod install”出错前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我已经有一个项目使用podfile.

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

错误

@H_502_7@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:

@H_502_7@platform :ios,'5.0' pod 'TTTAttributedLabel','~> 1.6.0' pod 'ECSlidingViewController','~> 0.9.0'

我试图取得成功:

@H_502_7@gem install cocoapods pod setup

注意:我在pod设置中遇到了同样的错误

解决方法

从命令行运行rm -rf~ / .cocoapods

然后再次运行pod安装.你不应该需要sudo.

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

猜你在找的iOS相关文章