解决如下问题,不用重装系统了。/usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/pathname.rb:422:in`open':Nosuchfileordirectory@dir_initialize–/Users/David/.cocoapods/repos(Errno::ENOENT)from/usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/pathname.rb:422:in`foreach’from/usr/local/rvm/rubies/ruby-2.1.0