Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when install pods

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
like image 752
user3347073 Avatar asked Mar 31 '14 14:03

user3347073


People also ask

How do you install pods?

To install the pods, do one of the following: Place the caret at the code line where you add the pod, press ⌥ ⏎ , select Install, and press ⏎ . Click Install pods in the top-left corner of the editor window. From the main menu, select Tools | CocoaPods | Install.


1 Answers

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

This fixed it for me.

like image 169
CoBrA2168 Avatar answered Oct 14 '22 16:10

CoBrA2168