文章轉(zhuǎn)自http://blog.slogra.com/post-663.html
安裝cocoapods的時(shí)候,執(zhí)行pod setup輸出Setting up CocoaPods master repo,就一直卡在那不動(dòng)了,查看.cocoapods文件大小,一直在56K不變,實(shí)在讓人很焦急,終于在網(wǎng)上找到解決辦法.
系統(tǒng):mac os 10.11.5
解決方法:
1.執(zhí)行:
pod repo remove master
2.添加:
pod repo add master http://git.oschina.net/akuandev/Specs.git
會(huì)出現(xiàn)以下警告,直接忽略進(jìn)入第三步即可。
[!] To setup the master specs repo, please run `pod setup`.
3.下載:
git clone https://git.coding.net/CocoaPods/Specs.git ~/.cocoapods/repos/master
4.最后執(zhí)行:
pod repo update