Skip to content

Commit 7f435ed

Browse files
committed
Add macOS 14 as a platform for Modules to avoid swift build error
By default, Package Manager sets 10.13 as the default macOS platform, but that's not compatible with the requirements of some of the dependencies. Example: ``` error: the library 'WordPressCore' requires macos 10.13, but depends on the product 'WordPressAPI' which requires macos 12.0; consider changing the library 'WordPressCore' to require macos 12.0 or later, or the product 'WordPressAPI' to require macos 10.13 or earlier. ``` Set 14 because that's what GutenberKit requires: ``` error: the library 'XcodeTarget_App' requires macos 10.13, but depends on the product 'GutenbergKit' which requires macos 14.0; consider changing the library 'XcodeTarget_App' to require macos 14.0 or later, or the product 'GutenbergKit' to require macos 10.13 or earlier. ```
1 parent 65e15d3 commit 7f435ed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Modules/Package.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ let package = Package(
66
name: "Modules",
77
platforms: [
88
.iOS(.v16),
9+
.macOS(.v14), // Here just to avoid errors when building directly with `swift build`
910
],
1011
products: XcodeSupport.products + [
1112
.library(name: "AsyncImageKit", targets: ["AsyncImageKit"]),

0 commit comments

Comments
 (0)