cocoapods-downloader (>= 2.0) compatible with your Ruby & RubyGems
I recently updated the pods in my project after a long time and noticed that new pods had been released.
Unfortunately, I encountered issues updating the pods using my current Ruby version.
sudo gem install cocoapods
Reinstall
In an attempt to resolve this, I decided to perform a fresh reinstallation,
sudo gem uninstall cocoapods
but this approach proved unsuccessful.
Upgrade Ruby
In an effort to troubleshoot, I considered upgrading my Ruby version. However, this proved to be a challenging task. I wondered if this issue was related to my macOS version. 🤔
brew install rbenv
rbenv install 2.7.4
WARNING: ruby-2.7.4 is past its end of life and is now unsupported.
It no longer receives bug fixes or critical security updates.
Brew
To address the problem, I opted for an alternative solution — I reinstalled the pods using Homebrew instead of the gem.
sudo gem uninstall cocoapods
brew install cocoapods
This presented a new challenge as I encountered an error.
-bash: /usr/local/bin/pod: No such file or directory
Undeterred, I followed a helpful guide, and the error was resolved effortlessly.
brew link — overwrite cocoapods
I can now confirm that my pod version is the latest one!
pod — version
1.14.2
With this successful update, I no longer have to worry about Ruby-related concerns.
Please give me 👏 if this post is helpful to you.
There are more posts about iOS.
Please visit my Linked-In profile if you want to know more about me.
Troubleshooting
Remove Pod Project Reference from Workspace