fastlane docs suggest 3 ways of installation. What is the difference between using homebrew, gem install and downloading the prepackaged fastlane?
fastlane is a Ruby Gem. The following different installation methods are available:
Running gem install fastlane
and/or including gem 'fastlane
in a Gemfile
and running bundle install
install fastlane as a standard RubyGem.
Works like any other RubyGem.
Ruby version management. Sometimes system libraries and outdated dependencies or Ruby versions can get in the way of an easy installation process. (All the problems you may suffer from with any other gem.)
These issues can largely be taken care of by using a Ruby version management tool such as rbenv
or rvm
.
This is a precompiled and self-contained version of Ruby with fastlane and it's dependencies (i.e. SSL) already installed.
Does not rely on managing your own ruby version. Can be installed by running a script in the download and therefor does not require any prior knowledge about installing RubyGems.
Some fastlane plugins and actions, that require native ruby extensions fail to build (there is an issue open about it, https://github.com/fastlane/fastlane/issues/8431#issuecomment-284415759 - however no fix is yet released).
This is the exact same package as packaged-fastlane (mentioned above) but is distributed via Homebrew Cask and can be installed by running brew cask install fastlane
From support point of view, I strongly encourage users to use either the Homebrew or packaged-fastlane version, as it puts aside most of the system related issues you may stumble upon with RubyGems.
I personally use rvm
and the gem
version.
I am a fastlane core contributor.
edit: There is even a 4th variation, that is installed via the "Fabric" app for macOS - this version is largely the same as packaged-fastlane, it just lives in a different directory on disk.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With