首次安装 cocopod pod setup 出错网速不好的话

如果你 pod setup 之后出现这个问题

$ pod setup  
Setting up CocoaPods master repo  
[!] /usr/bin/git clone https://github.com/CocoaPods/Specs.git master  
Cloning into ‘master’…  
error: RPC failed; curl 18 transfer closed with outstanding read data remaining  
fatal: The remote end hung up unexpectedly  
fatal: early EOF  

那么就这样

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

你可能感兴趣的:(首次安装 cocopod pod setup 出错网速不好的话)