安装cocoapods 成功了,sudo gem install cocoapods
执行pod setup
pod setup
时出错了。
$ pod setup
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.30.0/lib/cocoapods.rb:12:in `<top (required)>': undefined method `enforce_available_locales=' for I18n:Module (NoMethodError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.30.0/bin/pod:32:in `<top (required)>'
from /usr/bin/pod:23:in `load'
from /usr/bin/pod:23:in `<main>'
google 了很久,也没有找到合适的答案,最后怀疑是不是这个i18n的东东,有问题,执行下面的语句
$ sudo gem install i18n
貌似解决了。