Skip to content

Instantly share code, notes, and snippets.

@ArneGockeln
Created September 5, 2018 15:21
Show Gist options
  • Save ArneGockeln/e05f698a6623dbe15469e0dcfd5b46af to your computer and use it in GitHub Desktop.
Save ArneGockeln/e05f698a6623dbe15469e0dcfd5b46af to your computer and use it in GitHub Desktop.
xcode macos developer tools path

Saved the answer of the post from https://stackoverflow.com/questions/26185978/macos-wchar-h-file-not-found

First ensure that the latest XCode is installed. Next, we need to install/fix/update Command Line Tools. To do so, run

$ xcode-select --install

Previously, XCode expected it's active developer directory to be located at

/Applications/Xcode.app/Contents/Developer/

but the latest Command Line Tools is installed to

/Library/Developer/CommandLineTools/

so we need to switch where XCode is looking. To do so, run

sudo xcode-select --switch /Library/Developer/CommandLineTools/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment