5

The following error was obtained when installing pods

/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 Answer 1

6

Try "sudo gem update i18n" in your command line. Then re-run your pod command.

This fixed it for me.

1
  • This did not solve the same issue on my machine, now I get cannot load such file -- cocoapods-core. But a sudo gem update cocoapods-core did wonders.
    – rckoenes
    Mar 31, 2014 at 14:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.