Fastlane command not found
Solution 1
Add the following line to your bash profile:
export PATH="$HOME/.fastlane/bin:$PATH"
You can either close the terminal session and restart it or run source ~/.bash_profile
to load your configuration and then you can go so you start using fastlane 🚀
Solution 2
I got run into similar issue last week. I installed fastlane using homebrew on mac, but it was showing the same error.
I tried installing it using Ruby and it worked like a charm. Here is the command.
sudo gem install fastlane -NV
Also seems like you have not installed command line tools for xcode.
Install them using xcode-select --install
Solution 3
I met this issue because of installing zsh, the below two steps solve my problem:
open ~/.zshrc
-
save path
2.1 if you install fastlane with Homebrew
Copy
export PATH="$HOME/.fastlane/bin:$PATH"
on the bottom line.2.2 if you install fastlane with RubyGems
Copy
export PATH="/usr/local/bin/fastlane""
on the bottom line. save upon file and try
fastlane init
, everything is OK!
Solution 4
- In the terminal type
cd ~/
to go to your home folder - Type
touch .bash_profile
to create your new empty file - Type
open -e .bash_profile
to open the file - Enter
export PATH="$HOME/.fastlane/bin:$PATH"
and save - Restart terminal (not sure needed?)
Solution 5
fastlane is in cask now. You can install it using
brew cask install fastlane
Now you need to export PATH so that your shell can find fastlane do
export PATH="$HOME/.fastlane/bin:$PATH"
If that doesn't work, try this
export PATH="$HOME/.fastlane/bin/fastlane_lib:$PATH"
Make sure you add it to ~/.profile, ~/.zshrc or ~/.bashrc for future
Viswanth Chadalawada
Updated on July 09, 2022Comments
-
Viswanth Chadalawada almost 2 years
I am trying to install
fastlane
. I have Xcode installed. I installedfastlane
using the commandsudo gem install fastlane
. I now go into my project folder and typefastlane init
and get the error:-bash: fastlane: command not found.
I see that
fastlane
is installed and can see it here/Users/username/.gem/ruby/2.0.0/gems/fastlane-1.70.0/bin
on my Mac.
I tried adding this to my
PATH
, but I still get the same error. My path is/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:./Users/username/.gem/ruby/2.0.0/gems/
What am I missing here?
-
dawg about 8 yearsThis is more of a comment -- not an answer.
-
Lutaaya Huzaifah Idris over 5 yearsSome of us don't know
.zshrc
, can you please try to show us where it comes from towards the answer. -
Anton Eregin over 4 yearsGot the same story, error after brew installation, and everything works after Rubi installation!