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

(Jey Miranda) #25

Thanks!! This worked for me

(Barbara12bakker) #26

This worked for me! thanks for sharing.

(Ptitjes) #27

You saved my day ! :heart:

(Joshua C Morgan) #28

This worked for me! Thanks.

(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

(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

(Micah Potter) #31

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

(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

(Krishna Rathi) #33

Thanks. It worked for me!