問題:[!] cloning spec repo cocoapods
from https://github.com/cocoapods/Specs.git
compressing
-
方法一
1.概況
終端顯示
Cloning spec repo 'cocoapods' from 'https://github.com/CocoaPods/Specs.git'
2.原因
其實是正在從github上進行下載,但是下載速度很慢
- 可以在 活動監(jiān)視器里的網(wǎng)絡(luò)列表里找git-remote-https,這條即是當(dāng)前的下載進度,可看到緩緩的在變動下載數(shù)據(jù)
image.png - 何時下載完成,這里可利用github的api查看下項目大小
https://api.github.com/repos/CocoaPods/Specs
這是github的api,返回一串json,是項目的相關(guān)信息.里面找size,即是項目大小,我看得750M多, so 耐心些等吧
-
方法二
1叶撒、
pod setup
cd ~/.cocoapods/repos
git clone --depth 1 https://github.com/CocoaPods/Specs.git master
image
2补疑、如果報錯:
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
解決方法:
git config --global http.postBuffer 524288000