Makes sure fastlane-tools are up-to-date when running fastlane
This action will update fastlane to the most recent version - major version updates will not be performed automatically, as they might include breaking changes. If an update was performed, fastlane will be restarted before the run continues.
If you are using rbenv or rvm, everything should be good to go. However, if you are using the system's default ruby, some additional setup is needed for this action to work correctly. In short, fastlane needs to be able to access your gem library without running in
The simplest possible fix for this is putting the following lines into your
export GEM_HOME=~/.gems export PATH=$PATH:~/.gems/bin
After the above changes, restart your terminal, then run
mkdir $GEM_HOMEto create the new gem directory. After this, you're good to go!
Recommended usage of the
update_fastlaneaction is at the top inside of the
before_allblock, before running any other action.
|Supported platforms||ios, android, mac|
before_all do update_fastlane # ... end
||Opt-in to install and use nightly fastlane builds||
||Don't update during this run. This is used internally||
||DEPRECATED! Comma separated list of fastlane tools to update (e.g.
* = default value is dependent on the user's system
To show the documentation in your terminal, run
fastlane action update_fastlane