macOS 10.14(beta) How to install Command_Line_Tools_macOS_10.14_for_Xcode_10_Beta
It looks like you have two versions of the xcode installed on your machine.First select the latest version of the xcode by running this command:
sudo xcode-select -switch <path/to/>Xcode.app
Once this is done, install the required command line tools but running this command:
xcode-select --install
This worked for me:
- Download "Xcode 10.0 Beta" from https://developer.apple.com/download/
- Unzip it and move it to
/Applications
- Download "Command Line Tools (macOS 10.14) for Xcode 10 Beta" from https://developer.apple.com/download/more/
- Run the installer for "Command Line Tools"
- Launch the
Xcode-beta
application and wait for it to install necessary packages when it prompts it at launch - Run this from the command line
sudo xcode-select -switch /Applications/Xcode-beta.app/
Now brew update
should work again.
This fixed things for me, on a fresh 10.14 Beta 3 install.
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /