升级到OSX EICapitan cocoapods 重装问题

更新后 cocoapods 需要重新安装,但是使用原来的淘宝源(http://ruby.taobao.org/)

 

会报错

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

          Unable to download data from http://ruby.taobao.org/ - bad response Not Found 404 (http://ruby.taobao.org/latest_specs.4.8.gz)

 

把http -> https

 

1.gem sources --remove http://ruby.taobao.org/

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

 

3.查看源对不对

gem sources -l

 

4.再安装就好了

sudo gem install cocoapods

你可能感兴趣的:(升级到OSX EICapitan cocoapods 重装问题)