# Xcode 9.4 Build Image - Fails when installing Fastlane

**URL:** <https://discuss.circleci.com/t/xcode-9-4-build-image-fails-when-installing-fastlane/22993>\
**Category:** Build Environment\
**Tags:** ios\
**Created:** [June 15, 2018, 3:09pm UTC](https://discuss.circleci.com/t/xcode-9-4-build-image-fails-when-installing-fastlane/22993 "2018-06-15T15:09:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChrisBGriffith](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/chrisbgriffith/32/18563_2.png) [@ChrisBGriffith](https://discuss.circleci.com/u/ChrisBGriffith)\
**Post date:** [June 15, 2018, 3:09pm UTC](https://discuss.circleci.com/t/xcode-9-4-build-image-fails-when-installing-fastlane/22993/1 "2018-06-15T15:09:15Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![ChrisBGriffith](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/chrisbgriffith/32/18563_2.png) [@ChrisBGriffith](https://discuss.circleci.com/u/ChrisBGriffith)\
**Post date:** [June 18, 2018, 6:41pm UTC](https://discuss.circleci.com/t/xcode-9-4-build-image-fails-when-installing-fastlane/22993/2 "2018-06-18T18:41:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [August 17, 2018, 6:41pm UTC](https://discuss.circleci.com/t/xcode-9-4-build-image-fails-when-installing-fastlane/22993/3 "2018-08-17T18:41:52Z")

</div>

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