Xcode 9.4 Build Image - Fails when installing Fastlane

I just updated my build to the 9.4 image and I’m now getting errors I wasn’t before.
During the spin-up process:

Fetching fastlane 2.97.0
Installing fastlane 2.97.0
Gem::FilePermissionError: You don’t have write permissions for the
/var/folders/gk/lkr9pm5x039fx6d3j9r52rv80000gn/T/bundler20180615-625-1cwwwmvfastlane-2.97.0/bin
directory.
An error occurred while installing fastlane (2.97.0), and Bundler
cannot continue.
Make sure that gem install fastlane -v '2.97.0' --source 'https://rubygems.org/' succeeds before bundling.

I tried removing Fastlane from the Gemfile, but then it complained that it couldn’t find Fastlane. Isn’t it part of the standard loadout on a Mac image?

Resolved thanks to CircleCI support.
In the bundle install step, I needed to change
bundle install
to
bundle install --path .bundle.

2 Likes

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.