We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
BuildPlan
1 parent 6fa715f commit bd3492fCopy full SHA for bd3492f
Sources/Build/BuildPlan.swift
@@ -570,7 +570,7 @@ public class BuildPlan: SPMBuildCore.BuildPlan {
570
// Supported platforms are defined at the package level.
571
// This will need to become a bit complicated once we have target-level or product-level platform support.
572
let productPlatform = product.platforms.getDerived(for: .macOS, usingXCTest: product.isLinkingXCTest)
573
- let targetPlatform = target.platforms.getDerived(for: .macOS, usingXCTest: product.isLinkingXCTest)
+ let targetPlatform = target.platforms.getDerived(for: .macOS, usingXCTest: target.type == .test)
574
575
// Check if the version requirement is satisfied.
576
//
0 commit comments