Trying to install CocoaPods from the terminal:
$ sudo gem install cocoapods
After entering my root password, nothing happens.
How can I debug that?
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.
sudo gem update --system
–
Cowboy 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
It's not stuck, it's downloading file for ruby from the internet. you can check this by following below steps:
Open Activity Monitor
Select Network option
Check below Google Chrome. (ruby downloading)
ruby
is downloading cocoapods slowly. –
Gametophore Yes it takes forever keep calm and wait for at least 5 minutes , then you will see something, I did that in Ventura 13, I had to wait for 10 minutes. Hope this is helps, its like "light at the end of the tunnel".
MacOS Sonoma 14.0, installing cocoapods
for flutter doctor
check.
I have cocoapods installed by this way:
Step 1 (install HomeBrew)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)
Step 2 (Run these two commands in your terminal to add Homebrew to your PATH)
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/”YOUR USER FORLDER”/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
Step 3 (now you can install cocoapods)
brew install cocoapods
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
I received an error:
"Error installing cocoapods:
The last version of activesupport (>= 5.0, < 8) to support your Ruby & RubyGems was 6.1.7.3. Try installing it with gem install activesupport -v 6.1.7.3
and then running the current command again
activesupport requires Ruby version >= 2.7.0. The current ruby version is 2.6.10.210."
So, I had to run 'sudo gem install activesupport -v 6.1.7.3', for Ventura 13
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
cd path/to/project
pod init
pod install
© 2022 - 2024 — McMap. All rights reserved.