This repository was archived by the owner on Dec 4, 2026. It is now read-only.
Repository navigation
xcodebuild stand-in: a package's scheme as Xcode 27.2 builds and tests it - #14
Merged
Merged
Conversation
…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>
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Package test runs (
xcodebuild test -scheme <Package>-Packagein 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).<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.-enableCodeCoverage.-schemegiven is passed tox86sim 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