can’t find gem cocoapods (>= 0.a) with executable pod (Gem::GemNotFoundException)

Nandhu_writes
Oct 26, 2023

means that CocoaPods is not installed on your system, or that it is installed but not in the PATH variable.

Issue:

.rvm/rubies/ruby-2.7.6/lib/ruby/site_ruby/2.7.0/rubygems.rb:264:in `find_spec_for_exe': can't find gem cocoapods (>= 0.a) with executable pod (Gem::GemNotFoundException)

Solution:

//make sure cocoapod is installed, if not
sudo gem install cocoapods

gem pristine --all

//if perm err occurs While executing gem ... (Errno::EACCES) use super user
bundle i or bundle install

Note :

Comment “FIXED” is this solution helps you well

Try deleting the ~/.cocoapods directory and reinstalling CocoaPods. This will remove all of your CocoaPods settings and configurations, so make sure that you have backed up any important data before doing this.

Make sure that you are using the latest version of CocoaPods.

Feel free to respond with your fixes in the comments

--

--

Nandhu_writes

React Native developer | Still a learner | blogger : Tech life lessons || Buy me a coffee, and I'll write : https://www.buymeacoffee.com/infoappmakk