Fastlane with RVM on macOS

Raymond Chan
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

  1. Install Homebrew (I think most of you should have it installed)
  2. Install gnupg with brew install gnupg
  3. Following the steps in https://rvm.io/rvm/install to install RVM
  4. If you are using fish shell, you may need to follow this guide to perform some extra steps: https://rvm.io/integration/fish
  5. Select a version of Ruby to install by calling rvm list known
  6. Install Ruby rvm install 2.5.1 (for example)
  7. Use that version rvm use 2.5.1
  8. 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

  1. Simply call gem install fastlane -NV

Done!

Update Fastlane on your project

  1. Calling bundle update fastlane to update Gemfile.lock on your project. :)

All set!

--

--

Raymond Chan

Hello World Engineer @9GAG #android #Hongkonger #StandWithHongKong