Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I am trying to install fastlane. I have Xcode installed. I installed fastlane using the command sudo gem install fastlane. I now go into my project folder and type fastlane 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?

question from:https://stackoverflow.com/questions/36369197/fastlane-command-not-found

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
822 views
Welcome To Ask or Share your Answers For Others

1 Answer

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 ??


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...