macOS 10.14(beta) How to install Command_Line_Tools_macOS_10.14_for_Xcode_10_Beta macOS 10.14(beta) How to install Command_Line_Tools_macOS_10.14_for_Xcode_10_Beta xcode xcode

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:

  1. Download "Xcode 10.0 Beta" from https://developer.apple.com/download/
  2. Unzip it and move it to /Applications
  3. Download "Command Line Tools (macOS 10.14) for Xcode 10 Beta" from https://developer.apple.com/download/more/
  4. Run the installer for "Command Line Tools"
  5. Launch the Xcode-beta application and wait for it to install necessary packages when it prompts it at launch
  6. 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 /