fastlane: macOS Catalina bad interpreter: No such file or directory
I installed Catalina, but i got error when i run fastlane.
$ fastlane --version
-bash: /usr/local/bin/fastlane: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby: bad interpreter: No such file or directory
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 22
For example, I have my GEM_HOME setup to be in my user folder (~/.gem) so I can install gems without using
sudo
. So in my case, what I did was:gem uninstall -aIx
. This should uninstall all your installed gems and their binaries. Though this doesn’t seem to completely get rid of them and it didn’t fix the error for me after reinstalling.~/.gem
. If you don’t know where your gem install directory is, you can find it by runninggem env
and looking at the Installation Directory near the top of the output.gem install fastlane bundler cocoapods
. After reinstalling, fastlane and cocoapods stopped throwing bad interpreter error.me too pls
I solved it using:
and adding:
to my ~/.zshrc and then restart the terminal
@alindaj6 it looks like you installed fastlane through Homebrew. Is that correct? If so, try reinstalling fastlane with
brew reinstall fastlane
, and see if that helps.