Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing CocoaPods: no response

People also ask

How long does CocoaPods take to install?

This little change saved me more than 10 minutes. Executing "pod install" now takes less than 2 minutes, while before making this changes it took about 12 minutes.

How do I know if CocoaPods is installed on my Mac?

To find if Cocoapods is installed or not run cmd (pod --version). if theresult is (Not Found) Pods is not installed.


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.


update gem to the newest release using

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


I had to wait at least 5 minutes before:

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

Appears


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

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