Solvedbrew Homebrew doesn't allow side-by-side Xcode 8.3.3 and 9.0 installations

I have both 8.3.3 and 9.0 installed on MacOS High Sierra.

When running brew upgrade xxxx, I am getting Error: Your Xcode (8.3.3) is too outdated. Please update to Xcode 9.0 (or delete it). Xcode can be updated from

This seems a harsh position since 8.3.3 is the current release and 9.0 is only in BETA (and not stable yet).

27 Answers

✔️Accepted Answer

OK. Please try this:

sudo mv /Applications/ /Applications/
sudo mv /Applications/ /Applications/

Other Answers:

That's a problem because one of the formulas does not support Xcode 9.

You can use brew install --force-bottle foo to use the Sierra bottle.

Why are you hardcoding which Xcode is used on which OS? Even after beta timeframe is over, it should be possible to switch an Xcode version on the fly using Apple provided tools, and brew should respect that setting.

Allowing arbitrary Xcode versions leads to avoidable build failures and additional support burden.

That's a problem because one of the formulas does not support Xcode 9.

Why are you hardcoding which Xcode is used on which OS? Even after beta timeframe is over, it should be possible to switch an Xcode version on the fly using Apple provided tools, and brew should respect that setting.

(There's another thing I'd like you to test after testing that if possible.)

Specifically (if you get a chance to test this), does brew work if you have the original names


and just run

sudo xcode-select -s /Applications/


@jkili cool. And does it also work the other way, when is 8 and is 9, and you've run sudo xcode-select -s /Applications/ ?

Related Issues:

brew MBP M1 fails to 'brew update' and 'brew upgrade'
Your Homebrew-installed git is probably broken This seems to have come up a bunch of times but I hav...
brew Brew update error
You will only need to execute this once and you'll be okay afterwards Hi today i run brew update wit...
brew brew cleanup fails when cask is defined in multiple taps
@MikeMcQuaid Yes we absolutely need to fix this In the meantime the issue can be worked around by re...
brew Brew update fails with Permission denied (publickey).
@bm5k figured it out for 10.12 which uses ssh-agent now (cool) Just ssh-add ~/.ssh/<your rsa file> A...
brew SSL error when downloading from
As a temporary workaround brew config output brew doctor output The brew doctor above contains no Wa...
brew brew update : Bad file descriptor (Errno::EBADF)
I had the same issue my problem was that I run a sudo command that probably affected some permission...
brew Homebrew does not work on Big Sur (10.16/11.0)
In addition to installing XCode 12.2 I had to to get brew upgrade/brew install to work on Big Sur ...
brew Homebrew doesn't allow side-by-side Xcode 8.3.3 and 9.0 installations
OK Please try this: I have both 8.3.3 and 9.0 installed on MacOS High Sierra When running brew upgra...
brew Broken vim after perl upgrade
I met this issue too when I had ran brew upgrade,so I tried: brew uninstall --ignore-dependencies pe...
brew pkg-config files on >=10.14 assume headers in /usr/include
Looks like there's a significant issue with the way SwiftPM handles pkg-config Please note we will c...
brew Fatal error on outdated xcode
@DomT4 FYI Travis sets CI as well so you could just use that instead of both TRAVIS and CIRCLECI. ...
brew brew update failed with "Error: Git must be installed and in your PATH!"
Possibly related: I reproduced the same on High Sierra and after performing the HOMEBREW_NO_ENV_FILT...
homebrew openjdk Cask adoptopenjdk8 exists in multiple taps
I think AdoptOpenJDK8 should be removed from the homebrew-cask-versions repo Somone(TM) should proba...
homebrew core Permissions issue when linking python3
Same as your problem This works for me. Gist Logs:
homebrew core "module 'enum' has no attribute 'IntFlag'" when installing python3
@deering59 Make sure that nowhere in your shell configuration files PYTHONPATH is set to point to yo...
kerl Can't install Erlang-24 due to openssl issues
TL;DR: read the last part I encountered the very same problem After inspecting both config.log and o...
homebrew core Upgrading to Ruby 2.4.1_1 breaks gem command.
Oh hey! That solved it! So both: and seems to do the trick! Thanks!! Ran brew update and retried you...
homebrew cask What to do regarding java development casks
Edit 2: added link to AdoptOpenJDK migration guide; December 2020 deadline for Oracle JDK 8 availabi...
homebrew core Formula php@5.6 not working on macOS 10.14 (Mojave)
I was able to track the issue down to the packaged OPcache extension Please note we will close your ...
homebrew core Failed to set locale category
Currently I've just added export LC_ALL in my .bash_profile. Please note we will close your issue wi...
mas High Sierra Exception error
Thanks for the updates and details everyone Sorry it has been broken for so long but I'm looking int...
homebrew core Upgrading to Xcode CLT 11.0 broke GCC 9
This is a bug in the C library that comes with the updated Xcode To fix it I just upgraded the Xcode...
homebrew core First issues with macOS 10.13 High Sierra
@kylebrowning you can brew install --force-bottle foo for anything you're having trouble building an...
homebrew cask VirtualBox Cask 6.0.8 Broken and Partial Fails Installation
BTW For those having this problem and need an immediate resolution Boot into Recovery with Command-R...
homebrew cask Bug report: Problem uninstalling the wireshark cask
@vitorgalvao same issue reported in @alireza's last comment Digging a bit further: this complete seq...
homebrew cask brew cask zap command failed and the output is weird
I've experienced it too And it is not the first time that Software Update messed my CLT installation...
linuxbrew core glibc: Requires GCC 4.7 or later
OK Is it currently supported to install glibc on rather old systems without root access? I am workin...
homebrew core wireguard doesn't start anymore
Dug a bit deeper and realized this is already fixed by commit WireGuard/wireguard-tools@457f96b on J...
devilutionX Diablo Hellfire support
We had a grate second hackathon 64bit support is now done and the road ahead is more clear Hellfire ...
homebrew core brew install neovim --HEAD fails on macOS Monterey
Can confirm that worked for me In case anyone else needs the steps: brew gist-logs <formula> link OR...
homebrew core Segmentation fault with curl-openssl
@mbence Thanks for the input! Could you please let me know can I revert to that version? I tried to ...
homebrew core qt5 fails to build on macOS 10.11 & 12
Not a solution but if anyone lands here trying to install Qt5 on macOS Sierra and you just want to g...
homebrew services brew services - Unknown command: services
Run brew update this is now fixed by a new Homebrew/brew tag. The latest commit breaks brew services...
homebrew core libtiff source no longer available (new patch level)
Some fairly strange errors there For a start you've apparently got a mirror pointing to a .deb which...
homebrew core mu --with-emacs compile fails on macOS Sierra 10.12.3
Solution without Mono Here is recipe to build it without Mono -
flutter Multiple commands produce '/build/ios/Debug-iphonesimulator/
I was able to fix it by opening the Runner workspace project in Xcode 10 Then navigate to File ...
flutter App Store iOS submission fails: The bundle does not support the minimum OS Version specified in the Info.plist
After doing a flutter clean changing MinimumOSVersion (inside /ios/Flutter/AppframeworkInfo.plist) t...
flutter '' has different version for the compile (26.1.0) and runtime (27.0.1) classpath
is like this i receive an error when i run flutter run My file is: flutter doctor: ...
flutter Why does my text not wrap?
You have to wrap Column in a flexible Without flexible the column's width is not constrained to the ...
flutter Unexpected top padding in ListView put inside scaffold with no appBar
Yeah this is intentional If you put a widget before the ListView you should wrap the ListView with a...
atom Sometimes opening a file, Atom does not open in a new tab
This feature is called Pending Pane Items (formerly known as Preview Tabs) – this allows you to quic...
flutter Missing xcode dependency: Python module "six"
try python2.x -m pip install six by @humblerookie's suggest or brew reinstall python@2 pip install s...
flutter flutter messaging: set the notification icon
Hey guys I fought with this for the better part of a day For some strange reason there are no tutori...
flutter Issue with cloud_firestore - Cannot fit requested classes in a single dex file.
As a workaround you can try enabling mutlidex for Android App by following Enable multidex for apps ...
valet In Brew.php line 187: Unable to determine linked PHP.
I've had the same problem tonight I try methods: composer global update install php 72 brew upgrade ...
flutter D8: Program type already present: io.flutter.BuildConfig
@smrucv I received the same error but after flutter clean and flutter packages get everything works ...
flutter Introduction of characters package causes crash on flutter run for preexisting Flutter applications
In my case I resolved the issue with flutter clean After e0ed12c I get this error when building: @ju...
flutter Making Network http error SocketException: Failed host lookup
@hoc081098 Double-check / make sure you have <uses-permission android:name=android.permission.INTERN...