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)
gem update --system
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
I solved it with commands as mentioned.
gem unistall fastlanesudo gem install fastlane -NV -n /usr/local/binYeah i checked those but nothing works for me. getting the same error every time When I run
fastlane -vI got thiszsh: /usr/local/bin/fastlane: bad interpreter: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby: no such file or directoryopen ~/.bash_profileand copy follow commandIm 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
gemthrough thexcruntool like: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:inbin_path’ from /Users/alexfajkowski/.fastlane/bin/bundle/bin/fastlane:22:in `<main>’@dipkasyap this helped me with above error: https://programmingzen.com/installing-rbenv-on-zsh-on-macos/
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:
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
Delete “Gemfile” and “Gemfile.lock” in the WORKSPACE
$ echo $PATH - Copy all the paths
Jenkins - Manage Jenkins - Configure System - Global properties - Environment variables - Name: PATH, Value: Paste all the paths