/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运行这些命令
rvm install 2.2
rvm use 2.2
rvm use 2.2.4 --default //!设置2.2.4为运行的默认版本!
一旦安装在您的系统中,请执行以下步骤
sudo gem install activesupport -v 4.2.6
sudo gem install cocoapods
//重新启动终端
pod setup