Cocoapods相關(guān)

關(guān)鍵字: Cocoapods, iOS, 開發(fā), 移動(dòng),Swift, 報(bào)錯(cuò)

error: RPC failed; curl 18 transfer closed with outstanding read data remaining

git clone 出現(xiàn)的錯(cuò)誤:
remote: Counting objects: 1111, done.
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 庫(kù)源文件過(guò)多,修改下默認(rèn)值即可。curl的postBuffer 默認(rèn)值較小,配置下個(gè)這個(gè)值,就OK了!

配置如下:

$ git  config --global http.postBuffer 524288000    // global 為指定當(dāng)前目錄 并非所有項(xiàng)目 相關(guān)字段請(qǐng)自行查閱 
$ git config --list

error:Server aborted the SSL handshake

OSX10.10升級(jí)上來(lái)的系統(tǒng)需要注意
請(qǐng)更新 ruby 在安裝 cocoapods 不然會(huì)有各種花式報(bào)錯(cuò)
如下圖



或者

ERROR: SSL verification error at depth 1: unable to get local issuer certificate (20)
ERROR: You must add /C=IL/O=StartCom Ltd./OU=Secure Digital Certificate Signing/CN=StartCom Certification Authority to your local trusted store
ERROR: SSL verification error at depth 2: self signed certificate in certificate chain (19)
ERROR: Root certificate is not trusted (/C=US/O=GeoTrust Inc./CN=GeoTrust Global CA)

檢查ruby版本


C177E0F0-6DAD-4C05-BD97-351A978E9A97.png

執(zhí)行更新ruby

$ rvm list known

找到想要安裝或者最新的ruby版本執(zhí)行 安裝

image.png
$ rvm install 2.3

更新完成之后 檢查ruby版本

0A3539FA-A096-47E6-BC7F-66659D61DFC8.png
最后編輯于
?著作權(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)容