From 7f0e028a52f1b32560b45b5bf4e5f6d8b3b93eee Mon Sep 17 00:00:00 2001 From: Pavel Yaskevich Date: Mon, 6 Oct 2025 15:32:18 -0700 Subject: [PATCH] [Tests] NFC: Add iOS requirement to `selectConfiguredTargets` instead of `artifacts` The test checks whether it's possible to select an appropriate target given a run destination and uses both macOS and iOS SDKs. If there is no iOS SDK installed it won't be possible to configure a test target for that platform and the test is going to fail. Resolves: rdar://162067445 --- Tests/SwiftBuildTests/InspectBuildDescriptionTests.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/SwiftBuildTests/InspectBuildDescriptionTests.swift b/Tests/SwiftBuildTests/InspectBuildDescriptionTests.swift index 2c656b38..342431f0 100644 --- a/Tests/SwiftBuildTests/InspectBuildDescriptionTests.swift +++ b/Tests/SwiftBuildTests/InspectBuildDescriptionTests.swift @@ -74,7 +74,7 @@ fileprivate struct InspectBuildDescriptionTests { } } - @Test(.requireSDKs(.macOS, .iOS)) + @Test(.requireSDKs(.macOS)) func artifacts() async throws { try await withTemporaryDirectory { (temporaryDirectory: NamedTemporaryDirectory) in try await withAsyncDeferrable { deferrable in @@ -307,7 +307,7 @@ fileprivate struct InspectBuildDescriptionTests { } } - @Test(.requireSDKs(.macOS)) + @Test(.requireSDKs(.macOS, .iOS)) func selectConfiguredTargets() async throws { try await withTemporaryDirectory { (temporaryDirectory: NamedTemporaryDirectory) in try await withAsyncDeferrable { deferrable in