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:
gem install cocoapods
None of previous solutions worked for me...
My situation is a fresh clean install of macOS Catalina + XCODE;
It happen that I had to first run Xcode before install cocoa pods (in first run, Xcode setups machine with tools);
After that, cocoa pods worked fine.