每次在更新CocoaPods的Specs時候都會特別慢,很容易失敗。
cocoapods 的 sepcs 文件是放在 ~/.cocoapods/repos目錄
git clone https://github.com/CocoaPods/Specs.git master
其實(shí)無需全部 clone 下來,可以只 clone 最近一個 commit 的全部代碼就可以。
終端執(zhí)行:
git clone --depth=1 https://github.com/CocoaPods/Specs.git master