Skip to content

Instantly share code, notes, and snippets.

@gaquino
Last active August 10, 2026 13:59
Show Gist options
  • Select an option

  • Save gaquino/87bdf0e6e852e445c0489379d3e9732a to your computer and use it in GitHub Desktop.

Select an option

Save gaquino/87bdf0e6e852e445c0489379d3e9732a to your computer and use it in GitHub Desktop.
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
Note:
If you want to download and install Command Line tools manually, it can be downloaded from: https://developer.apple.com/download/more/
@Malinka2021

Copy link
Copy Markdown

You can just exec brew install script without removing it
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

works fine, thanks

@ArtanisHash

Copy link
Copy Markdown

If you get a 200 hours / 400 hours showing at "downloading software" window, just click "stop" and repeat the command on terminal. It will show around 13 min. completion. Ventura - 13.7.8, Intel mid 2017 15".

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