Xcode is Apple's IDE.
Command Line Tools
Xcode CLT provides additional CLI tools for macOS. They're distributed in two ways:
- As part of
Xcode.app, nested inside the
Contents/Developerdirectory. If you need Xcode installed, use that.
- Independently, installable via
/Library/Developer/CommandLineTools. This is preferable when Xcode is not otherwise required.
You can switch betwen installations with
xcode-select --switch $dir.
mas install 497799835
Accept the licenses and download the "additional required components":
sudo xcodebuild -license accept sudo xcodebuild -runFirstLaunch