Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

cocoapods

I am interested in installing one of the GitHub repos that requires installing CocoaPods. There is no problem with my terminal (seems fine in a normal macOS version). I have one problem though: terminal is not installing CocoaPods, seemingly because I'm on the macOS Catalina beta?

I did install the pod 'Card' from Podfile which finished but after that Podfile closes. I am going running "pod install" on the terminal, then the only error that I get is:

-bash: /usr/local/bin/pod: /  System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby: bad interpreter: No such file or directory".  

Does someone know how to fix this issue for macOS Catalina?

like image 918
Antonio Adrian Chavez Avatar asked Jun 13 '19 01:06

Antonio Adrian Chavez


People also ask

How do I know if CocoaPods is installed on my Mac?

To find if Cocoapods is installed or not run cmd (pod --version). if theresult is (Not Found) Pods is not installed.


2 Answers

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

worked for me

like image 71
onthemoon Avatar answered Sep 25 '22 20:09

onthemoon


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.

like image 39
I make my mark Avatar answered Sep 25 '22 20:09

I make my mark