/Users/mac/.rvm/rubies/ruby-2.2.0/lib/ruby/site_ruby/2.2.0/rubygems/dependency.rb:308:in `to_specs': Could not find 'cocoapods' (>= 0) among 19 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/Users/mac/.rvm/gems/ruby-2.2.0:/Users/mac/.rvm/gems/ruby-2.2.0@global', execute `gem env` for more information
from /Users/mac/.rvm/rubies/ruby-2.2.0/lib/ruby/site_ruby/2.2.0/rubygems/dependency.rb:320:in `to_spec'
from /Users/mac/.rvm/rubies/ruby-2.2.0/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_gem.rb:65:in `gem'
from /usr/local/bin/pod:22:in `'
from /Users/mac/.rvm/gems/ruby-2.2.0@global/bin/ruby_executable_hooks:15:in `eval'
from /Users/mac/.rvm/gems/ruby-2.2.0@global/bin/ruby_executable_hooks:15:in `'解決:安裝最新的ruby運(yùn)行這些命令
rvm install 2.2
rvm use 2.2
rvm use 2.2.4 --default //!設(shè)置2.2.4為運(yùn)行的默認(rèn)版本!
一旦安裝在您的系統(tǒng)中患雏,請執(zhí)行以下步驟
sudo gem install activesupport -v 4.2.6
sudo gem install cocoapods
//重新啟動終端
pod setup