Installing CocoaPods: no response

RubyRubygemsCocoapods

Ruby Problem Overview


Trying to install CocoaPods from the terminal:

$ sudo gem install cocoapods

After entering my root password, nothing happens.

How can I debug that?

Ruby Solutions


Solution 1 - Ruby

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.

Solution 2 - Ruby

update gem to the newest release using

sudo gem update --system and it should work a bit faster

Solution 3 - Ruby

I had to wait at least 5 minutes before:

> Building native extensions. This could take a while...

Appears

Solution 4 - Ruby

You should do it in two separated commands:

First:

gem update

Then:

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

gem install cocoapods

Solution 5 - Ruby

It's not stuck, it's downloading file for ruby from the internet. you can check this by following below steps:

  1. Open Activity Monitor

  2. Select Network option

  3. Check below Google Chrome. (ruby downloading)

enter image description here

Solution 6 - Ruby

Try Installing latest Git version from

https://git-scm.com/downloads

This worked for me

Write the following commands in Terminal:

  1. export GEM_HOME=~/.gems
  2. export PATH=$GEM_HOME/bin:$PATH
  3. gem install cocoapods
  4. Set the path of the project with the command cd path/to/project
  5. pod init
  6. Open podfile
  7. Add appropriate pod
  8. pod install

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionPierre de LESPINAYView Question on Stackoverflow
Solution 1 - RubyAlexView Answer on Stackoverflow
Solution 2 - RubyHulvejView Answer on Stackoverflow
Solution 3 - RubyPierre de LESPINAYView Answer on Stackoverflow
Solution 4 - RubyDakshay DandekarView Answer on Stackoverflow
Solution 5 - RubySachin NikumbhView Answer on Stackoverflow
Solution 6 - RubyHarsh ThakkerView Answer on Stackoverflow