Installing Cocoapods: No Response

Installing CocoaPods: no response

For others wondering the same, installing the gem takes forever. If you run:

export GEM_HOME=~/.gems
export PATH=$GEM_HOME/bin:$PATH

gem install cocoapods -V

Installing with flag V enables verbose output which will let you see all the output as it is going through the download and install, it's quite a lot.

flutter doctor - CocoaPods installed but not working

Using the suggestion for this post, I was able to get cocoapods reinstalled with the commands below

gem native extension error while installing cocoapods

Open Terminal

curl -L https://get.rvm.io | bash -s stable

Reopen Terminal

rvm install ruby-2.6

rvm use ruby-2.6.5

rvm --default use 2.6.5

Then this installed cocoapods as expected

sudo gem install cocoapods

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

ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension

Run following command

 brew cleanup -d -v 

Then run below command

brew install cocoapods 

Note: If you see failed to link then run brew link cocoapods

If linking is getting failed then run

brew link --overwrite cocoapods

This is how it get solved for me

For someone who is having m1 chip system they need to run this via Rosetta

select Terminal and press cmd(⌘)+I and check the "Open using Rosetta" option. ( For m1 chip based mac )

Flutter: How to solve this Cocoapods version problem?

Solved it by:

  1. Uninstall Hebrew completely from Mac.
  2. Install rvm.
  3. Install latest ruby version through rvm.
  4. Install cocoapods---> sudo gem install cocoapods.

pod install -bash: pod: command not found

OK, found the problem. I upgraded Ruby some time ago and blasted away a whole load of gems. Solution:

sudo gem install cocoapods

For none-sudo use:

export GEM_HOME=$HOME/.gem
export PATH=$GEM_HOME/bin:$PATH
gem install cocoapods --user-install


Related Topics



Leave a reply



Submit