Error: xcode-select: error: invalid developer directory '/Library/Developer/CommandLineTools' Failed during: /usr/bin/sudo /usr/bin/xcode-select --switch /Library/Developer/CommandLineTools


(Marcos) #1

trying to install Homebrew I got the error:
xcode-select: error: invalid developer directory ‘/Library/Developer/CommandLineTools’ Failed during: /usr/bin/sudo /usr/bin/xcode-select --switch /Library/Developer/CommandLineTools

Reading in this forums i tried already:
xcode-select --install and then try again the installer but it didn’t help, i got first: xcode-select: note: install requested for command line developer tools
and then the same error with the installer