Update build settings and comment writer for Xcode 27#51
Merged
Conversation
Detect Xcode >= 27 (objectVersion >= 90) and emit more descriptive XCConfiguration comments. Extracted logic to resolve the owner (isa and display name) of an XCConfigurationList, derive a project name from a target's product reference when necessary, and add getXCBuildConfigurationComment to produce either simple names or verbose "<name> configuration for <isa> \"<owner>\"" comments. Also update the reference cache to include XCBuildConfiguration entries. Re-enable the 011-swift-ios-27.pbxproj test fixture.
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.
Summary
Brings
@bacons/xcodeup to date with Xcode 27.src/json/types.ts— adds 22 modern/Xcode-27 settings (deployment targets, launch & library load constraints, EU alternative distribution, AI model build, compilation caching, explicit modules, Embedded Swift, sticker asset catalog options, localization, etc.), each with a@sinceannotation denoting first availability.objectVersion >= 90(Xcode 27.0), the writer now emits the descriptive comment style, e.g.Debug configuration for PBXNativeTarget "App"instead of the bareDebug. Older project versions keep the terse form.PBXProjectname resolution — the unnamed project object is now labeled from the first target's product reference basename (App.app→App), matching Xcode. This also corrects the existing build-configuration-list comment for projects where the targetnameandproductNamediverge.011-swift-ios-27.pbxprojadded to both the parse and round-trip test arrays; it round-trips byte-for-byte.Test plan
bun test— 661 pass / 0 failnpx tsc --noEmit— clean