From b073240e431edc1b33c94b63fd61b674f3ea9a5c Mon Sep 17 00:00:00 2001 From: tsushanth <78000697+tsushanth@users.noreply.github.com> Date: Tue, 9 Jun 2026 12:03:33 -0700 Subject: [PATCH] fix: bump declared minimum macOS deployment target to 10.15 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Package.swift declared `.macOS(.v10_12)` but the SDK uses Combine, async/await, Task, and UnsafeContinuation throughout — all of which require macOS 10.15+. The declaration was vestigial; no real consumer could ever have built against Superwall on 10.12. Bumping the declared minimum so SwiftPM rejects the integration with a clear deployment-target diagnostic at resolve time, rather than letting it through and producing dozens of "is only available in macOS 10.15 or newer" errors deep in Superscript and SuperwallKit sources. Fixes #317 --- CHANGELOG.md | 6 ++++++ Package.swift | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 20272126c..412ca4e7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ The changelog for `SuperwallKit`. Also see the [releases](https://github.com/superwall/Superwall-iOS/releases) on GitHub. +## Unreleased + +### Fixes + +- Bumps the declared minimum macOS deployment target from 10.12 to 10.15 in `Package.swift` to match the macOS version required by the SDK's actual code (`Combine`, `async/await`, `UnsafeContinuation`). This makes integration into Mac Catalyst targets fail at resolve time with a clear deployment-target message instead of producing confusing "is only available in macOS 10.15 or newer" errors deep in the source. + ## 4.15.4 ### Enhancements diff --git a/Package.swift b/Package.swift index c1fe431dc..3898dbfba 100644 --- a/Package.swift +++ b/Package.swift @@ -8,7 +8,7 @@ let package = Package( defaultLocalization: "en", platforms: [ .iOS(.v13), - .macOS(.v10_12), + .macOS(.v10_15), .watchOS("6.2") ], products: [