I want to install cocoapods on MacOS to run the pod command. But on doing
sudo gem install cocoa-pods
I get the following:
Bui
I had a similar issue. I solved by installing the latest version of ruby (2.7.2).
First install the Ruby Version Manager rvm:
curl -L https://get.rvm.io | bash -s stable
Then install the latest version of ruby:
rvm install ruby-2.7.2
Finally try again to install the cocoapods:
sudo gem install cocoapods