# Xcode 11 GM Seed 2 Released

**URL:** <https://discuss.circleci.com/t/xcode-11-gm-seed-2-released/32505>\
**Category:** Announcements\
**Tags:** xcode, apple, ios, mobile, xcodebuild\
**Created:** [September 18, 2019, 9:53am UTC](https://discuss.circleci.com/t/xcode-11-gm-seed-2-released/32505 "2019-09-18T09:53:50Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![marc](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/marc/32/835_2.png) [@marc](https://discuss.circleci.com/u/marc)\
**Post date:** [September 18, 2019, 9:53am UTC](https://discuss.circleci.com/t/xcode-11-gm-seed-2-released/32505/1 "2019-09-18T09:53:50Z")

</div>

We have released an Xcode 11 GM Seed 2 image today. You can select the image by adding the following to a job in config.yml :

```auto
macos:
  xcode: 11.0.0

```

The only change from the Xcode 11 GM Seed 1 image is the version of Xcode:

- Xcode is now version 11.0 **GM Seed 2** Version `11A420a`

Minor changes:

- Fastlane 2.130.0 =\> 2.131.0

The full manifest of the installed software and SDKs is available [here](https://circle-macos-docs.s3.amazonaws.com/image-manifest/v1158/index.html).

## Known issues

- There is an issue where a dialog appears for the first 30 seconds after the image boots reporting that the OS did not shut down cleanly on the last boot. This might impact UI tests. We pre-boot VMs so that builds can start as quickly as possible, so in many cases our VMs have been booted more than 30 seconds prior before to build running, which will reduce the rate of occurrence of this bug.

## Upcoming deprecations / changes

- [Removed Xcode 10.2.0 yesterday (September 18th)](https://discuss.circleci.com/t/removing-support-for-xcode-9-1-and-10-2-0/31542). This version has [bugs that we fixed](https://discuss.circleci.com/t/xcode-10-2-image-released/29761/5) in the Xcode 10.2.1 image. As of yesterday, jobs using Xcode 10.2.0 will automatically use Xcode 10.2.1. There might be differences in the dependency versions between the Xcode 10.2.0 image and the Xcode 10.2.1 image. Please upgrade to **Xcode 10.2.1** or newer.
- [Python 2 will be no longer be maintained](https://www.python.org/dev/peps/pep-0373/) from January 2020. We plan on removing Python 2 from any images built after that date (Python 2 is being removed from `homebrew`).

---

<div class="post-metadata">

**Author:** ![marc](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/marc/32/835_2.png) [@marc](https://discuss.circleci.com/u/marc)\
**Post date:** [September 18, 2019, 9:58am UTC](https://discuss.circleci.com/t/xcode-11-gm-seed-2-released/32505/2 "2019-09-18T09:58:46Z")

</div>

Help Please! Plans for the next image:

I’m going to start work on a new Xcode 11 image today, with which I hope to address some common requests. I hope to release this by the end of the week.

I will release a new image with Xcode GM Seed 2 unless Apple released another version in the mean time. Things I want to include:

- Dealing with the Ruby headers and [Xcode 11 CLI tools](https://discuss.circleci.com/t/xcode-11-gm-seed-1-released/32379/6).
- [Installing additional simulators](https://discuss.circleci.com/t/xcode-11-gm-seed-1-released/32379/7) (iPhone X with iOS 13, etc).
- [See what we can do with Swift package manager and our gitconfig SSH re-writing](https://discuss.circleci.com/t/xcode-11-gm-seed-1-released/32379/3).

Please let me know what changes you would like made to the image,.

Thanks,

Marc

---

<div class="post-metadata">

**Author:** ![Ilias](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/ilias/32/9702_2.png) [@Ilias](https://discuss.circleci.com/u/Ilias)\
**Post date:** [September 18, 2019, 2:46pm UTC](https://discuss.circleci.com/t/xcode-11-gm-seed-2-released/32505/3 "2019-09-18T14:46:54Z")

</div>

I’m not seeing the manifest at the URL you linked to, only something like

```auto
<Error>
<Code>NoSuchKey</Code>
<Message>The specified key does not exist.</Message>
<Key>image-manifest/v1158//index.html</Key>
<RequestId>F3CF852332B2A79D</RequestId>
<HostId>
juh53Io2aD03bV+bjI9M9o0AcCXvlpYp3iE/NwUxCfexs904MdAAp7ErR0Mg9BJecj4DoFnU2lo=
</HostId>
</Error>

```

---

<div class="post-metadata">

**Author:** ![marc](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/marc/32/835_2.png) [@marc](https://discuss.circleci.com/u/marc)\
**Post date:** [September 18, 2019, 2:48pm UTC](https://discuss.circleci.com/t/xcode-11-gm-seed-2-released/32505/4 "2019-09-18T14:48:40Z")

</div>

Oops, I had an extra `/` in the URL. Fixed now - [https://circle-macos-docs.s3.amazonaws.com/image-manifest/v1158/index.html](https://circle-macos-docs.s3.amazonaws.com/image-manifest/v1158/index.html)

---

<div class="post-metadata">

**Author:** ![alexito4](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/alexito4/32/23222_2.png) [@alexito4](https://discuss.circleci.com/u/alexito4)\
**Post date:** [September 18, 2019, 3:30pm UTC](https://discuss.circleci.com/t/xcode-11-gm-seed-2-released/32505/5 "2019-09-18T15:30:35Z")

</div>

Just to be sure, the current deployed image still has issues with " Ruby headers" right?  
I’m seeing issues while installing ruby gems that have native extensions.

```auto
    Installing unf_ext 0.0.7.6 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
/Users/distiller/project/.bundle/ruby/2.3.0/gems/unf_ext-0.0.7.6/ext/unf_ext
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby -r
./siteconf20190918-659-60u20p.rb extconf.rb
mkmf.rb can't find header files for ruby at
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/include/ruby.h

extconf failed, exit code 1

Gem files will remain installed in
/Users/distiller/project/.bundle/ruby/2.3.0/gems/unf_ext-0.0.7.6 for inspection.
Results logged to
/Users/distiller/project/.bundle/ruby/2.3.0/extensions/universal-darwin-18/2.3.0/unf_ext-0.0.7.6/gem_make.out

An error occurred while installing unf_ext (0.0.7.6), and Bundler
cannot continue.
Make sure that `gem install unf_ext -v '0.0.7.6' --source
'https://rubygems.org/'` succeeds before bundling.

In Gemfile:
  danger-xcov was resolved to 0.4.1, which depends on
    xcov was resolved to 1.5.0, which depends on
      fastlane was resolved to 2.127.2, which depends on
        faraday-cookie_jar was resolved to 0.0.6, which depends on
          http-cookie was resolved to 1.0.3, which depends on
            domain_name was resolved to 0.5.20190701, which depends on
              unf was resolved to 0.1.4, which depends on
                unf_ext
Exited with code 5

```

The same job works fine on an xcode 10 macos image.

---

<div class="post-metadata">

**Author:** ![irisha8787](https://avatars.discourse-cdn.com/v4/letter/i/e99b99/32.png) [@irisha8787](https://discuss.circleci.com/u/irisha8787)\
**Post date:** [September 18, 2019, 5:48pm UTC](https://discuss.circleci.com/t/xcode-11-gm-seed-2-released/32505/6 "2019-09-18T17:48:27Z")

</div>

I have the same issue. I think it should be addressed in the next image.

---

<div class="post-metadata">

**Author:** ![CatalinMustata](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/catalinmustata/32/23174_2.png) [@CatalinMustata](https://discuss.circleci.com/u/CatalinMustata)\
**Post date:** [September 20, 2019, 1:46pm UTC](https://discuss.circleci.com/t/xcode-11-gm-seed-2-released/32505/7 "2019-09-20T13:46:04Z")

</div>

In the meantime, I’m using a workflow with two steps… one that installs gems using xcode 10, caches them, and another that just uses the cache. It’s dirty, but it works.

---

<div class="post-metadata">

**Author:** ![AlexanderPan19920718](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/alexanderpan19920718/32/24676_2.png) [@AlexanderPan19920718](https://discuss.circleci.com/u/AlexanderPan19920718)\
**Post date:** [September 21, 2019, 2:02am UTC](https://discuss.circleci.com/t/xcode-11-gm-seed-2-released/32505/8 "2019-09-21T02:02:24Z")

</div>

```
extconf failed, exit code 1

Gem files will remain installed in
/var/folders/1b/gl7yt7ds26vcyr1pkgld6l040000gn/T/bundler20190920-668-480jr1json-2.2.0/gems/json-2.2.0
for inspection.
Results logged to
/var/folders/1b/gl7yt7ds26vcyr1pkgld6l040000gn/T/bundler20190920-668-480jr1json-2.2.0/extensions/universal-darwin-18/2.3.0/json-2.2.0/gem_make.out

An error occurred while installing json (2.2.0), and Bundler cannot
continue.
Make sure that `gem install json -v '2.2.0' --source 'https://rubygems.org/'`
succeeds before bundling.

In Gemfile:
  fastlane was resolved to 2.131.0, which depends on
    json
Exited with code 5

```

I have same issue on xcode 11

---

<div class="post-metadata">

**Author:** ![Roykk](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/roykk/32/23259_2.png) [@Roykk](https://discuss.circleci.com/u/Roykk)\
**Post date:** [September 22, 2019, 6:19am UTC](https://discuss.circleci.com/t/xcode-11-gm-seed-2-released/32505/9 "2019-09-22T06:19:17Z")

</div>

issues when building with this image:

````auto
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
/Users/distiller/code/vendor/bundle/ruby/2.3.0/gems/unf_ext-0.0.7.6/ext/unf_ext
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby -r
./siteconf20190921-785-16ewadr.rb extconf.rb
mkmf.rb can't find header files for ruby at
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/include/ruby.h

extconf failed, exit code 1

Gem files will remain installed in
/Users/distiller/code/vendor/bundle/ruby/2.3.0/gems/unf_ext-0.0.7.6 for
inspection.
Results logged to
/Users/distiller/code/vendor/bundle/ruby/2.3.0/extensions/universal-darwin-18/2.3.0/unf_ext-0.0.7.6/gem_make.out

An error occurred while installing unf_ext (0.0.7.6), and Bundler
cannot continue.
Make sure that `gem install unf_ext -v '0.0.7.6' --source
'https://rubygems.org/'` succeeds before bundling. ```
````

---

<div class="post-metadata">

**Author:** ![joshgrenon](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@joshgrenon](https://discuss.circleci.com/u/joshgrenon)\
**Post date:** [September 23, 2019, 1:03am UTC](https://discuss.circleci.com/t/xcode-11-gm-seed-2-released/32505/10 "2019-09-23T01:03:08Z")

</div>

same issue here with bundle install for Xcode 11 builds

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

---

<div class="post-metadata">

**Author:** ![Lewion](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/lewion/32/23247_2.png) [@Lewion](https://discuss.circleci.com/u/Lewion)\
**Post date:** [September 23, 2019, 1:56am UTC](https://discuss.circleci.com/t/xcode-11-gm-seed-2-released/32505/11 "2019-09-23T01:56:44Z")

</div>

Same issue here on the gem installation. Is a new image in development to be released soon @marc? Or should we rely on using a custom ruby version for the time being…

GM 2 seems to be the same as the release version of Xcode 11.

---

<div class="post-metadata">

**Author:** ![sharplet](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/sharplet/32/23175_2.png) [@sharplet](https://discuss.circleci.com/u/sharplet)\
**Post date:** [September 23, 2019, 1:40pm UTC](https://discuss.circleci.com/t/xcode-11-gm-seed-2-released/32505/12 "2019-09-23T13:40:43Z")

</div>

Thanks for your work here @marc! Just a quick question: any idea when Catalina-based images might land? I’m starting to ship projects that use Combine and other iOS 13 / macOS 15 frameworks, and right now I can only run tests on the iOS Simulator because these frameworks aren’t available for macOS destinations yet.

---

<div class="post-metadata">

**Author:** ![ermik](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/ermik/32/23252_2.png) [@ermik](https://discuss.circleci.com/u/ermik)\
**Post date:** [September 23, 2019, 4:59pm UTC](https://discuss.circleci.com/t/xcode-11-gm-seed-2-released/32505/13 "2019-09-23T16:59:44Z")

</div>

So until there are adults in the room you can update (double) Ruby to `latest` and use it when installing native extensions.

```auto
brew install ruby
echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.bash_profile

```

worked in SSH shell prior to `gem` calls.

cc @Roykk, @AlexanderPan19920718

---

<div class="post-metadata">

**Author:** ![madhusamuel](https://avatars.discourse-cdn.com/v4/letter/m/4da419/32.png) [@madhusamuel](https://discuss.circleci.com/u/madhusamuel)\
**Post date:** [September 24, 2019, 1:08am UTC](https://discuss.circleci.com/t/xcode-11-gm-seed-2-released/32505/15 "2019-09-24T01:08:00Z")

</div>

Getting this error soon after updating to XCode 11.

```
An error occurred while installing json (2.2.0), and Bundler cannot
continue.
Make sure that `gem install json -v '2.2.0' --source 'https://rubygems.org/'`
succeeds before bundling.

```

Any ETA for a fix?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![AlexanderPan19920718](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/alexanderpan19920718/32/24676_2.png) [@AlexanderPan19920718](https://discuss.circleci.com/u/AlexanderPan19920718)\
**Post date:** [September 24, 2019, 8:08am UTC](https://discuss.circleci.com/t/xcode-11-gm-seed-2-released/32505/16 "2019-09-24T08:08:28Z")

</div>

```
- run:
      name: Set up ruby latest version
      command: |
        brew install ruby
        echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.bash_profile

```

I added , but still not work.

---

<div class="post-metadata">

**Author:** ![Roykk](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/roykk/32/23259_2.png) [@Roykk](https://discuss.circleci.com/u/Roykk)\
**Post date:** [September 24, 2019, 8:30am UTC](https://discuss.circleci.com/t/xcode-11-gm-seed-2-released/32505/17 "2019-09-24T08:30:17Z")

</div>

> [@ermik](#):
>
> echo ‘export PATH=“/usr/local/opt/ruby/bin:$PATH”’ \>\> ~/.bash\_profile

Still having same issue… Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

---

<div class="post-metadata">

**Author:** ![ermik](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/ermik/32/23252_2.png) [@ermik](https://discuss.circleci.com/u/ermik)\
**Post date:** [September 24, 2019, 9:05am UTC](https://discuss.circleci.com/t/xcode-11-gm-seed-2-released/32505/18 "2019-09-24T09:05:06Z")

</div>

@Roykk, @AlexanderPan19920718: you have to make sure the process that depends on `ruby` knows that it has to use one installed by Homebrew. `/usr/local/opt/ruby/bin` is the path to that executable. The `echo` command simply adds it to user’s settings and will not take effect until those settings are `source`d, for example when the new shell session is opened _or_ if you run `source ~/.bash_profile`. This is only helpful when you are debugging via SSH. If you want to use it in a pipeline/build step — you need to make sure the `$PATH` environment variable is already set to (includes) that directory when you run commands that need it. Look at the following documentation for more info on how to change the `$PATH` context for your commands:

[https://circleci.com/docs/2.0/env-vars/#using-bash\_env-to-set-environment-variables](https://circleci.com/docs/2.0/env-vars/#using-bash_env-to-set-environment-variables)

For some commands that need ruby you may also be able to specify the `--path-to-ruby` in an argument to the command itself. Consult full documentation for tools like `bundle` and `gem` to see if that’s possible (I suspect it may be, but **I don’t know** ).

---

<div class="post-metadata">

**Author:** ![Roykk](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/roykk/32/23259_2.png) [@Roykk](https://discuss.circleci.com/u/Roykk)\
**Post date:** [September 24, 2019, 10:12am UTC](https://discuss.circleci.com/t/xcode-11-gm-seed-2-released/32505/19 "2019-09-24T10:12:16Z")

</div>

@ermik , @AlexanderPan19920718 , thanks for the help… got it working when i

```auto
  - run:
          name: install Ruby and run bundleinstall
          command: |
            brew install ruby
            echo "export PATH=/usr/local/opt/ruby/bin:$PATH" >> $BASH_ENV
            source $BASH_ENV
            sudo gem install bundler -u -f
            bundle install --path vendor/bundle

```

---

<div class="post-metadata">

**Author:** ![marc](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/marc/32/835_2.png) [@marc](https://discuss.circleci.com/u/marc)\
**Post date:** [September 24, 2019, 12:40pm UTC](https://discuss.circleci.com/t/xcode-11-gm-seed-2-released/32505/20 "2019-09-24T12:40:29Z")

</div>

So it looks like Apple no longer ship the headers for the system Ruby with Xcode 11. We are building this image the same way as we built the Xcode 10.3 image, which does not exhibit this behaviour. I will build a new image where the version of Ruby is installed from `homebrew`, and I’ll make this be the default system Ruby.

In the team time, you can do the following to work around the Ruby issue:

```auto
version: 2.1
jobs:
  build:
    macos:
      xcode: 11.0.0
    shell: /bin/bash --login -eo pipefail
    steps:
      - checkout
      - run:
          name: Set Ruby Version
          command: echo "ruby-2.6" > ~/.ruby-version

```

---

<div class="post-metadata">

**Author:** ![madhusamuel](https://avatars.discourse-cdn.com/v4/letter/m/4da419/32.png) [@madhusamuel](https://discuss.circleci.com/u/madhusamuel)\
**Post date:** [September 25, 2019, 1:23am UTC](https://discuss.circleci.com/t/xcode-11-gm-seed-2-released/32505/21 "2019-09-25T01:23:33Z")

</div>

Thanks @marc This works for me!

[Next page](https://discuss.circleci.com/t/xcode-11-gm-seed-2-released/32505.md?page=2)
