pod 更新报错curl18 transfer closed with outstanding read data remaining

$ pod setup

Setting up CocoaPods master repo

[!] /usr/bin/git clonehttps://github.com/CocoaPods/Specs.git master

Cloning into ‘master’…

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

fatal: The remote end hung up unexpectedly

fatal: early EOF

fatal: index-pack failed解决方法:上面错误主要是os10.11+和cocoapods1.0+版本升级的安全机制更改造成的。主要出现在pod setup过程中。且该过程等待时间非常长,所以,你可以在$sudo gem install -n /usr/local/bin cocoapods命令后直接执行$Gitclone https://git.coding.net/CocoaPods/Specs.git ~/.cocoapods/repos/master 该过程作用与 pod setup作用相同,作者亲测。效果极佳!!!!

如果还不成功!!!!可以同样的方法安装正式版v0.39 然后在升级到v1.0版本

gem update --system

sudo geminstall -n /usr/local/bin cocoapods--pre

链接:https://www.jianshu.com/p/0e3421961db4

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

相关阅读更多精彩内容

友情链接更多精彩内容