Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
MacOS (xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools))
If you are facing an error like that on new MacOS version.
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
It means that you need to install XCode command line, open a Terminal and run this command:
$ xcode-select --install
If you want to download and install Command Line tools manually, it can be downloaded from:
Copy link

Works on Macbook Pro M1 Pro. MacOS Ventura 13.0.1 with this extra command after the one here

sudo xcode-select --switch /Library/Developer/CommandLineTools/

Copy link

Macbook M2 Ventura - works fine!

Copy link

Great! Thank you!

Copy link

as49049 commented Jan 14, 2023

Thanks - That works!

Copy link


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment