1 (optional) Ensure xcode is up to date Download the latest version from the Mac App Store 2 Install Command Line Tools Either run xcode-select --install or if that fails, manually download them from the Apple Developer Site.