Trying to install CocoaPods from the terminal:
$ sudo gem install cocoapods
After entering my root password, nothing happens.
How can I debug that?
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
Try Installing latest Git version from
This worked for me
Write the following commands in Terminal:
export GEM_HOME=~/.gems
export PATH=$GEM_HOME/bin:$PATH
gem install cocoapods
- Set the path of the project with the command
cd path/to/project
pod init
- Open podfile
- Add appropriate pod
pod install
来源:https://stackoverflow.com/questions/14355165/installing-cocoapods-no-response