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:
- Select Command Line Tools in XCode.
XCode > Preferences > Locations > Command Line Tools > XCode 11.X.X
- In terminal execute:
sudo gem install cocoapods -n /usr/local/bin