2018-03-08更新代码cocapods问题
2018-03-08 本文已影响4人
__Seven
在更新代码的时候如果其他开发者更新了一些cocopods的库,或者代码出现冲突的时候。
执行
pod install
或者
pod update
时候可能会出现
[!] Unable to find the Xcode project类似这种错误,解决方法是
找到当前工程中的Podfile 修改Podfile文件为
在Pod file中添加:
xcodeproj '***.xcodeproj'
其中***是项目名
·然后执行pod命令
或者执行命令的时候遇到
[!] Failed to connect to GitHub to update the CocoaPods/Specs specs repo - Please
check if you are offline, or that GitHub is down
要执行下面的操作
设法解决它删去 ./cocoapods/repos/master,运行 pod install.
重新更新pod版本
pod repo remove master
pod setup
pod install