Xcode is moving from .xip to .aea
At the bottom of Apple’s Xcode 27.3 beta 2 release
notes,
under a heading of its own, is a change that breaks any install script built
on xip. Xcode is now available as an Apple Encrypted Archive (.aea), and
for command-line installs Apple points to archiveutil extractXcodeAEA. Then
one line:
Xcode 27.3 is the final release supporting the
.xipformat.
The Xcode 27.3 beta 2 entry on Apple’s downloads page says the same and
offers both an .aea and a .xip. After 27.3, it’s .aea only. This post
covers what that file is, what breaks, and where Purrchiver, my archive app,
fits, including something Purrchiver gets wrong today.
What changed
For years Xcode has shipped as a .xip, a signed archive you double-click or
expand with xip --expand. Scripts, CI images and tools like
xcodes all grew around that.
Other tools have already moved. xcodes
2.2.0 installs
.aea through Apple’s archiveutil. xcodeinstall
1.2.0 installs it
too, and .NET for iOS and Mac made the same
change to its Xcode
provisioning, keeping .xip support alongside.
What an Xcode .aea actually is
The name is misleading: an Apple Encrypted Archive doesn’t have to be
encrypted. The format has six profiles, and macOS’s aea command lists them:
0: hkdf_sha256_hmac__none__ecdsa_p256
1: hkdf_sha256_aesctr_hmac__symmetric__none
...
5: hkdf_sha256_aesctr_hmac__scrypt__noneProfile 5 is the password kind: AES with a key derived from a password.
Profile 0 has no aesctr in it at all. It’s signed, not encrypted: the
data is checked with an HMAC and signed with ECDSA, so you can tell who made
it, but anyone can read it.
Xcode’s .aea is profile 0. I downloaded the 27.3 beta 2 .aea and asked
macOS’s aea id what it is:
profile: hkdf_sha256_hmac__none__ecdsa_p256
auth data: 3802 B
- com.apple.ias.signature.certificate-chain: 3756 BThat last line is the signing certificate chain, carried inside the file. xcodeinstall’s release notes say it checks that chain back to Apple Root CA - G3 before it extracts anything, and Tim Sutton’s xaea, an open-source reader for these files, also describes them as profile 0.
So the job hasn’t changed: Xcode still arrives as a signed container. Only the format underneath is new.
Installing from it
Apple’s command:
archiveutil extractXcodeAEA /path/to/Xcode.aeaarchiveutil is in /usr/bin on macOS 27.2.1, where I checked. Its help
calls it “A command line interface for Archive Utility”, and
extractXcodeAEA is its only subcommand. It takes one argument, the
archive’s path, and shows no option for where to extract.
The step-by-step is on Install Xcode from an .aea file.
I ran it on the 27.3 beta 2 download on a MacBook Pro with an M2 Pro. Three things stood out:
- It writes Xcode into the folder you run it from, not beside the
download. The app is named
Xcode-beta.app, as from the.xip. - It isn’t faster here. I’d seen the new format described as about 40%
faster to extract. Run twice each, in alternating order,
archiveutiltook 77 and 66 seconds andxip --expandtook 67 and 64. The.aeadownload is also slightly bigger: 2.17 GB against 2.08 GB. - The result is the same Xcode. Both gave version 27.3 (27C5035i), and
both passed
codesign --verify --deep --strictand Gatekeeper’sspctlcheck. The one from the.aeakeeps the download’s quarantine flag, andarchiveutilstamps the files with the time you extracted them, wherexipkeeps Apple’s dates.
What breaks in scripts
If you install Xcode from a script, a CI image or a provisioning tool, check these before the first release after 27.3:
xip --expand. It reads.xipfiles, and an.aeais a different format. That step becomesarchiveutil extractXcodeAEA, or a tool that calls it.- Anything that matches on
.xip. Download URLs, cache keys, globs likeXcode*.xip, cleanup steps that delete the archive afterward. - Where Xcode lands.
archiveutilwrites into the current folder, likexip, and has no option to change that. A script thatcds to the destination first keeps working. One that relies on the app ending up next to the archive won’t. - Signature checks. Whatever you used to check a
.xip’s signature won’t read an.aea. Tools that care, like xcodeinstall, now verify the.aea’s certificate chain instead. aeaisn’t a drop-in. macOS’saea decryptcan read profile 0, but not on its own. On a profile-0 file I signed with my own key, it stopped with “-sign-pub is required”: it wants the signer’s public key first. The key is in the file’s certificate chain, so it’s doable, but it isn’t a one-liner, which is presumably part of why Apple points atarchiveutil. That same test file, run througharchiveutil extractXcodeAEA, failed with “Invalid argument”. That fitsarchiveutilchecking for Apple’s signature specifically, but it’s my inference from one failure, not anything Apple documents.- Older macOS. Apple says Xcode 27.3 beta 2 requires macOS Tahoe 26.6 or
later. I’ve only confirmed
archiveutilon 27.2.1, so if your CI runs an older macOS, runwhich archiveutilbefore relying on it.
Where Purrchiver fits
Purrchiver doesn’t open Xcode’s .aea downloads today. It opens the
password kind, profile 5, and that’s a format it takes seriously.
Apple Encrypted Archive is one
of Purrchiver’s main formats, in both directions. Opening a password-protected
.aea is free, like opening any encrypted archive someone sends you. Creating
one is part of the one-time unlock: pick AAR in the Create Archive sheet, set a
password, and Purrchiver writes an .aea instead of an .aar. It doesn’t
reimplement the format; it uses Apple’s own AppleArchive framework, so an
.aea it makes opens with macOS’s aa and aea commands, and one they make
opens in Purrchiver. Passwords follow Apple’s limits: 20 to 256 ASCII characters, the same range
Apple’s own tools accept.
The explainer
has how I got that number wrong the first time.
If you’d rather stay in Terminal, the Apple Archive
guide shows how to make and open .aar and .aea
files with the tools built into macOS.
Purrchiver also opens Xcode’s .xip downloads, listing and extracting the
files inside. It doesn’t verify Apple’s signature when it does, so for
installing Xcode, use Apple’s tools.
What Purrchiver gets wrong today
Purrchiver turns away every .aea profile except the password one, and the
way it turns them away is wrong for Xcode’s files.
Purrchiver 1.1.1, the version on the App Store, doesn’t
check the profile before it asks for a password. I opened the 27.3 beta 2
.aea in it, and it asked: “Enter the password for “Xcode_27.3_beta_2.aea”
to view and extract its contents.” Nothing you type can work, because there
isn’t one. It’s a dead end that looks like your mistake.
The next update, 1.2.0, checks the profile first. It refuses with this message instead, which isn’t much better:
This Apple Encrypted Archive opens with a key, not a password, so Purrchiver can’t open it. Apple’s firmware disk images (.dmg.aea) are made this way.
That was written for the .dmg.aea files in Apple’s
firmware,
which really are encrypted with a key. For an Xcode download it’s wrong on
both counts: there’s no key and no password, because nothing is encrypted. I
wrote one message for “not the password profile” and only thought about the
files I’d seen.
Support for signed archives like Xcode’s is being worked on: opening them,
and saying plainly what they are. I’m not giving a date. Until it ships, use
archiveutil.
Now that the signature is the whole point of the file, does your Xcode install verify it, or does it leave that to whatever tool you call?