# XCode 8.3 Homebrew outdated error

**URL:** <https://travis-ci.community/t/xcode-8-3-homebrew-outdated-error/3798>\
**Category:** macOS\
**Tags:** bug\
**Created:** [June 18, 2019, 7:53pm UTC](https://travis-ci.community/t/xcode-8-3-homebrew-outdated-error/3798 "2019-06-18T19:53:41Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/ryan/32/866_2.png) [@ryan](https://travis-ci.community/u/ryan)\
**Post date:** [June 18, 2019, 7:53pm UTC](https://travis-ci.community/t/xcode-8-3-homebrew-outdated-error/3798/1 "2019-06-18T19:53:41Z")

</div>

Starting late last night (or earlier this morning), our macOS build using the XCode 8.3 image started failing on the Homebrew install package step with the message:

> Error: Your Homebrew is outdated. Please run `brew update`.  
> Error: Kernel.exit

Our last working build was June 17 @ 10:35ish pm PST: [Travis CI - Test and Deploy with Confidence](https://travis-ci.org/GMLC-TDC/HELICS-src/jobs/547065289)  
And our first build seeing the error was June 18 @ 10:25ish am PST: [Travis CI - Test and Deploy with Confidence](https://travis-ci.org/GMLC-TDC/HELICS-src/jobs/547328813)

Adding `update: true` for updating Homebrew does resolve the error, but it significantly increases the build time by 26 minutes (6 minutes for running brew update, and installing packages takes an extra 20 minutes, probably updating a bunch of other installed packages).

---

<div class="post-metadata">

**Author:** ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)\
**Post date:** [June 18, 2019, 9:09pm UTC](https://travis-ci.community/t/xcode-8-3-homebrew-outdated-error/3798/2 "2019-06-18T21:09:14Z")

</div>

Do you need the Xcode 8.3 image, or do you just want a 10.12 image? If the latter, the Xcode 9.2 image will work better for you.

Homebrew tends to force you (and CI) to be on the bleeding edge, and the use of older images (which are unlikely to be updated) could prove problematic.

---

<div class="post-metadata">

**Author:** ![speth](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/speth/32/2017_2.png) [@speth](https://travis-ci.community/u/speth)\
**Post date:** [June 18, 2019, 9:36pm UTC](https://travis-ci.community/t/xcode-8-3-homebrew-outdated-error/3798/3 "2019-06-18T21:36:09Z")

</div>

I’ve started getting the same error using the XCode 9.4 image (the current default macOS image, which runs macOS 10.13) on a different project, so I don’t think changing to a different image will be sufficient.

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [June 19, 2019, 1:47am UTC](https://travis-ci.community/t/xcode-8-3-homebrew-outdated-error/3798/4 "2019-06-19T01:47:45Z")

</div>

A possible solution is to cache Homebrew metadata as per [https://stackoverflow.com/questions/39930171/cache-brew-builds-with-travis-ci](https://stackoverflow.com/questions/39930171/cache-brew-builds-with-travis-ci).

---

<div class="post-metadata">

**Author:** ![mauriciofauth](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/mauriciofauth/32/5060_2.png) [@mauriciofauth](https://travis-ci.community/u/mauriciofauth)\
**Post date:** [June 19, 2019, 5:51pm UTC](https://travis-ci.community/t/xcode-8-3-homebrew-outdated-error/3798/5 "2019-06-19T17:51:04Z")

</div>

This error is also happening with the default image.

See: [https://travis-ci.org/phpmyadmin/phpmyadmin/jobs/547831764#L141](https://travis-ci.org/phpmyadmin/phpmyadmin/jobs/547831764#L141)

---

<div class="post-metadata">

**Author:** ![bmw](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/bmw/32/2514_2.png) [@bmw](https://travis-ci.community/u/bmw)\
**Post date:** [June 19, 2019, 7:43pm UTC](https://travis-ci.community/t/xcode-8-3-homebrew-outdated-error/3798/6 "2019-06-19T19:43:14Z")

</div>

I’m seeing this problem on the default image as well at [https://travis-ci.com/certbot/certbot/builds/116169882](https://travis-ci.com/certbot/certbot/builds/116169882).

---

<div class="post-metadata">

**Author:** ![HazenBabcock](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/hazenbabcock/32/3907_2.png) [@HazenBabcock](https://travis-ci.community/u/HazenBabcock)\
**Post date:** [June 21, 2019, 10:35pm UTC](https://travis-ci.community/t/xcode-8-3-homebrew-outdated-error/3798/7 "2019-06-21T22:35:03Z")

</div>

I’m also seeing this problem on the default image (xcode9.4) [https://travis-ci.org/ZhuangLab/storm-analysis/jobs/548885636](https://travis-ci.org/ZhuangLab/storm-analysis/jobs/548885636).

---

<div class="post-metadata">

**Author:** ![HazenBabcock](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/hazenbabcock/32/3907_2.png) [@HazenBabcock](https://travis-ci.community/u/HazenBabcock)\
**Post date:** [July 12, 2019, 1:04pm UTC](https://travis-ci.community/t/xcode-8-3-homebrew-outdated-error/3798/8 "2019-07-12T13:04:19Z")

</div>

FWIW, the xcode10.1 osx\_image also fails. The xcode11 osx\_image works. xcode10.2 untested.

---

<div class="post-metadata">

**Author:** ![robert-schmidtke](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/robert-schmidtke/32/2032_2.png) [@robert-schmidtke](https://travis-ci.community/u/robert-schmidtke)\
**Post date:** [July 12, 2019, 1:20pm UTC](https://travis-ci.community/t/xcode-8-3-homebrew-outdated-error/3798/9 "2019-07-12T13:20:56Z")

</div>

10.2 worked for me a couple of days ago: [https://travis-ci.org/paciofs/multichain/builds/557160831](https://travis-ci.org/paciofs/multichain/builds/557160831)  
I updated from 10.1 because it was failing as well, like you said. Wasn’t aware of 11 being out there already.

---

<div class="post-metadata">

**Author:** ![bmw](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/bmw/32/2514_2.png) [@bmw](https://travis-ci.community/u/bmw)\
**Post date:** [August 13, 2019, 12:25am UTC](https://travis-ci.community/t/xcode-8-3-homebrew-outdated-error/3798/10 "2019-08-13T00:25:31Z")

</div>

Are there are any plans to fix this issue? It seems that Homebrew is still broken in the default macOS image in Travis. See [https://travis-ci.com/certbot/certbot/builds/122908542](https://travis-ci.com/certbot/certbot/builds/122908542).

---

<div class="post-metadata">

**Author:** ![Bob-Thomas](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/bob-thomas/32/2568_2.png) [@Bob-Thomas](https://travis-ci.community/u/Bob-Thomas)\
**Post date:** [August 21, 2019, 2:41pm UTC](https://travis-ci.community/t/xcode-8-3-homebrew-outdated-error/3798/11 "2019-08-21T14:41:59Z")

</div>

Had the same issue on xcode9.4. Fixed it by just using brew install instead of the addon.

osx\_image:10.2 does not seem to have the issue

---

<div class="post-metadata">

**Author:** ![bmw](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/bmw/32/2514_2.png) [@bmw](https://travis-ci.community/u/bmw)\
**Post date:** [January 22, 2020, 12:16am UTC](https://travis-ci.community/t/xcode-8-3-homebrew-outdated-error/3798/12 "2020-01-22T00:16:08Z")

</div>

This appears to have been fixed. I am no longer having this problem when I unpin my macOS image.

---

<div class="post-metadata">

**Author:** ![tanzislam](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/tanzislam/32/2591_2.png) [@tanzislam](https://travis-ci.community/u/tanzislam)\
**Post date:** [April 3, 2021, 3:00pm UTC](https://travis-ci.community/t/xcode-8-3-homebrew-outdated-error/3798/13 "2021-04-03T15:00:53Z")

</div>

> [@ryan](#):
>
> Adding `update: true` for updating Homebrew does resolve the error, but it significantly increases the build time by 26 minutes (6 minutes for running brew update, and installing packages takes an extra 20 minutes, probably updating a bunch of other installed packages).

I’d suggest exporting the [`HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1` environment variable](https://docs.brew.sh/Manpage#environment) to remedy the slowness with `update: true`. According to the manual,

> If set, do not check for broken dependents after installing, upgrading or reinstalling formulae.

… which seems reasonable to use in Travis CI because a lot of packages are preinstalled for user convenience, but the typical project will only need some of them (or, even better, will explicitly list its top-level dependencies in its `.travis.yml` or `.Brewfile`).
