Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Brew upgrade not working on latest OSX High Sierra beta version

I am getting the following error when upgrading brew packages

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/

Since I am using the beta osx version

High Sierra
System Version: macOS 10.13
Kernel Version: Darwin 17.0.0

It seems like I have to upgrade the beta Xcode version (Xcode 9) too, which I have downloaded and installed successfully from apple website https://developer.apple.com/xcode/

Now, my question is how do I switch the Xcode version on my mac so that brew command uses the newly installed Xcode.

When I run xcodebuild -version I am getting the following output (installed from App store)

Xcode 8.3.3
Build version 8E3004b

whereas the beta version I have downloaded is from the apple website directly shows 9.0 beta 6

enter image description here

like image 998
zaq Avatar asked Sep 08 '17 12:09

zaq


People also ask

Where is Homebrew installed on Mac M1?

But if you install Homebrew on an M1 Mac running Apple Silicon, then Homebrew gets installed in /opt/homebrew/bin . Since /opt/homebrew/bin is not included in your PATH by default, there is some extra configuration needed to allow you to use packages installed with Homebrew.

Where is brew installed on Mac?

On Mac Intel machines, that's all you need to do; Homebrew is ready to use. On Mac Intel, Homebrew installs itself into the /usr/local/bin directory, which is already configured for access by the shell with the macOS default $PATH environment variable (the default is set by the /usr/libexec/path_helper command).

Can you install Homebrew on windows?

Homebrew officially supports Linux and Windows 10 with Windows Subsystem for Linux (WSL). Homebrew on Linux was previously called “Linuxbrew”. You can install it in your home directory, so it does not require sudo , and use it to install software that your host distribution's package manager does not provide.


1 Answers

Since Xcode is downloaded from the website the full command to switch is the following (considering you've moved the app to the application folder)

sudo xcode-select --switch /Applications/Xcode-beta.app

like image 191
zaq Avatar answered Nov 15 '22 07:11

zaq