I have a Mid 2015 MacBook Pro running macOS High Sierra 10.13.3.
I tried starting up a new project and none of my commands seem to work.
I always get this error:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools),
missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Seems pretty straight forward, Xcode Command Line Tools missing. Except installing it seems to not work/have no effect.
I enter: xcode-select --install
, press install, agree to the agreement, it downloads, installs, gives me a nice The software was installed
but if I try any command again (like brew update
or brew upgrade
); I get the same error. (I tried rebooting, but to no effect).
How do I resolve this issue? All I could find on Google is people saying Install Xcode Command Line Tools.
Best Answer
Okay, After a full day of attempts, re-installing homebrew and all... found a solution which I should have tried a lot earlier in all honesty. Leaving it here if anyone else has the same problem in the future:
Doing
xcode-select --install
showed everything as being installed correctly but I just couldn't confirm that anywhere. I downloaded the CLT as a pkg from the apple developer website (https://developer.apple.com/download/more/) and installed it the old fashioned way. CLT is now installed and homebrew is detecting it just fine.Brew Config now:
Thanks Nimesh for helping me!