Superwall-iOS icon indicating copy to clipboard operation
Superwall-iOS copied to clipboard

[BUG] Superscript-ios fails to compile for mac app - package declares macOS 10.12, but uses features that need macOS 10.15

Open tkafka opened this issue 6 months ago • 3 comments
trafficstars

New issue checklist

  • [x] I have reviewed the README and documentation
  • [x] I have searched existing issues and this is not a duplicate
  • [ ] I have attempted to reproduce the issue and include an example project.

General information

  • Superwall version: 4.3.0
  • iOS version(s): macOS 15.4.1 (24E263)
  • CocoaPods/Carthage version (if applicable):
  • Xcode version: Version 16.3 (16E140)
  • Devices/Simulators affected:
  • Reproducible in the demo project? (Yes/No): I guess so
  • Related issues:

Describe the bug

Adding a macOS target that also uses Superwall causes build errors. Note that the package declares .macOS(.v10_12) as a requirement, but uses 10.15 features heavily.

<app_folder>/SourcePackages/checkouts/Superscript-iOS/Sources/Superscript/cel.swift:698:59 'UnsafeContinuation' is only available in macOS 10.15 or newer

<app_folder>/SourcePackages/checkouts/Superscript-iOS/Sources/Superscript/cel.swift:698:59 'UnsafeContinuation' is only available in macOS 10.15 or newer

<app_folder>/SourcePackages/checkouts/Superscript-iOS/Sources/Superscript/cel.swift:717:28 'withUnsafeContinuation(isolation:_:)' is only available in macOS 10.15 or newer

<app_folder>/SourcePackages/checkouts/Superscript-iOS/Sources/Superscript/cel.swift:747:16 'init(priority:operation:)' is only available in macOS 10.15 or newer

<app_folder>/SourcePackages/checkouts/Superscript-iOS/Sources/Superscript/cel.swift:747:16 'Task' is only available in macOS 10.15 or newer

<app_folder>/SourcePackages/checkouts/Superscript-iOS/Sources/Superscript/cel.swift:764:16 'init(priority:operation:)' is only available in macOS 10.15 or newer

<app_folder>/SourcePackages/checkouts/Superscript-iOS/Sources/Superscript/cel.swift:764:16 'Task' is only available in macOS 10.15 or newer

<app_folder>/SourcePackages/checkouts/Superscript-iOS/Sources/Superscript/cel.swift:789:1 Protocol 'UniffiForeignFutureTask' requires 'cancel()' to be available in macOS 10.13 and newer

<app_folder>/SourcePackages/checkouts/Superscript-iOS/Sources/Superscript/cel.swift:789:1 Protocol 'UniffiForeignFutureTask' requires 'cancel()' to be available in macOS 10.13 and newer

<app_folder>/SourcePackages/checkouts/Superscript-iOS/Sources/Superscript/cel.swift:789:11 'Task' is only available in macOS 10.15 or newer

<app_folder>/SourcePackages/checkouts/Superscript-iOS/Sources/Superscript/cel.swift:789:11 'Task' is only available in macOS 10.15 or newer

Steps to reproduce

  1. Use Superwall
  2. Add a macOS destination

Other Information

e.g. stacktraces, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.

tkafka avatar Apr 29 '25 21:04 tkafka

Hi, yes this is a known issue. We'll give an update here when that's fixed. Thanks

yusuftor avatar May 01 '25 10:05 yusuftor

Thanks, I'd love if I'd be able to use Superwall in mac app as well.

tkafka avatar May 04 '25 08:05 tkafka

Please fix, it's keeping agents from being able to build and debug swift packages that import superwall.

yood avatar Jun 26 '25 14:06 yood