This terminal won't let me run or install cocoa pods because I am on MacOS Catalina Beta?

sudo gem install -n /usr/local/bin cocoapods 

worked for me


Use

brew install cocoapods --build-from-source

The Mojave bottle is linked to a different version of Ruby. The --build-from-source option will link the cocoapods gem to the Catalina version of Ruby.


I also encountered this issue when I upgraded to Catalina and XCode 11. Here's what I did to fix this:

  1. Select Command Line Tools in XCode.

XCode > Preferences > Locations > Command Line Tools > XCode 11.X.X

  1. In terminal execute:

sudo gem install cocoapods -n /usr/local/bin

Tags:

Cocoapods