升级了 GM 版本,发现pod
命令提示command not found
,看来是 cocoapods 挂了啊,没关系,我重新安装一下,确定已经切换到了淘宝的 ruby 源,但是安装的时候却提示这个:
akringdeMacBook-Pro:~ akring$ gem sources
*** CURRENT SOURCES ***http://ruby.taobao.org/
akringdeMacBook-Pro:~ akring$ sudo gem install cocoapods
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError )
Errno::ECONNRESET: Connection reset by peer - SSL_connect ( https://api.rubygems.org/quick/Marshal.4.8/cocoapods-0.38.2.gemspec.rz )
akringdeMacBook-Pro:~ akring$
难道是源没切换成功吗?
而且 list gem 的时候也能看到, cocoapods 明明是已经安装过的:
akringdeMacBook-Pro:~ akring$ gem list
*** LOCAL GEMS ***
activesupport (4.2.2 )
bigdecimal (1.2.0 )
CFPropertyList (2.3.1, 2.2.8 )
claide (0.9.1, 0.8.1 )
cocoapods (0.38.2 )
cocoapods-core (0.38.2, 0.37.2 )
cocoapods-downloader (0.9.1, 0.9.0 )
cocoapods-plugins (0.4.2 )
cocoapods-stats (0.5.3 )
cocoapods-trunk (0.6.1 )
cocoapods-try (0.4.5 )
colored (1.2 )