Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

Install Xcode on macOS

Download Xcode from the App Store, install the command-line tools and check that it opens.

How-To Guides2 min read13 steps1 screenshot

Requirements

  1. The recent version of macOS. Check Software Update in System Settings.
  2. Lots of free disk space. Xcode needs about 40 GB.
  3. An Apple ID to download from the App Store.

Download Xcode

  1. Open the App Store on your Mac.
  2. Type Xcode in the search bar at the top.
  3. Open Xcode from the results.
    Xcode in the App Store
  4. Click Get, then Install. The download is large, so give it time.

Install the command-line tools

  1. Open Terminal. It is in Applications > Utilities.
  2. Run:
xcode-select --install
  1. A pop-up asks if you want to install the tools. Click Install and follow the prompts.

Check the installation

  1. Open the Applications folder and double-click Xcode.
  2. On the first launch, accept the license and let it install the extra components.
  3. Check the tools in Terminal:
xcodebuild -version

Troubleshooting

  • Not enough space. Free some disk space and start again.
  • Slow download. Check the connection, or try later or on another network.

FAQ

What is Xcode? Apple's IDE for apps on iOS, macOS, watchOS and tvOS.

Is Xcode free? Yes.

Can I install Xcode on Windows? No. Xcode only runs on macOS.

Do I need an Apple ID? Yes, to download from the App Store.

Quick recap

  • Install from the App Store.
  • Run xcode-select --install for the command-line tools.