Cocoapods Not Installing

cocoapods not installing

Using following commands, it worked for me.

  1. sudo gem uninstall cocoapods
  2. sudo gem install -n /usr/local/bin cocoapods
  3. cocoapods pod install

If you encounter this error on step 2:

ERROR: While executing gem ... (Gem::CommandLineError) Please specify at least one gem name (e.g. gem build GEMNAME)

Then try this as step 2 instead (step 3 is not needed):

gem install -n /usr/local/bin cocoapods

Cocoapods not updating even after latest version is installed

Use which pod to figure out where it's installed. Most likely it's through brew, so you need to do a brew upgrade to get the latest version. Generally it's best to install all Ruby tools through the same method: directly, through brew, or using a Ruby manager like rvm.



Related Topics



Leave a reply



Submit