Skip to content

Instantly share code, notes, and snippets.

@tylergaw
Last active January 6, 2020 16:50
Show Gist options
  • Save tylergaw/29048f142b2e6d634dee676dd05bc6d2 to your computer and use it in GitHub Desktop.
Save tylergaw/29048f142b2e6d634dee676dd05bc6d2 to your computer and use it in GitHub Desktop.

Issues when upgrading to MacOS Catalina 10.15

TL;DR: Uninstall the homebrew version of cocoapods, use the gem version instead

1. pod install failed

Error message was:

/usr/local/bin/pod: /usr/local/Cellar/cocoapods/1.8.4/libexec/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby: bad interpreter: No such file or directory
/usr/local/bin/pod: line 2: /usr/local/Cellar/cocoapods/1.8.4/libexec/bin/pod: Undefined error: 0

The problem seems to be MacOS Ruby version is 2.6.x but cocoapods is trying to use 2.3.

Related issue: CocoaPods/CocoaPods#8955

Tried:

  • brew unlink cocoapods && brew link cocoapods 🚫 no change
  • brew install cocoapods --build-from-source && brew link --overwrite cocoapods 🚫 no change

Since it seemed like there was nothing that would work for the homebrew version of cocoapods, I decided to follow other folks on that thread and install the cocoapods gem instead

  • brew uninstall cocoapods && sudo gem install cocoapods ✅ fix

after that, a pod install work as expected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment