I have an old MacBook (Early 2015) running macOS Monterey 12.7.6.
When I try to install CocoaPods via the command line, I get the following error:
I cannot update Ruby using gem update --system
because macOS does not allow it.
So, I decided to use Homebrew to install CocoaPods instead.
Installing Homebrew
First, I checked if Homebrew was installed by running:
However, this returned an error:
To install Homebrew, I used the following command:
During installation, I had to enter my password a few times.
Once the installation was complete, I verified it by running:
The output confirmed that Homebrew was installed:
Installing CocoaPods
Now that Homebrew is installed, I was able to install CocoaPods using:
Additionally, I was able to update Ruby and then use Ruby to install CocoaPods.
No comments :
Post a Comment