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/Developer directory. If you need Xcode installed, use that.
  • Independently, installable via xcode-select --install to /Library/Developer/CommandLineTools. This is preferable when Xcode is not otherwise required.

You can switch betwen installations with xcode-select --switch $dir.


With mas-cli:

mas install 497799835

Completing installation

Accept the licenses and download the "additional required components":

sudo xcodebuild -license accept
sudo xcodebuild -runFirstLaunch