MacOS (xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools))
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
|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: https://developer.apple.com/download/more/|
Oct 4, 2022
Worked in MacBook Pro 2017 Monterey OS 12.6, thanks.
Oct 26, 2022
Oct 28, 2022
Wops! That's awesome! Same error with M1, Macbook Pro 2021, Ventura OS.
Oct 29, 2022
Nov 1, 2022
I had the same problem while upgrading to macOS Ventura, and that solved the issue.
Nov 6, 2022
You can just exec brew install script without removing it
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
this worked for macbook pro os montery 12.4, thanks !
This worked for me on my MacBook Pro M1 [ Ventura update ]
Nov 12, 2022
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/
Nov 17, 2022
Macbook M2 Ventura - works fine!
Dec 1, 2022
Great! Thank you!
Jan 14, 2023
Thanks - That works!
Jan 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Thanks for sharing, this worked well!