Repository navigation
xcodeinstall 1.2.0
Apple has started shipping Xcode as an Apple Encrypted Archive (.aea) instead of a .xip. This release teaches xcodeinstall to install those files, verifies they really come from Apple, and fixes two problems that made automated runs fail unpredictably.
Install Xcode from .aea files
Xcode 27.3 beta is published as .aea, and the old .xip path simply could not open it. Now .aea works exactly like .xip:
# Interactive: downloaded .aea files show up in the list alongside .xip
xcodeinstall install
# Or by name
xcodeinstall install --name "Xcode 27.3 beta 2.aea"No extra flags, no prompts, no password. The version is read from the filename as before, and the rest of the install (move to /Applications, system packages, symlink, xcode-select) is unchanged.
Two things worth knowing:
It checks the archive is genuinely Apple's. Every .aea carries its signing certificate chain. xcodeinstall runs that chain through the macOS Security framework and requires it to end at Apple Root CA - G3, pinned by SHA-256. If the signature does not trace back to Apple, the install stops and tells you so rather than extracting anything.
It does not need 10 GB of scratch space. Verification and extraction happen in a single stream through Apple's AppleArchive framework, so there is no giant intermediate file on disk, and no dependency on the aea or aa command-line tools being present. A 2.2 GB archive verifies and extracts in about 40 seconds.
Fixes
xcodeinstall authenticate survives Apple's flaky gateway. Apple's idmsa.apple.com has been returning 502/503/504 for a large share of requests, so authentication would break at a different step each time, sometimes with a confusing JSON parse error (that was an HTML error page). Read-only lookups now retry up to five times with a short pause. Sign-in itself is never retried, so there is no risk of a double submission or of tripping Apple's rate limits.
--profile is now respected on EC2. On an EC2 Mac, the instance role used to answer first and quietly win, so -p my-profile was ignored and xcodeinstall read the wrong account's Parameter Store. Named profiles now take precedence and the instance role is the last resort. Behaviour without --profile is unchanged.
Under the hood
Built with Swift 6.4. Updated swift-crypto (v5), swift-log, swift-system, swift-subprocess, soto, and Noora.
Install or upgrade
brew tap sebsto/macos
brew install xcodeinstall
# already installed
brew update && brew upgrade xcodeinstallPre-built bottles are attached for Ventura, Sonoma, Sequoia, and Tahoe (Apple silicon and Intel).
Full changelog: v1.1.1...v1.2.0
All merged pull requests
- Update dependency tuist/Noora to from: "0.57.8" by @renovate[bot] in #163
- Update dependency soto-project/soto to from: "7.17.0" by @renovate[bot] in #166
- Update dependency swiftlang/swift-subprocess to from: "1.0.2" by @renovate[bot] in #168
- Update dependency apple/swift-system to from: "1.9.0" by @renovate[bot] in #169
- Update swift Docker tag to v6.4 by @renovate[bot] in #165
- Update dependency apple/swift-log to from: "1.17.2" by @renovate[bot] in #167
- fix: retry Apple gateway 502/503/504 during authentication by @sebsto in #170
- Update dependency apple/swift-crypto to v5 by @renovate[bot] in #164
- fix: try the named profile before the EC2 instance role by @sebsto in #175
- Install Xcode from Apple Encrypted Archive (.aea) files by @sebsto in #176
Full Changelog: v1.1.1...v1.2.0