macOS will alert you when you enter a command in Terminal that requires Command Line Tools. You should cancel and install Command Line Tools manually first.
Install Command Line Tools manually with xcode-select
.
xcode-select --install
Verify the installation.
xcode-select --print-path
This command displays the location of the currently active developer directory, which by default is /Applications/Xcode.app/Contents/Developer
if Xcode is installed. However, the Command Line Tools installed with xcode-select
are found in /Library/Developer/CommandLineTools
. If xcode-select -p
still identifies the Xcode path as the active developer directory, use xcode-select -switch
to make the separately installed version active.
sudo xcode-select --switch /Library/Developer/CommandLineTools/