Fastlane command not found

后端 未结 14 1685
粉色の甜心
粉色の甜心 2020-12-23 16:48

I am trying to install fastlane. I have Xcode installed. I installed fastlane using the command sudo gem install fastlane. I now go in

相关标签:
14条回答
  • 2020-12-23 17:13

    I met this issue because of installing zsh, the below two steps solve my problem:

    1. open ~/.zshrc
    2. 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.

    3. save upon file and try fastlane init, everything is OK!

    0 讨论(0)
  • 2020-12-23 17:15
    1. In the terminal type cd ~/ to go to your home folder
    2. Type touch .bash_profile to create your new empty file
    3. Type open -e .bash_profile to open the file
    4. Enter export PATH="$HOME/.fastlane/bin:$PATH" and save
    5. Restart terminal (not sure needed?)
    0 讨论(0)
  • 2020-12-23 17:16

    brew 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

    0 讨论(0)
  • 2020-12-23 17:19

    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

    0 讨论(0)
  • 2020-12-23 17:20

    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)

    0 讨论(0)
  • 2020-12-23 17:21

    Get the full path of the fastlane executable from the command line:

    which fastlane

    Add it to the shell profile, restart shell.

    0 讨论(0)
提交回复
热议问题