From 6e027b53ef72c4a20144d7927a4aaf2e71249f99 Mon Sep 17 00:00:00 2001 From: James Smith Date: Mon, 11 Nov 2024 14:19:41 -0800 Subject: [PATCH] Add a minimum macOS version that matches the SnapshotTesting dependency The SnapshotTesting dependency specifies 10.15 as the minimum version. Even though this library doesn't support macOS, it's helpful to specify one so it can be consumed in mixed-platform packages. Today, if a mixed iOS/macOS package depends on AccessibilitySnapshot, SPM emits an error: "error: the library 'AccessibilitySnapshot' requires macos 10.13, but depends on the product 'SnapshotTesting' which requires macos 10.15; consider changing the library 'AccessibilitySnapshot' to require macos 10.15 or later, or the product 'SnapshotTesting' to require macos 10.13 or earlier." --- Package.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Package.swift b/Package.swift index 8a104e8a..17573b3c 100644 --- a/Package.swift +++ b/Package.swift @@ -8,6 +8,7 @@ let package = Package( defaultLocalization: "en", platforms: [ .iOS(.v13), + .macOS(.v10_15), ], products: [ // Core + SnapshotTesting for image comparison