Skip to content

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

@tkafka

Description

@tkafka

New issue checklist

  • I have reviewed the README and documentation
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions