Skip to content

Commit

Permalink
Add a minimum macOS version that matches the SnapshotTesting dependency
Browse files Browse the repository at this point in the history
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."
  • Loading branch information
jmesmith committed Nov 11, 2024
1 parent 4ea8cbf commit 6e027b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ let package = Package(
defaultLocalization: "en",
platforms: [
.iOS(.v13),
.macOS(.v10_15),
],
products: [
// Core + SnapshotTesting for image comparison
Expand Down

0 comments on commit 6e027b5

Please sign in to comment.