If you’re looking for a simple command that can fix this, and your xcode is installed in the default location (/Applications/Xcode.app), you can fix this with this command:
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
If you’re looking for a simple command that can fix this, and your xcode is installed in the default location (/Applications/Xcode.app), you can fix this with this command:
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer