Setting up Xcode

Xcode is the only tool you need to start building iOS apps. It's free, made by Apple, and includes everything: the editor, a simulated iPhone, the debugger, and the path to the App Store. Let's get it installed and verified.

Before you start: requirements

Xcode runs only on a Mac. There's no official version for Windows or Linux. As of 2026, the current release is Xcode 26 (latest point release 26.5, May 2026). Here's what you need:

RequirementDetails
ComputerAny Mac with Apple Silicon (M1 or newer) or a recent Intel Mac
macOS versionmacOS Sequoia 15.6 or later (newer Xcode point releases may require macOS Tahoe 26)
Free disk space~40 GB recommended (Xcode + simulators grow over time)
Apple IDA free Apple ID (the same one you use for the App Store)

Check your macOS version first. Click the Apple menu → About This Mac. If your macOS is older than Sequoia 15.6, update it via System Settings → General → Software Update before installing Xcode.

Where to download Xcode

There are two official ways to get it. The Mac App Store is the easiest.

Download from the Mac App Store Apple Developer — Xcode page

For specific or older versions (and beta releases), use the developer downloads page — sign in with a free Apple ID:

All Xcode versions (developer.apple.com)

Only download from Apple. Never install Xcode from a third-party site or torrent — tampered copies have been used to inject malware into apps. The two links above (apps.apple.com and developer.apple.com) are the only sources you should trust.

Install it step by step

  1. Open the Mac App Store

    Click the blue App Store icon in your Dock, or open it from Spotlight (press ⌘ + Space and type "App Store").

  2. Search for Xcode and get it

    Type Xcode in the search box, then click Get followed by Install. Sign in with your Apple ID if prompted.

  3. Wait for the download

    Xcode is large (several gigabytes), so this can take a while depending on your internet speed. You can keep using your Mac while it downloads.

  4. Launch Xcode

    Once installed, open Xcode from Launchpad or Spotlight. The very first launch takes a few extra minutes as it finishes setting up.

  5. Accept the license & install components

    Xcode will ask you to agree to its license and may install additional required components. Enter your Mac password when prompted and let it finish.

[ Screenshot placeholder — Xcode in the Mac App Store ]

The Xcode welcome screen

When Xcode finishes launching, you'll see the Welcome window with three options:

If you don't see this window, open it any time from the menu bar: Window → Welcome to Xcode.

[ Screenshot placeholder — Xcode Welcome window ]

Optional: install the Command Line Tools

Most beginners don't need this right away, but many developer tools (like Git and package managers) rely on Xcode's command line tools. You can install them from the Terminal app:

xcode-select --install

Run this in Terminal; a dialog will pop up to confirm the install.

Verify your setup

To confirm everything is working, open Terminal and run:

xcodebuild -version

You should see something like Xcode 26.5 and a build number. If you do, your machine is ready to build iOS apps. 🎉

Next up: with Xcode installed, let's create your very first app — the classic "Hello, World!" — and run it on a simulated iPhone.