Repository navigation
Install Xcode from Apple Encrypted Archive (.aea) files - #176
Merged
Merged
Conversation
Xcode 27.3 is also published as an .aea file. It is signed, not encrypted. xcodeinstall now reads the certificate chain stored in the archive, checks it ends at Apple Root CA - G3, and uses the leaf key to verify and extract the archive with Apple's AppleArchive framework. Installing an .aea works like a .xip, with no extra prompt. Closes #174
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #174
Xcode 27.3 is also published as an
.aeafile. It uses the signature-only profile (hkdf_sha256_hmac__none__ecdsa_p256), so no key or password is needed. Inside is an LZMA Apple Archive holdingXcode-beta.app.What changes
installacceptsXcode*.aealikeXcode*.xip: same steps, no extra prompt. The file picker lists.aeafiles and the version comes from the file name.AppleArchiveframework, so there is no 10 GB temp file and no call toaeaoraa. Extraction runs as a@concurrentfunction.aa extract, extraction skips attributes only root may set (ignoreOperationNotPermitted). Without that, closing the stream fails withioError.Tested
swift test: 224 tests pass. The new suite covers auth data parsing, the recorded Apple chain (date pinned, because the leaf expires 2027-11-03), a self-signed fake "Apple Root CA - G3", an expired date, and a test-built signed archive with the right and the wrong key.Xcode 27.3 beta 2.aea(2,174,613,438 bytes), using the opt-in test (XCODEINSTALL_AEA_FILE+XCODEINSTALL_AEA_OUTPUT): verified and extracted in about 41 s, 167,541 entries, the same asaa list.xcodebuild -versionreports Xcode 27.3 (27C5035i).codesign --verify --deep --strictpasses, andspctlreports Apple System.xcodeinstall installon this file (moving it to/Applicationsand runningsudo installer). That part is shared with the.xippath.