安装pod时出错

时间:2014-03-31 14:00:35

标签: ios rubygems cocoapods

安装pod时获得以下错误

/Users/mosab/.gem/ruby/1.8/gems/cocoapods-0.30.0/lib/cocoapods.rb:12: undefined method `enforce_available_locales=' for I18n:Module (NoMethodError)
from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:in `gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/mosab/.gem/ruby/1.8/gems/cocoapods-0.30.0/bin/pod:32
from /usr/bin/pod:23:in `load'
from /usr/bin/pod:23

1 个答案:

答案 0 :(得分:6)

在命令行中尝试“sudo gem update i18n”。然后重新运行pod命令。

这为我解决了。