文章转自http://blog.slogra.com/post-663.html
安装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
会出现以下警告,直接忽略进入第三步即可。
[!] To setup the master specs repo, please run pod setup
.
3.下载:
git clone https://git.coding.net/CocoaPods/Specs.git ~/.cocoapods/repos/master
4.最后执行:
pod repo update