I am trying to install cocoapods to my MacBook Pro running with OSX 10.9.1 (new Mavericks) and after type gem install cocoapods
I get the following error:
My way to solved:
First of all, i have new mac os 10.15.7 and Xcode
None of previous solutions worked for me too
I note that pods install in Library 2.6.0 and decided that it needs to be updated:
step 1
\curl -sSL https://get.rvm.io | bash -s stable --ruby
Ok!
Then i checked version: 2.6.0 - Why? In last string after install ruby, i noticed:
source /Users/abazhanov/.rvm/scripts/rvm
in all your open shell windows, in rare cases you need to reopen all shell windows.ok, let's do it:
step 2
source /Users/abazhanov/.rvm/scripts/rvm
Then i checked version: 2.7.0 - its ok!
step 3
sudo gem install cocoapods
As a result: 34 gems installed
I understand that the new version of Pods simply did not install on the old version of Ruby