I have installed the Command Line Tools:
$ xcode-select --print-path
/Library/Developer/CommandLineTools
However, when anything tries to us
This issue was due to xcode-select developer directory pointing to /Library/Developer
, which only contained the folder CommandLineTools
. To this end, the error message is complaining about not the directory not being the same as Xcode.
Two tested solutions:
(Re) Install Xcode.
Point xcode-select to the Xcode Developer Directory using the following command:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
References:
How to fix error like “xcode-select: error: tool ‘xcodebuild’ requires Xcode, but active developer directory * BROKEN LINK *
xcode-select active developer directory error