$ 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
网友评论