# Step Fastlane uses an unwanted version

**URL:** <https://discuss.bitrise.io/t/step-fastlane-uses-an-unwanted-version/3455>\
**Category:** Builds\
**Tags:** fastlane\
**Created:** [December 7, 2017, 10:46am UTC](https://discuss.bitrise.io/t/step-fastlane-uses-an-unwanted-version/3455 "2017-12-07T10:46:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![William](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@William](https://discuss.bitrise.io/u/William)\
**Post date:** [December 7, 2017, 10:46am UTC](https://discuss.bitrise.io/t/step-fastlane-uses-an-unwanted-version/3455/1 "2017-12-07T10:46:48Z")

</div>

I have an issue with fastlane 2.68.0+ (I have already informed them).

The step fastlane installs the latest version of fastlane even if I set `Should update fastlane gem before run?` to `false`.

I can not run my builds because of that.

Build for reference : [https://www.bitrise.io/build/b4064c5809ab40ff](https://www.bitrise.io/build/b4064c5809ab40ff)

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [December 7, 2017, 6:22pm UTC](https://discuss.bitrise.io/t/step-fastlane-uses-an-unwanted-version/3455/2 "2017-12-07T18:22:37Z")

</div>

2.68.1 is used because that’s the system preinstalled version on the Xcode 9.2 stack. It was upgraded when the Xcode 9.2 final stack was created (the betas had a lower one).

From the log:

```auto
e[34;1mUsing system installed Fastlanee[0m

e[34;1mFastlane version:e[0m
e[32;1m$ fastlane "--version"e[0m
fastlane installation at path:
/usr/local/lib/ruby/gems/2.4.0/gems/fastlane-2.68.1/bin/fastlane
-----------------------------
fastlane 2.68.1

```

So the step is correct, it does not upgrade the fastlane version, 2.68.1 is the preinstalled on the Xcode 9.2 stack. Related changelog: [Xcode 9.2 final is now available!](http://discuss.bitrise.io/t/xcode-9-2-final-is-now-available/3440)

To use a specific fastlane version please see: [How to use a specific version of fastlane?](http://discuss.bitrise.io/t/how-to-use-a-specific-version-of-fastlane/1001)

If you’d have any questions just let us know! 🙂

---

<div class="post-metadata">

**Author:** ![William](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@William](https://discuss.bitrise.io/u/William)\
**Post date:** [December 8, 2017, 8:35am UTC](https://discuss.bitrise.io/t/step-fastlane-uses-an-unwanted-version/3455/3 "2017-12-08T08:35:30Z")

</div>

Hi @viktorbenei,

I understand and thank you for your accurate answer.

Is there anyway to tell the step fastlane to use a specific version of fastlane even if a newer version is installed.

Because I have set in the Gemfile of the repo that fastlane should be lower or equal to 2.67.0 but it still uses 2.68.1

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [December 8, 2017, 8:43am UTC](https://discuss.bitrise.io/t/step-fastlane-uses-an-unwanted-version/3455/4 "2017-12-08T08:43:05Z")

</div>

> [@William](#):
>
> Because I have set in the Gemfile of the repo that fastlane should be lower or equal to 2.67.0 but it still uses 2.68.1

Make sure that you also have a `Gemfile.lock`, which is generated when you do a `bundle install` or `bundle update` in the directory (where the `Gemfile` is).

Also make sure that the Gemfile and Gemfile.lock are in the same directory, and are in the directory where you run the `fastlane` step from.

If you need more help with the Gemfile based setup please copy paste the build’s URL, without that it’s hard to tell anything more specific 😉

* * *

Alternatively you can use a Script step to install the `fastlane` version you want, as described at: [How to use a specific version of fastlane?](http://discuss.bitrise.io/t/how-to-use-a-specific-version-of-fastlane/1001)
