fastlane: Fastlane not working on MacOS Catalina Dev beta

I was using fastlane perfectly before I upgraded to MacOS 10.15 Developer beta. Since upgrade I cant get fastlane to work. Every time I run any lane I am getting this error :

zsh: /usr/local/bin/fastlane: bad interpreter: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby: no such file or directory

Not sure what’s wrong here. I even updated ruby gems but still no luck.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 21
  • Comments: 24 (2 by maintainers)

Most upvoted comments

  1. gem update --system

  2. gem install bundler gem install fastlane

2.1. you may want to use local if your /usr/bin needs extra permissions: gem install -n /usr/local/bin/ bundler gem install -n /usr/local/bin/ fastlane

  1. Load up xCode (assuming you have it installed) Once open, click on xCode -> Preferences -> Locations On this window find “Command Line Tools” select latest version (11.0) Restart

I solved it with commands as mentioned.

gem unistall fastlane sudo gem install fastlane -NV -n /usr/local/bin

Yeah i checked those but nothing works for me. getting the same error every time When I run fastlane -v I got this

zsh: /usr/local/bin/fastlane: bad interpreter: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby: no such file or directory

gem unistall fastlane
sudo gem install fastlane -NV -n /usr/local/bin

open ~/.bash_profile and copy follow command

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

export PATH=/usr/local/bin/fastlane:/usr/local/opt/ruby/bin:/usr/local/bin:/usr/local/bin:/usr/local/opt/ruby/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/<youruser>/.rvm/bin:/Users/<youruser>/.rvm/bin



Im having the same issue as danie11am. Any suggestions?

This is because Catalina no longer supports including macOS headers in command line tools, they have to be explicitly used through Xcode SDK. You can do so by running gem through the xcrun tool like:

xcrun gem install fastlane

macOS Catalina beta 6 is still broken…not sure what’s up.

/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems.rb:283:in find_spec_for_exe': can't find gem fastlane (>= 0.a) with executable fastlane (Gem::GemNotFoundException) from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems.rb:262:in bin_path’ from /Users/alexfajkowski/.fastlane/bin/bundle/bin/fastlane:22:in `<main>’

gem install bundler ERROR: While executing gem … (Gem::FilePermissionError) You don’t have write permissions for the /Library/Ruby/Gems/2.6.0 directory.

Still the same for me . Mac OS catalina

I use Jenkins + Fastlane, and update to macOS Catalina. I got this error as well: Solution:

  1. Installing RVM and Ruby on macOS, instead of using macOS ruby 1.1 $ brew install gnupg 1.2 follow - https://rvm.io/rvm/install , to complete the installation 1.3 $ source ~/.rvm/scripts/rvm , to configure rvm in the terminal 1.4 $ rvm install ruby 1.5 $ rvm --default use ruby

  2. Delete “Gemfile” and “Gemfile.lock” in the WORKSPACE

  3. $ echo $PATH - Copy all the paths

  4. Jenkins - Manage Jenkins - Configure System - Global properties - Environment variables - Name: PATH, Value: Paste all the paths