解决CocoaPods/Specs下载缓慢的问题

每次在更新CocoaPods的Specs时候都会特别慢,很容易失败。
cocoapods 的 sepcs 文件是放在 ~/.cocoapods/repos目录

git clone https://github.com/CocoaPods/Specs.git master

其实无需全部 clone 下来,可以只 clone 最近一个 commit 的全部代码就可以。
终端执行:

git clone --depth=1  https://github.com/CocoaPods/Specs.git master

你可能感兴趣的:(解决CocoaPods/Specs下载缓慢的问题)