Nirav Hathi Nirav Hathi - 1 year ago 393
iOS Question

cocoapods not installing

What does it mean and how can I fix it:

pod install
/Library/Ruby/Site/2.0.0/rubygems.rb:250:in `find_spec_for_exe': can't find gem cocoapods (>= 0.a) (Gem::GemNotFoundException)
from /Library/Ruby/Site/2.0.0/rubygems.rb:278:in `activate_bin_path'
from /usr/local/bin/pod:22:in `<main>'

Answer Source

Use following commands, and It works for you.

1: sudo gem uninstall cocoapods 

2: gem install cocoapods

3: pod install 


sudo gem install -n /usr/local/bin GEM_NAME_HERE
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download