Created
December 13, 2017 11:55
-
-
Save joeboyscout04/3d88ba70b90c742b9bea62e82ef1b0eb to your computer and use it in GitHub Desktop.
Install Ruby and Bundler for fastlane
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install rbenv | |
$ brew install rbenv | |
# Install Ruby 2.3.1 using rbenv and set it global | |
$ rbenv install 2.3.1 | |
$ rbenv global 2.3.1 | |
$ ruby --version #version check | |
# Add the following to your ~/.bash_profile to set globally | |
# Ruby version | |
export PATH="$HOME/.rbenv/bin:$PATH" | |
eval "$(rbenv init -)" | |
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi | |
# Install bundler | |
$ sudo gem install bundler | |
# Navigate to fastlane folder and run bundler to install gems | |
$ cd myproject/fastlane | |
$ bundle install | |
# Now you can use bundler to run fastlane. Just prepend "bundle exec" before the fastlane command. Try it! | |
$ bundle exec fastlane mylane |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment