Fastlane with RVM on macOS
1 min readJul 27, 2018
Why should you use RVM instead of using system’s Ruby?
It turns out that system’s Ruby doesn’t update fast enough, when you try to update Fastlane, it may be broken. :|
Installing RVM on macOS
- Install Homebrew (I think most of you should have it installed)
- Install
gnupg
withbrew install gnupg
- Following the steps in https://rvm.io/rvm/install to install RVM
- If you are using fish shell, you may need to follow this guide to perform some extra steps: https://rvm.io/integration/fish
- Select a version of Ruby to install by calling
rvm list known
- Install Ruby
rvm install 2.5.1
(for example) - Use that version
rvm use 2.5.1
- Verify it
ruby -v
Last login: Fri Jul 27 14:31:02 on ttys005
Welcome to fish, the friendly interactive shell
~ ⟩ ruby -v 14:39:18
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin17]
~ ⟩ which ruby 14:39:21
/Users/raymond/.rvm/rubies/ruby-2.5.1/bin/ruby
~ ⟩
Bravo! We are using RVM to manage Ruby now
Installing Fastlane
- Simply call
gem install fastlane -NV
Done!
Update Fastlane on your project
- Calling
bundle update fastlane
to updateGemfile.lock
on your project. :)
All set!