关键字: 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版本
C177E0F0-6DAD-4C05-BD97-351A978E9A97.png
执行更新ruby
$ rvm list known
找到想要安装或者最新的ruby版本执行 安装
image.png$ rvm install 2.3
更新完成之后 检查ruby版本
0A3539FA-A096-47E6-BC7F-66659D61DFC8.png
网友评论