无限卡在Setting up CocoaPods master repo
同事在mac上安装cocoapods的时候,执行pod setup输出Setting up CocoaPods master repo,就一直卡在那不动了,查看.cocoapods文件大小,一直在56K不变,实在让人很焦急,终于在网上找到解决办法.
系统:mac os 10.11.5
解决方法:
1.执行:
pod repo remove master
2.添加:
pod repo add master http://git.oschina.net/akuandev/Specs.git
3.下载:
git clone https://git.coding.net/CocoaPods/Specs.git ~/.cocoapods/repos/master
git clone https://git.oschina.net/akuandev/Specs.git ~/.cocoapods/repos/master
4.最后执行:
pod repo update
如果输出下图,则表示执行成功了
好了,就到这里吧.
ps:http://www.jianshu.com/p/43a268ba8f47
ps:http://www.jianshu.com/p/43a268ba8f47
评论: