關(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