How to install Xcode from an .aea file
Starting with Xcode 27.3 beta, Apple offers Xcode as an Apple Encrypted
Archive (.aea) as well as the familiar .xip, and says 27.3 is the last
release that will come as a .xip. To install from the command line, Apple’s
Xcode 27.3 release notes
point to a tool that comes with macOS: archiveutil extractXcodeAEA.
Despite the name, there’s no password. The Xcode download is signed by Apple, not encrypted (more on that below).
What changed
- Xcode 27.3 beta (beta 2 is build 27C5035i, November 16, 2026) is the
first release offered as
.aea. The.xipis still there beside it. For beta 2 the two are close in size: 2.17 GB for the.aea, 2.08 GB for the.xip. - Xcode 27.3 is the final release in
.xip. From the next release on, plan on.aeaonly. xip --expanddoesn’t read.aeafiles. Anything that installs Xcode withxip, by hand or in a script, needs the new command.
Install from the command line
archiveutil is part of macOS. On macOS 27.2.1, archiveutil help lists one
command, extractXcodeAEA, which takes the path to the file and nothing else.
Its manual page says archiveutil first appeared in macOS 15; Xcode 27.3
itself needs macOS Tahoe 26.6 or later.
Open Terminal and go to the folder you want Xcode in. Here that’s the Downloads folder, where the file is:
cd ~/DownloadsType
archiveutil extractXcodeAEA(with the space at the end), then drag the.aeafrom Finder into the Terminal window and press Return:archiveutil extractXcodeAEA ~/Downloads/Xcode_27.3_beta_2.aeaIf you type the name instead, use the file’s real name, in quotes if it has spaces.
It prints “Extracting from:” and the file’s path, and when it’s done, “Extraction completed to:” and the path of the app. For the 27.3 beta 2 download the app is named
Xcode-beta.app. Move it into your Applications folder, as you would after expanding a.xip.
archiveutil has no option for where to put Xcode: it writes the app into
the folder you run it from, not the folder the download is in. I checked by
running it from a different folder, and Xcode-beta.app landed there.
That’s why step 1 changes to the folder you want Xcode in. Install tools such
as xcodes run it in a folder of their own and then move the app.
I ran both on the Xcode 27.3 beta 2 downloads, on a MacBook Pro with an M2
Pro and macOS 27.2.1: the .aea with archiveutil, and the .xip with
xip --expand. Each ran twice, in alternating order.
.aea | .xip | |
|---|---|---|
| Download | 2.17 GB | 2.08 GB |
| Time to extract, run 1 | 77 seconds | 67 seconds |
| Time to extract, run 2 | 66 seconds | 64 seconds |
| Xcode app on disk | 3.9 GB | 3.7 GB |
Both gave the same Xcode, version 27.3 (27C5035i), and both passed
codesign --verify --deep --strict and Gatekeeper’s check (spctl:
“accepted, source=Apple System”). I’d seen it said that the new format
extracts about 40% faster; on this Mac it took about the same time, a few
seconds slower.
Two smaller differences: the app from the .aea keeps the download’s
quarantine flag, so macOS checks it the first time you open it, as it does
for anything downloaded. And archiveutil gives the extracted files the
current date and time, where xip keeps the dates Apple built them with.
If archiveutil can’t verify the file, it stops with “Error: The operation
couldn’t be completed. Invalid argument”. I got that from a test file I signed
with my own key and from a cut-off copy of it, and neither wrote anything, so
the message doesn’t say what’s wrong. If you see it on an Xcode download,
delete anything it left behind and download the file again from Apple. I
haven’t tried a cut-off copy of a real Xcode download.
Double-clicking
On macOS 27.2.1, Archive Utility (the app that comes with macOS) is the
default app for .aea files, so double-clicking one opens it there. Apple’s
notes only describe the command line, and I haven’t double-clicked a real Xcode
download yet. With my test files, Archive Utility said “Unable to
expand” with Error 22, the same “Invalid argument” as above.
Fix your install scripts
Swap xip --expand for archiveutil extractXcodeAEA, run from the folder you
want Xcode in. While both formats are around, pick by extension, and stop if
anything is off:
case "$ARCHIVE" in /*) ;; *) ARCHIVE="$PWD/$ARCHIVE" ;; esac
cd "$DEST" || exit 1
case "$ARCHIVE" in
*.aea) archiveutil extractXcodeAEA "$ARCHIVE" ;;
*.xip) xip --expand "$ARCHIVE" ;;
*) echo "Not an .aea or .xip: $ARCHIVE" >&2; exit 1 ;;
esacARCHIVE is the download and DEST the folder Xcode goes in. The first line
makes the archive’s path absolute before the script changes folder.
Install tools that have added .aea support (I haven’t run either yet):
- xcodes 2.2.0, November 11, 2026:
its pull request and README say it installs
.aeawith Apple’sarchiveutil, andxcodes install --pathtakes either an.aeaor a.xip. - xcodeinstall
1.2.0, November 19, 2026: its release notes say it handles
.aealike.xip, and stops if the file’s signing chain doesn’t lead back to Apple’s root certificate.
Is it actually encrypted?
No. An Apple Encrypted Archive can be encrypted, signed, or both, depending
on its profile (Encrypt covers making each
kind). The aea command on macOS lists six. Profile 0 is
hkdf_sha256_hmac__none__ecdsa_p256: “none” is the encryption, and
ecdsa_p256 is a signature.
That’s the profile of the Xcode 27.3 beta 2 download. Apple’s aea id
reports it, and the only extra data in the file’s header is a certificate
chain. Two open-source projects that read these files,
xaea and
xcinfo, describe them the same
way: signed by Apple, not encrypted. So there’s no password or key to find.
The signature shows the file came from Apple and wasn’t changed on the way,
the job the .xip signature did before.
I also made a profile 0 file with a key of my own to see how Apple’s tools
treat one. The aea command won’t open it without the signer’s public key,
and archiveutil refused it outright, which fits it checking for Apple’s
signing chain, though Apple doesn’t document that.
Where Purrchiver fits
Purrchiver doesn’t open Xcode’s .aea downloads yet. It opens and creates
password-protected .aea files, and today it treats the Xcode download as
one of those: it asks for a password the file doesn’t have. Cancel, and use
archiveutil or Archive Utility for Xcode.
Related
- Xcode is moving from .xip to .aea: the blog post on what changed and why.
- What is an .aea file?:
password-protected
.aeafiles, and the.dmg.aeafiles inside Apple’s firmware. - When Purrchiver can’t help:
Xcode
.xipfiles and other things to open with Apple’s own tools. - “Unable to expand” errors explained
- Why won’t my archive open?