Testing conducted by Apple in October 2020 using preproduction Mac mini systems with Apple M1 chip, and production 3.6GHz quad‑core Intel Core i3‑based Mac mini systems, all configured with 16GB of RAM and 2TB SSD. Open source project built with prerelease Xcode 12.2 with Apple Clang 12.0.0, Ninja 1.10.0.git, and CMake 3.16.5.
- This version includes the SDKs for iOS 14, iPadOS 14, macOS Catalina, tvOS 14, and watchOS 7. Download from the Mac App Store.
- Before committing to buying a new Mac, you can actually “rent” one for development. You’ll remotely access the Mac and Xcode through your PC. It’ll be like having the Mac desktop in a window on your Windows Desktop.
- Apple Xcode is a comprehensive integrated development environment specially designed for developers who want to develop applications for Mac, iPad and iPhone. Apple Xcode comes with a user-friendly interface that offers quick and easy access to iOS simulator, Instruments analysis tools and the latest software development kits for OS X and iOS.
With an all-new design that looks great on macOS Big Sur, Xcode 12 has customizable font sizes for the navigator, streamlined code completion, and new document tabs. Xcode 12 builds Universal apps by default to support Mac with Apple Silicon, often without changing a single line of code.
Designed for macOS Big Sur.
Xcode 12 looks great on macOS Big Sur, with a navigator sidebar that goes to the top of the window and clear new toolbar buttons. The navigator defaults to a larger font that’s easier to read, while giving you multiple size choices. New document tabs make it easy to create a working set of files within your workspace.
Document tabs.
The new tab model lets you open a new tab with a double-click, or track the selected file as you click around the navigator. You can re-arrange the document tabs to create a working set of files for your current task, and configure how content is shown within each tab. The navigator tracks the open files within your tabs using strong selection.
Navigator font sizes.
The navigator now tracks the system setting for “Sidebar icon size” used in Finder and Mail. You can also choose a unique font size just for Xcode within Preferences, including the traditional dense information presentation, and up to large fonts and icon targets.
Code completion streamlined.
A new completion UI presents only the information you need, taking up less screen space as you type. And completions are presented much faster, so you can keep coding at maximum speed.
Redesigned organizer.
An all-new design groups all critical information about each of your apps together in one place. Choose any app from any of your teams, then quickly navigate to inspect crash logs, energy reports, and performance metrics, such as battery consumption and launch time of your apps when used by customers.
SwiftUI
SwiftUI offers new features, improved performance, and the power to do even more, all while maintaining a stable API that makes it easy to bring your existing SwiftUI code forward into Xcode 12. A brand new life cycle management API for apps built with SwiftUI lets you write your entire app in SwiftUI and share even more code across all Apple platforms. And a new widget platform built on SwiftUI lets you build widgets that work great on iPad, iPhone, and Mac. Your SwiftUI views can now be shared with other developers, and appear as first-class controls in the Xcode library. And your existing SwiftUI code continues to work, while providing faster performance, better diagnostics, and access to new controls.
Universal app ready.
Xcode 12 is built as a Universal app that runs 100% natively on Intel-based CPUs and Apple Silicon for great performance and a snappy interface.* It also includes a unified macOS SDK that includes all the frameworks, compilers, debuggers, and other tools you need to build apps that run natively on Apple Silicon and the Intel x86_64 CPU.
Updated automatically
When you open your project in Xcode 12, your app is automatically updated to produce release builds and archives as Universal apps. When you build your app, Xcode produces one binary “slice” for Apple Silicon and one for the Intel x86_64 CPU, then wraps them together as a single app bundle to share or submit to the Mac App Store. You can test this at any time by selecting “Any Mac” as the target in the toolbar.
Test multiple architectures.
On the new Mac with Apple Silicon, you can run and debug apps running on either the native architecture or on Intel virtualization by selecting “My Mac (Rosetta)” in the toolbar.
Multiplatform template
New multiplatform app templates set up new projects to easily share code among iOS, iPadOS, and macOS using SwiftUI and the new lifecycle APIs. The project structure encourages sharing code across all platforms, while creating special custom experiences for each platform where it makes sense for your app.
Improved auto-indentation
Swift code is auto-formatted as you type to make common Swift code patterns look much better, including special support for the “guard” command.
StoreKit testing
New tools in Xcode let you create StoreKit files that describe the various subscription and in-app purchase products your app can offer, and create test scenarios to make sure everything works great for your customers — all locally testable on your Mac.
Get started.
Download Xcode 12 and use these resources to build apps for all Apple platforms.
Xcode is the Mac app that developers use to create apps for Apple’s platforms, like iOS. In this tutorial, you’ll learn how you can download and install Xcode on your Mac.
Here’s what we’ll get into:
- 3 approaches to download and install Xcode on your Mac
- Tips and tricks to keep your Xcode up-to-date
- How to install Xcode betas on your Mac
Ready? Let’s go.
Xcode can only be installed on a Mac. Want to build apps with a PC? Check out your alternatives here.
How To Download Xcode for macOS
How do you download Xcode for macOS? You’ve got a few options:
- Get Xcode via the Mac App Store
- Download Xcode via developer.apple.com/downloads
- Install through Mac App Store CLI (see below)
Let’s walk through the approaches you can use to download and install Xcode on your Mac, and their advantages. We’ll start with the Mac App Store, because that’s the simplest option.
Here’s how you can download and install via the Mac App Store:
- Make sure you’re logged into macOS with your Apple ID
- Open the Mac App Store app
- Search for “xcode” in the search field, at the top-left
- Click on the Xcode app item that appears
- Click on the Get or Install buttom at the top-right to download and install Xcode
There are a few things you should know, though. Xcode is a huge app, about 7 gigabyte (GB) in size. You’ll need about 15 GB of free space on your Mac to install Xcode this way.
Installing via the App Store is simple, easy and seamless. Unfortunately, issues with downloading, like a lost connection, etc., usually means you’ll have to reattempt the download.
Author’s Note: Installing Xcode via the App Store never maxes out my download speed — not even close. On a 500 Mbps fiber line, it regularly drops down to 200 KB/s.
Learn how to build iOS apps
Get started with iOS 14 and Swift 5
Sign up for my iOS development course, and learn how to build great iOS 14 apps with Swift 5 and Xcode 12.
Installing Xcode on Mac
Installing Xcode via the Mac App Store is as simple as clicking Install. However, there’s an approach that gives you more control: developer.apple.com/download.
Here’s how that works:
- Go to developer.apple.com/download and log in with your Apple ID
- Click on More in the top-right of the page, next to Beta and Release
- In the search field on the left, type “xcode” and press Enter
- Locate and click the appropriate version of Xcode in the list
- In the panel slides out, click the
.xip
filename, i.e. Xcode 12.xip and save/download that file onto your Mac
This will download a .xip
file, which includes Xcode. The download size is currently about 7 gigabyte (GB). You’ll need at least twice that size of free storage on your Mac to install Xcode with this approach. Downloading Xcode this way is often faster than through the Mac App Store.
Once you’ve downloaded Xcode, open and unzip the .xip
file. This may take a while. You can then drag-and-drop the Xcode.app
file to your ~/Applications
folder. Finally, start the Xcode app. You’ll be greeted with the following prompt:
Click Install in this prompt. Xcode will now attempt to install the Xcode Command Line Tools on your Mac. They are CLI tools used to compile apps with Xcode, among other things. You often need these tools to work with other programming languages on Mac, as well.
A disadvantage of manually installing Xcode through the Developer portal is that Xcode won’t automatically update. This isn’t necessarily a bad thing, however, because you can use this approach to install multiple versions of Xcode side-by-side. This is helpful for debugging or trying out beta versions of Xcode (see below).
There’s another, more hidden benefit. Installing Xcode through the Mac App Store limits you to the most recent version of Xcode. If your version of macOS or Mac OS X doesn’t support the latest version of Xcode, you can usually install older versions via developer.apple.com!
You can pinpoint the latest version of Xcode that your Mac supports by cross-referencing a few tables on Wikipedia. First, figure out what macOS version you have. Then, go to the Xcode wiki, and find your version of macOS in the min macOS version to run column between Xcode 9.x and 12.x. The version of Xcode you can run is in the row above the one you found. For example, the latest version of Xcode you can run on macOS 10.13.6 (High Sierra) is Xcode 10.1. Keep in mind that running an older version of Xcode often limits for which iOS, Swift and SwiftUI versions you can build.
Updating Xcode to The Latest Version
How do you keep your Xcode up-to-date? Apple regularly releases new versions of Xcode. They typically include bug fixes and performance improvements, as well as new Xcode features, like the minimap.
More importantly, new Xcode versions include new versions of the iOS SDKs, Swift and SwiftUI. You can only use these new technologies with the latest versions of Xcode.
You can update your Xcode to the latest versions like this:
- If you’ve installed Xcode via the App Store, updates happen automatically, or you can manually initiate an update in the Updates tab of the app
- If you’ve manually installed Xcode via developer.apple.com, you’ll also need to manually install the newer version; updates aren’t automatic
How do you know if Xcode has a new version?
Apple Xcode Download For Mac
- You get a notification on your Mac (if installed via App Store)
- Keep an eye on developer.apple.com/news/releases (official)
- Check out xcodereleases.com
- Follow @XcodeReleases on Twitter
By the way, there’s a 3rd way to download and install Xcode on your Mac. It’s called mas-cli, and it’s essentially a Command Line Interface (CLI) wrapper for the Mac App Store. It uses the App Store – from the command line… Nice!
Xcode Apple Mach-o Linker Error
You can install mas-cli
via Homebrew, a package manager for Mac. Installing mas-cli
via Homebrew happens like this:
You can then list apps installed through the App Store on your Mac, with:
You can then search for Xcode like this:
Then, copy the numerical code you see on screen to install Xcode:
Developer Xcode Download
You can find outdated apps with mas outdated
. You can then upgrade all outdated apps with mas upgrade
, or selectively update Xcode by its identifier:
Awesome!
Author’s Note: As I understand it, you’ll need to have installed an app via the App Store before you can install it again with mas-cli
.
Getting Xcode Beta Versions
Apple regularly releases beta versions of upcoming software, like iOS, macOS and Xcode. This enables developers to try out new features before they become available to the general public, and provide feedback and bug reports back to Apple.
How can you download and install Xcode’s beta versions? Here’s how:
- Go to developer.apple.com/download and log in with your Apple ID
- Choose one of the following:
- Click Beta in the top-right:
- Select Applications
- Locate the featured Xcode beta you need
- Click Download
- Click More in the top-right
- Use the search field to find “xcode”
- Locate the Xcode beta you need
- Expand the panel by clicking on it
- Click the
.xip
to download
- Click Beta in the top-right:
- Once you’ve got a
.xip
, unzip it, copy the.app
to your~/Applications
folder, and start the Xcode app.
As we’ve discussed before, you can install multiple versions of Xcode side-by-side with this approach. You can, for example, have the regular Xcode installed via the App Store, and install a beta version of Xcode next to it.
You don’t need to have a paid Developer Account to install betas of Xcode. Just use the free Apple Developer Account. It can occasionally happen that Apple restricts beta software to paid subscribers only, however.
If you’re installing multiple Xcodes, change their filenames to reflect their versions. That makes it easier to tell them apart! Just so you know: when you switch between installed Xcode versions, you usually get that “Install additional components” prompt again. There are ways around that, but it’s simplest to just let it install again whenever Xcode needs to.
Learn how to build iOS apps
Get started with iOS 14 and Swift 5
Sign up for my iOS development course, and learn how to build great iOS 14 apps with Swift 5 and Xcode 12.
Further Reading
Managed to install Xcode on your Mac? Awesome! Now you know how to install Xcode’s betas next to it, and keep everything up-to-date. Here’s what we discussed in this tutorial:
- 3 approaches to download and install Xcode on your Mac
- Tips and tricks to keep your Xcode up-to-date
- How to install Xcode betas on your Mac
Want to learn more? Check out these resources: