After updating to the latest OS X El Capitan I've faced the same problem with cocoapods as many others:
-bash: pod: command not found
I ran sudo gem install cocoapods
to reinstall cocoapods and it resolved the above issue:
Successfully installed cocoapods-0.38.2
Parsing documentation for cocoapods-0.38.2 1 gem installed
Pod command now works. But when I try to pod install --verbose
it gets stuck:
Preparing
Updating local specs repositories
Updating spec repo `master`
$ /usr/bin/git pull --ff-only
I've tried uninstalling all cocoapods components that I could find with
gem list --local | grep cocoapods
and reinstalling cocoapods all together. Didn't help. What should I do?