记录安装 Cocoapods 遇到的问题

来源:互联网 发布:搭讪 知乎 编辑:程序博客网 时间:2024/06/05 10:35

升级10.11.1以后发现 Cocoapods 不能用了,

上网查了一下资料,说是系统升级以后要这样安装 

sudo gem install -n /usr/local/bin cocoapods

好吧安装以后又出现这个问题

[!] /usr/bin/git clone https://github.com/CocoaPods/Specs.git master --depth=1

Cloning into 'master'...

fatal: unable to access 'https://github.com/CocoaPods/Specs.git/': SOCKS5 read error occurred

找了半天,原因是我根据http://blog.csdn.net/wuquan0625/article/details/47401235这篇文章设置了代理,把代理去掉就可以了

git config --global --unset https.proxy

git config --global --unset http.https://github.com.proxy




0 0
原创粉丝点击