我已经有一个项目使用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相冲突
原文地址:https://www.jb51.cc/iOS/333278.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。