Cocoapods: cloning spec repo `cocoapods` from `https://github.com/cocoapods/specs.git` compressing

問題:[!] 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)行下載,但是下載速度很慢

  1. 可以在 活動(dòng)監(jiān)視器里的網(wǎng)絡(luò)列表里找git-remote-https,這條即是當(dāng)前的下載進(jìn)度,可看到緩緩的在變動(dòng)下載數(shù)據(jù)
    image.png
  2. 何時(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
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容