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

Commit 30e9472

Browse files
authored
Remove explicit macOS platform requirement from Package.swift (#802)
2 parents 425b473 + 4578b1a commit 30e9472

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Package.swift

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@ import PackageDescription
44

55
let package = Package(
66
name: "WordPressKit",
7-
platforms: [
8-
.iOS(.v13),
9-
// The package(s) are meant for iOS only, but the use of the SwiftLint plugin down the dependency chain requires specifying a compatible macOS version.
10-
.macOS(.v12),
11-
],
7+
platforms: [.iOS(.v13)],
128
products: [
139
.library(name: "APIInterface", targets: ["APIInterface"]),
1410
.library(name: "CoreAPI", targets: ["CoreAPI"]),
@@ -28,7 +24,12 @@ let package = Package(
2824
name: "CoreAPI",
2925
dependencies: [
3026
.target(name: "APIInterface"),
31-
.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+
),
3233
"wpxmlrpc"
3334
]
3435
),

0 commit comments

Comments
 (0)