iOS学习

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

2018-08-13  本文已影响49人  贝勒老爷

如果你 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
上一篇下一篇

猜你喜欢

热点阅读