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

Solution 1:

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

worked for me

Solution 2:

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.

Solution 3:

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

Solution 4:

Try this to get cocopods works on macOS Catalina

$ brew cleanup -d -v    
$ brew install cocoapods