关键字: Cocoapods, iOS, 开发, 移动,Swift, 报错
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
git clone 出现的错误:
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 库源文件过多,修改下默认值即可。curl的postBuffer 默认值较小,配置下个这个值,就OK了!
配置如下:
$ git config --global http.postBuffer 524288000 // global 为指定当前目录 并非所有项目 相关字段请自行查阅
$ git config --list
error:Server aborted the SSL handshake
OSX10.10升级上来的系统需要注意
请更新 ruby 在安装 cocoapods 不然会有各种花式报错
如下图
或者
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版本
执行更新ruby
$ rvm list known
找到想要安装或者最新的ruby版本执行 安装
$ rvm install 2.3
更新完成之后 检查ruby版本