I am trying to install fastlane. I have Xcode installed. I installed fastlane using the command sudo gem install fastlane. I now go in
I met this issue because of installing zsh, the below two steps solve my problem:
open ~/.zshrcsave 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!
cd ~/ to go to your home foldertouch .bash_profile to create your new empty fileopen -e .bash_profile to open the fileexport PATH="$HOME/.fastlane/bin:$PATH" and savebrew install ruby
brew install fastlane
Warning: fastlane 2.145.0 is already installed, it's just not linked
You can use brew link fastlane to link this version.
brew link fastlane
cd iOS
fastlane init
I faced this issue in Fedora 30 i followed these steps:-
1-installed all dev tools using these commands
sudo dnf install @development-tools
sudo dnf install @rpm-development-tools
2- run sudo gem install fastlane -NV
Fastlane worked like a charm
hope it helped
You can add fastlane path environment by add line
export PATH="$HOME/.fastlane/bin:$PATH"
to ~/.bash_profile or ~/.zsh_profile file (if you use zsh shell).
And final start new terminal session or reload using command source ~/.bash_profile or source ~/.zsh_profile (if you use zsh shell)
Get the full path of the fastlane executable from the command line:
which fastlane
Add it to the shell profile, restart shell.