Skip to content

Commit bd3492f

Browse files
neonichuMaxDesiatov
authored andcommitted
Fix XCTest deployment target computation in BuildPlan (#6933)
This fixes an issue introduced in #6849 and noticed in the cherry-pick to 5.9 in #6886.
1 parent 6fa715f commit bd3492f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Build/BuildPlan.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ public class BuildPlan: SPMBuildCore.BuildPlan {
570570
// Supported platforms are defined at the package level.
571571
// This will need to become a bit complicated once we have target-level or product-level platform support.
572572
let productPlatform = product.platforms.getDerived(for: .macOS, usingXCTest: product.isLinkingXCTest)
573-
let targetPlatform = target.platforms.getDerived(for: .macOS, usingXCTest: product.isLinkingXCTest)
573+
let targetPlatform = target.platforms.getDerived(for: .macOS, usingXCTest: target.type == .test)
574574

575575
// Check if the version requirement is satisfied.
576576
//

0 commit comments

Comments
 (0)