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 https://developer.apple.com/download/more/.

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/Xcode.app /Applications/Xcode-8.3.3.app
sudo mv /Applications/Xcode-beta.app /Applications/Xcode.app

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

/Applications/Xcode.app
/Applications/Xcode-beta.app

and just run

sudo xcode-select -s /Applications/Xcode-beta.app/Contents/Developer

?

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

Related Issues:

114
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...
82
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...
58
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...
52
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...
38
brew SSL error when downloading from homebrew.bintray.com
As a temporary workaround brew config output brew doctor output The brew doctor above contains no Wa...
33
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...
20
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 ...
19
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...
14
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...
4
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...
3
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. ...
40
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...
224
homebrew openjdk Cask adoptopenjdk8 exists in multiple taps
I think AdoptOpenJDK8 should be removed from the homebrew-cask-versions repo Somone(TM) should proba...
71
homebrew core Permissions issue when linking python3
Same as your problem This works for me. Gist Logs: https://gist.github.com/37a31433396016024e15632df...
34
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...
33
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...
22
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...
19
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...
18
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 ...
18
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...
18
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...
17
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...
16
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...
15
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...
14
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...
14
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...
14
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...
9
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...
9
devilutionX Diablo Hellfire support
We had a grate second hackathon 64bit support is now done and the road ahead is more clear Hellfire ...
8
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...
7
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 ...
6
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...
6
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...
5
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...
4
homebrew core mu --with-emacs compile fails on macOS Sierra 10.12.3
Solution without Mono Here is recipe to build it without Mono - https://gist.github.com/KryDos/d306d...
459
flutter Multiple commands produce '/build/ios/Debug-iphonesimulator/Runner.app/Frameworks/Flutter.framework
I was able to fix it by opening the Runner workspace project in Xcode 10 Then navigate to File ...
449
flutter App Store iOS submission fails: The bundle Runner.app/Frameworks/App.framework 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...
418
flutter 'com.android.support:appcompat-v7' 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 gradle.build file is: flutter doctor: ...
409
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 ...
383
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...
358
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...
315
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...
285
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...
281
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 ...
279
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 ...
265
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 ...
250
238
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...
221
flutter Making Network http error SocketException: Failed host lookup
@hoc081098 Double-check / make sure you have <uses-permission android:name=android.permission.INTERN...