cocoapods的安装问题

错误信息:

ERROR:  Could not find a valid gem 'cocoapods' (>= 0), here is why:

          Unable to download data from https://rubygems.org/ - Errno::ECONNRESET: Connection reset by peer - SSL_connect (https://rubygems.org/latest_specs.4.8.gz)


解决方案:

$gem sources --remove https://rubygems.org/

$gem sources -a https://ruby.taobao.org/

$ gem sources -l

接下来就可以根据cocoapods的官方方法安装了

你可能感兴趣的:(CocoaPods)