If you use our fastlane step to run your fastlane config, and you want to use a specific version of fastlane:
- Add a Script step right before the fastlane step
- Specify this as the content of the Script step:
set -ex gem uninstall fastlane --all --executables gem install fastlane --version 2.18.3 --no-document
- Make sure that the Should update fastlane gem before run? (
update_fastlane) option of the fastlane step is set to false.
That’s all. Of course, replace
2.18.3 with the version you want to use
Using a Gemfile & Gemfile.lock: if you use our fastlane step this is mentioned in the description of the step:
Gemfileexists in the
work_dirdirectory, fastlane will be used by
If you’re familiar with Ruby projects and with how the Gemfile & Gemfile.lock works this is probably the best solution, and it’s pretty much 0 effort.
But if you don’t use a Gemfile &
bundle exec on your Mac to run
fastlane then the Script based solution above is probably easier to maintain. Up to you of course, the step can work with either solution