問題:[!] 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.原因
其實(shí)是正在從github上進(jìn)行下載,但是下載速度很慢
- 可以在 活動(dòng)監(jiān)視器里的網(wǎng)絡(luò)列表里找git-remote-https,這條即是當(dāng)前的下載進(jìn)度,可看到緩緩的在變動(dòng)下載數(shù)據(jù)
image.png - 何時(shí)下載完成,這里可利用github的api查看下項(xiàng)目大小
https://api.github.com/repos/CocoaPods/Specs
這是github的api,返回一串json,是項(xiàng)目的相關(guān)信息.里面找size,即是項(xiàng)目大小,我看得750M多, so 耐心些等吧
-
方法二
1、
pod setup
cd ~/.cocoapods/repos
git clone --depth 1 https://github.com/CocoaPods/Specs.git master

image
2、如果報(bào)錯(cuò):
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
