Cocoapods相关

关键字: 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
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容