xcrun: error: active developer path does not exist

If while using git or brew commands you get  “xcrun: error: active developer path (“/Applications/Xcode.app/Contents/Developer”) does not exist” it means that xcode command line tool is not being found. Happens usually after updating Xcode or removing it.

usually one of the two commands given below resolves it

  • sudo xcode-select – -reset    (you will need root access)
  • xcode-select – -install  if you do not have xcode command line tool or it has been removed

 

 

A pat on the back !!