美文网首页
pod 更新报错curl18 transfer closed w

pod 更新报错curl18 transfer closed w

作者: 白貂 | 来源:发表于2019-08-03 14:49 被阅读0次

$ 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

相关文章

网友评论

      本文标题:pod 更新报错curl18 transfer closed w

      本文链接:https://www.haomeiwen.com/subject/wiujdctx.html