Could not find 'cocoapods' (= 0.a) among 48 total gem(s) (Gem::MissingSpecError)
This issue happens when default Mac has got different ruby version that one you have installed
I could solve this by installing same ruby version as Mac OS ruby framework.
Remove all gems, reinstall pod again.
References
https://github.com/CocoaPods/CocoaPods/issues/10246#issuecomment-761719446
https://superuser.com/questions/340490/how-to-install-and-use-different-versions-of-ruby
https://rvm.io/rvm/install
https://jeffreymorgan.io/articles/ruby-on-macos-with-rvm/
https://github.com/rvm/rvm/issues/4215
Uninstall all installed gems, in OSX?
homebrew uninstall ruby
https://rvm.io/rubies/default
I wonder what kind of fun Apple engineers get to make pod + ruby such complex thing to fix :)
Could not find 'cocoapods' (= 0) among N total gem(s) (Gem::LoadError)
Finally I got Solution For installation of CocoaPods in OS X El Capitan
First remove or uninstall all available Gems by using following command in your terminal(which is located in your Launchpad>Other>Terminal or you can also find that in Finder>Applications>Utilities>Terminal)
gem uninstall --all
sudo gem uninstall --all
When after successful uninstallation of all Gems, Then write following command in your terminal
sudo gem install -n /usr/local/bin cocoapods
pod setup
Hope all of you will be awaiting for this answer. anyway, this works for me hence according to me it is best suitable solution to that particular problem.
Error: Could not find 'cocoapods' while installing a Pod
First of all Uninstall CocoaPods using sudo command.
Follow below steps :
sudo gem uninstall cocoapods
gem install cocoapods
pod install
When you install again then do not use sudo
command.
You can find for sudo less installation from here.
Could not find 'ffi' (= 1.3.0) among 85 total gem(s) (Gem::MissingSpecError) React native IOS on pod install
You can try this command
sudo gem uninstall -aIx
rm -rf ~/.gem
sudo gem install cocoapods
sudo chown -R $USER ~/Library/Caches/CocoaPods
How to fix the Cocoapods installation setup error?
I have same problem. I got different kinds of error when try different combination of install and uninstall. like
[!] The `master` repo requires CocoaPods 0.32.1 -
or
.rvm/gems/ruby-2.0.0-p598/gems/claide-0.4.0/lib/claide/command.rb:217:in `rescue in run': undefined method `verbose?' for nil:NilClass (NoMethodError)
or
.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:121:in `require': cannot load such file -- colored (LoadError)
from /Users/riverhuang/.rvm/rubies/ruby-2.1.5/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:121:in `require'
from /Users/riverhuang/.rvm/gems/ruby-2.1.5@global/gems/cocoapods-0.36.2/lib/cocoapods/user_interface.rb:8:in `<module:UserInterface>'
from /Users/riverhuang/.rvm/gems/ruby-2.1.5@global/gems/cocoapods-0.36.2/lib/cocoapods/user_interface.rb:7:in `<module:Pod>'
.
.
.
from /Users/riverhuang/.rvm/gems/ruby-2.1.5/bin/pod:23:in `load'
from /Users/riverhuang/.rvm/gems/ruby-2.1.5/bin/pod:23:in `<main>'
Could not find proper version of cocoapods (0.29.0) in any of the sources
Run `bundle install` to install missing gems.
After clear all gem in my computer I finally fixed it. Here is my steps to clear all gems.
gem uninstall --all
sudo gem uninstall --all
After uninstall all gems I reinstall the cocoapods.
sudo gem install cocoapods
Then restart the Terminal and run:
pod setup
I guess it has conflict in dependency gems (wrong version or not in right path). Like once I run "bundle install" it always install cocoapods 0.29.0 and all its dependency. With and without "sodu" install gems and its dependency to different places with version 0.36.2 when I did it.
Pod not found: Could not find 'cocoapods' (= 0) among 64 total gem(s) (Gem::LoadError)
Uninstalling and reinstalling CocoaPods from the Terminal fixed the issue for me (see the CocoaPods documentation for more information):
gem uninstall cocoapods
gem install cocoapods
cocoapods not installing
Using following commands, it worked for me.
sudo gem uninstall cocoapods
sudo gem install -n /usr/local/bin cocoapods
cocoapods pod install
If you encounter this error on step 2
:
ERROR: While executing gem ... (Gem::CommandLineError) Please specify at least one gem name (e.g. gem build GEMNAME)
Then try this as step 2 instead (step 3 is not needed):
gem install -n /usr/local/bin cocoapods
Related Topics
How to Multiply "5X3" String in Ruby
How to Prevent My Users to Read My Ruby Code
Rails: Upload a File or Store a Url
Fetching Second Row from CSV File in Ruby
Rails How to Use Associated Model with the Admin Namespace
Rails App Has Trouble with Inter-Model Saving
API Post with Array Using Http Gem (Or Restclient)
Linking to External File in Ruby on Rails
How to Send Notifications to the User Whose Post Received a Comment
Compressed Output Differs from Go to Ruby Implementation
Error Pushing Ruby on Rails to Heroku
Boot Up Rails App, Make Request to App from Outside Local Network
Split String into Equal Slices/Chunks
Method Gives Activerecord::Relation Error
Complete Web Apps in Ruby Without Using Any Frameworks - How Difficult? Pitfalls