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

(Survivorsfyh) #21

u can try it,hope can helps u

0 Likes

(Jey Miranda) #25

Thanks!! This worked for me

0 Likes

(Barbara12bakker) #26

This worked for me! thanks for sharing.

0 Likes

(Ptitjes) #27

You saved my day ! :heart:

0 Likes

(Joshua C Morgan) #28

This worked for me! Thanks.

0 Likes

(Dallarwww) #29

I fix this issue via these steps.

  1. go to https://developer.apple.com/download/more/ and download latest Command Tools
  2. manually install Command Tools
0 Likes

(George Co) #30

That worked for me, I installed the 10.14.1 version as the older version running on a new mac which was running 10.14

0 Likes

(Micah Potter) #31

sudo xcode-select -s /Library/Developer/CommandLineTools fixed it for me.

0 Likes

(Matt Taylor) #32

I kept following the “easy” advice to run xcode-select --install and it kept timing out and ending in error (in OSX 10.14 Mojave). Following these steps XCode --> Open Developer Tool --> More Developer tools and download the Command Line Tools was the solution

0 Likes

(Krishna Rathi) #33

Thanks. It worked for me!

0 Likes

(Petehernan) #34

Hello. My company does not allow me to connect Apple to download/install.
But I do have admin rights on my Mac (Sierra 10.12.6) and was able to resolve
brew install by capturing install script (curl https://raw.githubusercontent.com/Homebrew/install/master/install > Homebrew_install.ruby) , edit script: comment out the install and for good measure allow --switch to point at /Applications/Xcode.app/Contents/Developer. Execute: /usr/bin/ruby ./Homebrew_install.ruby Good luck!

0 Likes