Installing the Xcode Command Line Tools on a Mac
You can download the Xcode command-line tools in either of two ways:
To install the necessary Xcode tools using Xcode on the Mac:
- Start Xcode on the Mac.
- Choose Preferences from the Xcode menu.
- In the General panel, click Downloads.
- On the Downloads window, choose the Components tab.
- Click the Install button next to Command Line Tools.
- You are asked for your Apple Developer login during the install process.
To install the necessary Xcode tools from the Web:
You can download the Xcode command line tools directly from the developer portal as a .dmg
file.
- On the Mac, go to https://developer.apple.com/downloads/index.action
- You are asked for your Apple Developer login during the install process.
- On the "Downloads for Apple Developers" list, select the Command Line Tools entry that you want.