Nirav Hathi Nirav Hathi - 1 month ago 43
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

Use following commands, and It works for you.

1: sudo gem uninstall cocoapods 

2: gem install cocoapods

3: pod install 

Update:

sudo gem install -n /usr/local/bin GEM_NAME_HERE