Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit 4578b1a

Browse files
committed
Constrain WordPressShared dependency to iOS platform only
This prevents builds failing with: > error: the library 'CoreAPI' requires macos 10.13, but depends on the > product 'WordPressShared' which requires macos 12.0; consider changing > the library 'CoreAPI' to require macos 12.0 or later, or the product > 'WordPressShared' to require macos 10.13 or earlier. WordPressShared internally depends on the SwiftLint plugin, which explicitly declares a macOS version.
1 parent e93f937 commit 4578b1a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Package.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ let package = Package(
2424
name: "CoreAPI",
2525
dependencies: [
2626
.target(name: "APIInterface"),
27-
.product(name: "WordPressShared", package: "WordPress-iOS-Shared"),
27+
.product(
28+
name: "WordPressShared",
29+
package: "WordPress-iOS-Shared",
30+
// Constrain to iOS only to avoid having to explicitly set a macOS version because of this library's requirements.
31+
condition: .when(platforms: [.iOS])
32+
),
2833
"wpxmlrpc"
2934
]
3035
),

0 commit comments

Comments
 (0)