/Users/junhaoshen/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/site_ruby/2.0.0/rubygems/specification.rb:17:in`require': cannot load such file -- stringio (LoadError)
from/Users/junhaoshen/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/site_ruby/2.0.0/rubygems/specification.rb:17:in`'
from /Users/junhaoshen/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/site_ruby/2.0.0/rubygems.rb:1332:in`require'
from/Users/junhaoshen/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/site_ruby/2.0.0/rubygems.rb:1332:in`'
from/Users/junhaoshen/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/site_ruby/2.0.0/rubygems.rb:116:in`'
from:1:in `require'
from:1:in `'
因为之前更新了gem的时候 尝试使用了 os 10.11 版本之前的更新语句 sudo gem update --system (sudo gem update -n /usr/local/bin —system 之前用这个语句没有提示升级,但是用了sudo gem update --system 这个语句 却升级了 )
导致gem显示更新了 而ruby没有更新,所以报上面的错误 之后更新过ruby的版本之后就好了 更新方式看上一篇的Cocopods的更新 更新完之后 会让你重新安装cocopods的 执行 语句 sudo gem install -n /usr/local/bin cocoa pods 这个安装就好