Fastlane command not found

后端 未结 14 1686
粉色の甜心
粉色の甜心 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:27

    I have got the same issue on mac 10.11, after a lot of struggling I found that the problem in installing unf_ext 0.0.7.2 gem I have done the following from this answer

    brew install coreutils
    

    After that try reinstall fastlane again it should work again

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

    Here is what I installed on Mac - from scratch

    Removed from brew install

    brew uninstall fastlane

    brew install rbenv

    Install Ruby version 2.6.6

    rbenv install 2.6.6

    Set the Ruby version in global

    rbenv global 2.6.6

    Add Ruby to the PATH

    if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi

    Install bundler

    gem install bundler

    Install fastlane

    bundle add fastlane

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

    First,You need to check if you have the ~/.fastlane file. If you don't have the file, you can execute brew cask install fastlane command. If you already have it. Check other answers.

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

    If you are working on local machine then add following to you .bash_profile

    export PATH="$HOME/.fastlane/bin:$PATH"

    If you are working on Jenkins then this worked for me

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

    DO NOT INSTALL FASTLANE GLOBALLY It is recommended that you use a Gemfile to define your dependency on Fastlane. This will clearly define the used Fastlane version, and its dependencies, and will also speed up using Fastlane.

    Step 1: Install bundler using

    sudo gem install bundler

    so any time you wan run Fastlane
    bundler exec fastlane ...

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

    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

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