Skip to content
This repository was archived by the owner on Dec 4, 2026. It is now read-only.

xcodebuild stand-in: a package's scheme as Xcode 27.2 builds and tests it - #14

Merged
designgears merged 1 commit into
x86simfrom
t3/parity-package-scheme
Dec 2, 2026
Merged

designgears merged 1 commit into
x86simfrom
t3/parity-package-scheme

Conversation

@designgears

Copy link
Copy Markdown

Package test runs (xcodebuild test -scheme <Package>-Package in a package folder) now build and test the package the way Xcode 27.2's generated package scheme does. Found with the XCTest parity suite's corpus-snapshot scenario (swift-snapshot-testing).

  • Build request: only the package's own products, from its PIF project (package plus aggregate project), in the package's declared order. Dependencies are built only as far as needed. Before, every package's products were requested: 36 Swift modules built against Xcode's 21.
  • Checkouts: dependencies are checked out under <derived data>/SourcePackages/checkouts, where Xcode keeps them, using SwiftPM's --scratch-path. Before, they went into the package's own .build, so every build task touching them had a different path.
  • Coverage: a package's scheme now gathers code coverage by default. Xcode generates it with coverage on, and Xcode's package runs gather it without -enableCodeCoverage.
  • Scheme name: the -scheme given is passed to x86sim test (X86SIM_XCODEBUILD_SCHEME). It becomes the result bundle's scheme and the test targets' XCODE_SCHEME_NAME.

Used by x86sim's matching PR, which pins this branch.

🤖 Generated with Claude Code

…s it

- Only the package's own products in the build request (its PIF project's:
  its package and aggregate projects), in the package's declared order; its
  dependencies are built only as far as needed. Every package's products were
  requested before (swift-snapshot-testing: 36 Swift modules built, Xcode 21).
- Dependencies checked out under <derived data>/SourcePackages/checkouts, where
  Xcode keeps them (SwiftPM's --scratch-path), not the package's .build.
- A package's scheme gathers code coverage (no scheme file: Xcode generates it
  with coverage on; its package runs gather it without -enableCodeCoverage).
- The -scheme given goes to x86sim test (X86SIM_XCODEBUILD_SCHEME): the result
  bundle's scheme and the test targets' XCODE_SCHEME_NAME, "<Package>-Package".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@designgears
designgears merged commit d70df68 into x86sim Dec 2, 2026
1 check passed
@designgears
designgears deleted the t3/parity-package-scheme branch December 3, 2026 01:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant