# MacOS with Xcode 14.3.0 has the wrong Ruby version

**URL:** <https://discuss.circleci.com/t/macos-with-xcode-14-3-0-has-the-wrong-ruby-version/48206>\
**Category:** Build Environment\
**Tags:** ios\
**Created:** [May 26, 2023, 5:25pm UTC](https://discuss.circleci.com/t/macos-with-xcode-14-3-0-has-the-wrong-ruby-version/48206 "2023-05-26T17:25:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![trevorzablocki](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/trevorzablocki/32/33050_2.png) [@trevorzablocki](https://discuss.circleci.com/u/trevorzablocki)\
**Post date:** [May 26, 2023, 5:25pm UTC](https://discuss.circleci.com/t/macos-with-xcode-14-3-0-has-the-wrong-ruby-version/48206/1 "2023-05-26T17:25:46Z")

</div>

We have been using the Macos executor with Xcode 14.3.0 for a while and it is supposed to ship with Ruby version 3.0.5 according the installed software listed in the docs. Our builds stopped working today and now when I SSH’d into the job to check what versions exist it outputs the following:

```auto
static:project distiller$ rbenv versions
rbenv: version `3.0.5' is not installed (set by /Users/distiller/project/.ruby-version)
  system
  2.7.8
  3.0.6
  3.1.4
  3.2.2
static:project distiller$

```

It looks like the Ruby version included with the executor changed some how.

---

<div class="post-metadata">

**Author:** ![bytesguy](https://avatars.discourse-cdn.com/v4/letter/b/0ea827/32.png) [@bytesguy](https://discuss.circleci.com/u/bytesguy)\
**Post date:** [May 26, 2023, 5:33pm UTC](https://discuss.circleci.com/t/macos-with-xcode-14-3-0-has-the-wrong-ruby-version/48206/2 "2023-05-26T17:33:05Z")

</div>

As per our image policy, patch versions are updated in-place and can include bumps to patch versions of included software as part of the process.

The 14.3.0 image was replaced with 14.3.1 recently:

> [@Xcode 14.3.1 Released](https://discuss.circleci.com/t/xcode-14-3-1-rc-released/48152):
>
> The Xcode 14.3.1 image has been released on M1 and Gen2 Intel resource classes and can be selected as follows: macos: xcode: 14.3.1 This patch version replaces Xcode 14.3.0 and requests to this image will be automatically redirected to 14.3.1 in due course information_source M1 VM Image Info information_source Xcode 14.3.1 Build version 14E300c is installed at /Applications/Xcode-14.3.1.app The full manifest of installed software can be found [here](https://circle-macos-docs.s3.amazonaws.com/image-manifest/v12297/manifest.txt)information_source Intel VM …

It is better to use the macOS orb as it contains logic to fuzzy match Ruby versions, allowing you to just specify a major.minor version, rather than working down to the patch level (patch images will retain the same major.minor versions of Ruby):

> **[Testing iOS applications on macOS - CircleCI](https://circleci.com/docs/testing-ios/#switching-rubies-with-the-macos-orb)**
>
> Testing iOS applications on macOS.

---

<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:** [June 2, 2023, 5:33pm UTC](https://discuss.circleci.com/t/macos-with-xcode-14-3-0-has-the-wrong-ruby-version/48206/3 "2023-06-02T17:33:07Z")

</div>

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