The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Airship, reference main (bfd4ce), with Swift 6.2 for macOS (SPM) on 1 May 2026 07:07:39 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/urbanairship/ios-library.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/urbanairship/ios-library
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at bfd4ce0 Release 20.7.0 (#3777)
Cloned https://github.com/urbanairship/ios-library.git
Revision (git rev-parse @):
bfd4ce0474bb5ea3e038c270fe35e899482f72bd
SUCCESS checkout https://github.com/urbanairship/ios-library.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/urbanairship/ios-library.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64
Building for debugging...
[0/82] Write sources
[0/82] Copying UrbanAirship.strings
[0/82] Copying UANativeBridge
[0/82] Copying UrbanAirship.strings
[0/82] Copying Info.plist
[0/82] Copying UrbanAirship.strings
[0/82] Copying Info.plist
[0/82] Copying UrbanAirship.strings
[19/82] Write sources
[19/82] Copying UrbanAirship.strings
[19/82] Copying PrivacyInfo.xcprivacy
[19/82] Copying UrbanAirship.strings
[19/82] Write sources
[19/82] Copying UANotificationCategories.plist
[19/82] Write sources
[19/82] Copying Info.plist
[64/82] Copying UAInboxDataMappingV1toV4.xcmappingmodel
[65/82] Copying UAInboxDataMappingV2toV4.xcmappingmodel
[65/82] Copying UARemoteDataMappingV3toV4.xcmappingmodel
[67/82] Copying UAInboxDataMappingV3toV4.xcmappingmodel
[68/82] Copying UARemoteDataMappingV1toV4.xcmappingmodel
[68/82] Copying UARemoteDataMappingV2toV4.xcmappingmodel
[70/82] Copying AirshipDebugPushData.xcdatamodeld
[71/82] Copying TestAssets.xcassets
[72/82] Copying UAirshipCache.xcdatamodeld
[73/82] Copying UAEvents.xcdatamodeld
[74/82] Copying AirshipDebugEventData.xcdatamodeld
[75/82] Copying UAFrequencyLimits.xcdatamodeld
[76/82] Copying UAMeteredUsage.xcdatamodeld
[77/82] Copying UAInbox.xcdatamodeld
[78/82] Copying UARemoteData.xcdatamodeld
[79/82] Copying AirshipAutomation.xcdatamodeld
[80/82] Copying UAAutomation.xcdatamodeld
[81/82] Write swift-version--3CB7CFEC50E0D141.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[83/96] Emitting module AirshipNotificationServiceExtension
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipExtensionLogger.swift:200:32: error: 'Logger' is only available in macOS 11.0 or newer
190 |
191 |
192 | public final class DefaultAirshipExtensionLogHandler: AirshipExtensionLogHandler {
    |                    `- note: add '@available' attribute to enclosing class
193 |
194 |     private let logPublic: Bool
    :
198 |     }
199 |
200 |     private static let logger: Logger = Logger(
    |                        |       `- error: 'Logger' is only available in macOS 11.0 or newer
    |                        `- note: add '@available' attribute to enclosing static property
201 |         subsystem: Bundle.main.bundleIdentifier ?? "",
202 |         category: "AirshipNotificationExtension"
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipExtensionLogger.swift:200:41: error: 'Logger' is only available in macOS 11.0 or newer
190 |
191 |
192 | public final class DefaultAirshipExtensionLogHandler: AirshipExtensionLogHandler {
    |                    `- note: add '@available' attribute to enclosing class
193 |
194 |     private let logPublic: Bool
    :
198 |     }
199 |
200 |     private static let logger: Logger = Logger(
    |                        |                `- error: 'Logger' is only available in macOS 11.0 or newer
    |                        `- note: add '@available' attribute to enclosing static property
201 |         subsystem: Bundle.main.bundleIdentifier ?? "",
202 |         category: "AirshipNotificationExtension"
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:198:40: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
190 | }
191 |
192 | struct AirshipNotificationMutations: Sendable {
    |        `- note: add '@available' attribute to enclosing struct
193 |     var title: String?
194 |     var subtitle: String?
    :
196 |     var attachments: [AirshipAttachment]
197 |
198 |     func apply(to notificationContent: UNMutableNotificationContent) throws {
    |          |                             `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
    |          `- note: add '@available' attribute to enclosing instance method
199 |         try attachments
200 |             .map { try $0.notificationAttachment }
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:225:33: error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
218 |
219 |
220 | struct AirshipAttachment: Sendable {
    |        `- note: add '@available' attribute to enclosing struct
221 |     var identifier: String
222 |     var url: URL
223 |     var options: [String : any Sendable]
224 |
225 |     var notificationAttachment: UNNotificationAttachment {
    |         |                       `- error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
    |         `- note: add '@available' attribute to enclosing property
226 |         get throws {
227 |             try UNNotificationAttachment(
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:15:20: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
  8 | #if !os(tvOS)
  9 | @objc
 10 | open class UANotificationServiceExtension: UNNotificationServiceExtension {
    |            `- note: add '@available' attribute to enclosing class
 11 |     open var airshipConfig: AirshipExtensionConfig { .init() }
 12 |     private var onExpire: (@Sendable () -> Void)?
 13 |
 14 |     open override func didReceive(
    |                        `- note: add '@available' attribute to enclosing instance method
 15 |         _ request: UNNotificationRequest,
    |                    `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
 16 |         withContentHandler contentHandler: @Sendable @escaping (UNNotificationContent) -> Void
 17 |     ) {
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:16:65: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
  8 | #if !os(tvOS)
  9 | @objc
 10 | open class UANotificationServiceExtension: UNNotificationServiceExtension {
    |            `- note: add '@available' attribute to enclosing class
 11 |     open var airshipConfig: AirshipExtensionConfig { .init() }
 12 |     private var onExpire: (@Sendable () -> Void)?
 13 |
 14 |     open override func didReceive(
    |                        `- note: add '@available' attribute to enclosing instance method
 15 |         _ request: UNNotificationRequest,
 16 |         withContentHandler contentHandler: @Sendable @escaping (UNNotificationContent) -> Void
    |                                                                 `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
 17 |     ) {
 18 |
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:10:44: error: 'UNNotificationServiceExtension' is only available in macOS 10.14 or newer
  8 | #if !os(tvOS)
  9 | @objc
 10 | open class UANotificationServiceExtension: UNNotificationServiceExtension {
    |            |                               `- error: 'UNNotificationServiceExtension' is only available in macOS 10.14 or newer
    |            `- note: add '@available' attribute to enclosing class
 11 |     open var airshipConfig: AirshipExtensionConfig { .init() }
 12 |     private var onExpire: (@Sendable () -> Void)?
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:85:11: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
 83 | }
 84 |
 85 | extension UNNotificationRequest {
    | |         `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
    | `- note: add '@available' attribute to enclosing extension
 86 |     fileprivate static let airshipMediaAttachment = "com.urbanairship.media_attachment"
 87 |
[84/96] Compiling AirshipNotificationServiceExtension AirshipExtensionConfig.swift
[85/96] Compiling AirshipNotificationServiceExtension ChallengeResolver.swift
[86/96] Compiling AirshipNotificationServiceExtension UANotificationServiceExtension.swift
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:15:20: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
  8 | #if !os(tvOS)
  9 | @objc
 10 | open class UANotificationServiceExtension: UNNotificationServiceExtension {
    |            `- note: add '@available' attribute to enclosing class
 11 |     open var airshipConfig: AirshipExtensionConfig { .init() }
 12 |     private var onExpire: (@Sendable () -> Void)?
 13 |
 14 |     open override func didReceive(
    |                        `- note: add '@available' attribute to enclosing instance method
 15 |         _ request: UNNotificationRequest,
    |                    `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
 16 |         withContentHandler contentHandler: @Sendable @escaping (UNNotificationContent) -> Void
 17 |     ) {
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:16:65: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
  8 | #if !os(tvOS)
  9 | @objc
 10 | open class UANotificationServiceExtension: UNNotificationServiceExtension {
    |            `- note: add '@available' attribute to enclosing class
 11 |     open var airshipConfig: AirshipExtensionConfig { .init() }
 12 |     private var onExpire: (@Sendable () -> Void)?
 13 |
 14 |     open override func didReceive(
    |                        `- note: add '@available' attribute to enclosing instance method
 15 |         _ request: UNNotificationRequest,
 16 |         withContentHandler contentHandler: @Sendable @escaping (UNNotificationContent) -> Void
    |                                                                 `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
 17 |     ) {
 18 |
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:10:44: error: 'UNNotificationServiceExtension' is only available in macOS 10.14 or newer
  8 | #if !os(tvOS)
  9 | @objc
 10 | open class UANotificationServiceExtension: UNNotificationServiceExtension {
    |            |                               `- error: 'UNNotificationServiceExtension' is only available in macOS 10.14 or newer
    |            `- note: add '@available' attribute to enclosing class
 11 |     open var airshipConfig: AirshipExtensionConfig { .init() }
 12 |     private var onExpire: (@Sendable () -> Void)?
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:85:11: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
 83 | }
 84 |
 85 | extension UNNotificationRequest {
    | |         `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
    | `- note: add '@available' attribute to enclosing extension
 86 |     fileprivate static let airshipMediaAttachment = "com.urbanairship.media_attachment"
 87 |
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:25:28: error: 'Task' is only available in macOS 10.15 or newer
  8 | #if !os(tvOS)
  9 | @objc
 10 | open class UANotificationServiceExtension: UNNotificationServiceExtension {
    |            `- note: add '@available' attribute to enclosing class
 11 |     open var airshipConfig: AirshipExtensionConfig { .init() }
 12 |     private var onExpire: (@Sendable () -> Void)?
 13 |
 14 |     open override func didReceive(
    |                        `- note: add '@available' attribute to enclosing instance method
 15 |         _ request: UNNotificationRequest,
 16 |         withContentHandler contentHandler: @Sendable @escaping (UNNotificationContent) -> Void
    :
 23 |         )
 24 |
 25 |         let downloadTask = Task { @MainActor in
    |                            |- error: 'Task' is only available in macOS 10.15 or newer
    |                            `- note: add 'if #available' version check
 26 |             logger.debug(
 27 |                 "New request received: \(request)"
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:25:28: error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
  8 | #if !os(tvOS)
  9 | @objc
 10 | open class UANotificationServiceExtension: UNNotificationServiceExtension {
    |            `- note: add '@available' attribute to enclosing class
 11 |     open var airshipConfig: AirshipExtensionConfig { .init() }
 12 |     private var onExpire: (@Sendable () -> Void)?
 13 |
 14 |     open override func didReceive(
    |                        `- note: add '@available' attribute to enclosing instance method
 15 |         _ request: UNNotificationRequest,
 16 |         withContentHandler contentHandler: @Sendable @escaping (UNNotificationContent) -> Void
    :
 23 |         )
 24 |
 25 |         let downloadTask = Task { @MainActor in
    |                            |- error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
    |                            `- note: add 'if #available' version check
 26 |             logger.debug(
 27 |                 "New request received: \(request)"
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:30:74: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
  8 | #if !os(tvOS)
  9 | @objc
 10 | open class UANotificationServiceExtension: UNNotificationServiceExtension {
    |            `- note: add '@available' attribute to enclosing class
 11 |     open var airshipConfig: AirshipExtensionConfig { .init() }
 12 |     private var onExpire: (@Sendable () -> Void)?
 13 |
 14 |     open override func didReceive(
    |                        `- note: add '@available' attribute to enclosing instance method
 15 |         _ request: UNNotificationRequest,
 16 |         withContentHandler contentHandler: @Sendable @escaping (UNNotificationContent) -> Void
    :
 28 |             )
 29 |
 30 |             guard let mutableContent = request.content.mutableCopy() as? UNMutableNotificationContent else {
    |                                                                          |- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
    |                                                                          `- note: add 'if #available' version check
 31 |                 logger.error(
 32 |                     "Unable to make mutable copy of request"
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:34:21: error: 'Task' is only available in macOS 10.15 or newer
  8 | #if !os(tvOS)
  9 | @objc
 10 | open class UANotificationServiceExtension: UNNotificationServiceExtension {
    |            `- note: add '@available' attribute to enclosing class
 11 |     open var airshipConfig: AirshipExtensionConfig { .init() }
 12 |     private var onExpire: (@Sendable () -> Void)?
 13 |
 14 |     open override func didReceive(
    |                        `- note: add '@available' attribute to enclosing instance method
 15 |         _ request: UNNotificationRequest,
 16 |         withContentHandler contentHandler: @Sendable @escaping (UNNotificationContent) -> Void
    :
 32 |                     "Unable to make mutable copy of request"
 33 |                 )
 34 |                 try Task.checkCancellation()
    |                     |- error: 'Task' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
 35 |                 contentHandler(request.content)
 36 |                 return
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:34:26: error: 'checkCancellation()' is only available in macOS 10.15 or newer
  8 | #if !os(tvOS)
  9 | @objc
 10 | open class UANotificationServiceExtension: UNNotificationServiceExtension {
    |            `- note: add '@available' attribute to enclosing class
 11 |     open var airshipConfig: AirshipExtensionConfig { .init() }
 12 |     private var onExpire: (@Sendable () -> Void)?
 13 |
 14 |     open override func didReceive(
    |                        `- note: add '@available' attribute to enclosing instance method
 15 |         _ request: UNNotificationRequest,
 16 |         withContentHandler contentHandler: @Sendable @escaping (UNNotificationContent) -> Void
    :
 32 |                     "Unable to make mutable copy of request"
 33 |                 )
 34 |                 try Task.checkCancellation()
    |                          |- error: 'checkCancellation()' is only available in macOS 10.15 or newer
    |                          `- note: add 'if #available' version check
 35 |                 contentHandler(request.content)
 36 |                 return
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:45:25: error: 'Task' is only available in macOS 10.15 or newer
  8 | #if !os(tvOS)
  9 | @objc
 10 | open class UANotificationServiceExtension: UNNotificationServiceExtension {
    |            `- note: add '@available' attribute to enclosing class
 11 |     open var airshipConfig: AirshipExtensionConfig { .init() }
 12 |     private var onExpire: (@Sendable () -> Void)?
 13 |
 14 |     open override func didReceive(
    |                        `- note: add '@available' attribute to enclosing instance method
 15 |         _ request: UNNotificationRequest,
 16 |         withContentHandler contentHandler: @Sendable @escaping (UNNotificationContent) -> Void
    :
 43 |                         "Finishing request, no Airship args: \(request.identifier)"
 44 |                     )
 45 |                     try Task.checkCancellation()
    |                         |- error: 'Task' is only available in macOS 10.15 or newer
    |                         `- note: add 'if #available' version check
 46 |                     contentHandler(request.content)
 47 |                     return
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:45:30: error: 'checkCancellation()' is only available in macOS 10.15 or newer
  8 | #if !os(tvOS)
  9 | @objc
 10 | open class UANotificationServiceExtension: UNNotificationServiceExtension {
    |            `- note: add '@available' attribute to enclosing class
 11 |     open var airshipConfig: AirshipExtensionConfig { .init() }
 12 |     private var onExpire: (@Sendable () -> Void)?
 13 |
 14 |     open override func didReceive(
    |                        `- note: add '@available' attribute to enclosing instance method
 15 |         _ request: UNNotificationRequest,
 16 |         withContentHandler contentHandler: @Sendable @escaping (UNNotificationContent) -> Void
    :
 43 |                         "Finishing request, no Airship args: \(request.identifier)"
 44 |                     )
 45 |                     try Task.checkCancellation()
    |                              |- error: 'checkCancellation()' is only available in macOS 10.15 or newer
    |                              `- note: add 'if #available' version check
 46 |                     contentHandler(request.content)
 47 |                     return
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:63:17: error: 'Task' is only available in macOS 10.15 or newer
  8 | #if !os(tvOS)
  9 | @objc
 10 | open class UANotificationServiceExtension: UNNotificationServiceExtension {
    |            `- note: add '@available' attribute to enclosing class
 11 |     open var airshipConfig: AirshipExtensionConfig { .init() }
 12 |     private var onExpire: (@Sendable () -> Void)?
 13 |
 14 |     open override func didReceive(
    |                        `- note: add '@available' attribute to enclosing instance method
 15 |         _ request: UNNotificationRequest,
 16 |         withContentHandler contentHandler: @Sendable @escaping (UNNotificationContent) -> Void
    :
 61 |             }
 62 |
 63 |             try Task.checkCancellation()
    |                 |- error: 'Task' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
 64 |
 65 |             logger.info(
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:63:22: error: 'checkCancellation()' is only available in macOS 10.15 or newer
  8 | #if !os(tvOS)
  9 | @objc
 10 | open class UANotificationServiceExtension: UNNotificationServiceExtension {
    |            `- note: add '@available' attribute to enclosing class
 11 |     open var airshipConfig: AirshipExtensionConfig { .init() }
 12 |     private var onExpire: (@Sendable () -> Void)?
 13 |
 14 |     open override func didReceive(
    |                        `- note: add '@available' attribute to enclosing instance method
 15 |         _ request: UNNotificationRequest,
 16 |         withContentHandler contentHandler: @Sendable @escaping (UNNotificationContent) -> Void
    :
 61 |             }
 62 |
 63 |             try Task.checkCancellation()
    |                      |- error: 'checkCancellation()' is only available in macOS 10.15 or newer
    |                      `- note: add 'if #available' version check
 64 |
 65 |             logger.info(
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:75:26: error: 'cancel()' is only available in macOS 10.15 or newer
  8 | #if !os(tvOS)
  9 | @objc
 10 | open class UANotificationServiceExtension: UNNotificationServiceExtension {
    |            `- note: add '@available' attribute to enclosing class
 11 |     open var airshipConfig: AirshipExtensionConfig { .init() }
 12 |     private var onExpire: (@Sendable () -> Void)?
 13 |
 14 |     open override func didReceive(
    |                        `- note: add '@available' attribute to enclosing instance method
 15 |         _ request: UNNotificationRequest,
 16 |         withContentHandler contentHandler: @Sendable @escaping (UNNotificationContent) -> Void
    :
 73 |                 "serviceExtensionTimeWillExpire expiring, canceling airshipTask"
 74 |             )
 75 |             downloadTask.cancel()
    |                          |- error: 'cancel()' is only available in macOS 10.15 or newer
    |                          `- note: add 'if #available' version check
 76 |             contentHandler(request.content)
 77 |         }
[87/96] Compiling AirshipNotificationServiceExtension AirshipNotificationMutationProvider.swift
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:198:40: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
190 | }
191 |
192 | struct AirshipNotificationMutations: Sendable {
    |        `- note: add '@available' attribute to enclosing struct
193 |     var title: String?
194 |     var subtitle: String?
    :
196 |     var attachments: [AirshipAttachment]
197 |
198 |     func apply(to notificationContent: UNMutableNotificationContent) throws {
    |          |                             `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
    |          `- note: add '@available' attribute to enclosing instance method
199 |         try attachments
200 |             .map { try $0.notificationAttachment }
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:225:33: error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
218 |
219 |
220 | struct AirshipAttachment: Sendable {
    |        `- note: add '@available' attribute to enclosing struct
221 |     var identifier: String
222 |     var url: URL
223 |     var options: [String : any Sendable]
224 |
225 |     var notificationAttachment: UNNotificationAttachment {
    |         |                       `- error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
    |         `- note: add '@available' attribute to enclosing property
226 |         get throws {
227 |             try UNNotificationAttachment(
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:16:37: error: 'withThrowingTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
  4 | import UserNotifications
  5 |
  6 | final class AirshipNotificationMutationProvider: Sendable {
    |             `- note: add '@available' attribute to enclosing class
  7 |
  8 |     static let supportedExtensions = ["jpg", "jpeg", "png", "gif", "aif", "aiff", "mp3", "mpg", "mpeg", "mp4", "m4a", "wav", "avi"]
    :
 13 |     }
 14 |
 15 |     func mutations(for args: MediaAttachmentPayload) async throws -> AirshipNotificationMutations? {
    |          `- note: add '@available' attribute to enclosing instance method
 16 |         let attachments = try await withThrowingTaskGroup(of: AirshipAttachment?.self) { [weak self, args] group in
    |                                     |- error: 'withThrowingTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
    |                                     `- note: add 'if #available' version check
 17 |             try Task.checkCancellation()
 18 |
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:17:17: error: 'Task' is only available in macOS 10.15 or newer
  4 | import UserNotifications
  5 |
  6 | final class AirshipNotificationMutationProvider: Sendable {
    |             `- note: add '@available' attribute to enclosing class
  7 |
  8 |     static let supportedExtensions = ["jpg", "jpeg", "png", "gif", "aif", "aiff", "mp3", "mpg", "mpeg", "mp4", "m4a", "wav", "avi"]
    :
 13 |     }
 14 |
 15 |     func mutations(for args: MediaAttachmentPayload) async throws -> AirshipNotificationMutations? {
    |          `- note: add '@available' attribute to enclosing instance method
 16 |         let attachments = try await withThrowingTaskGroup(of: AirshipAttachment?.self) { [weak self, args] group in
 17 |             try Task.checkCancellation()
    |                 |- error: 'Task' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
 18 |
 19 |             var attachments: [AirshipAttachment] = []
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:17:22: error: 'checkCancellation()' is only available in macOS 10.15 or newer
  4 | import UserNotifications
  5 |
  6 | final class AirshipNotificationMutationProvider: Sendable {
    |             `- note: add '@available' attribute to enclosing class
  7 |
  8 |     static let supportedExtensions = ["jpg", "jpeg", "png", "gif", "aif", "aiff", "mp3", "mpg", "mpeg", "mp4", "m4a", "wav", "avi"]
    :
 13 |     }
 14 |
 15 |     func mutations(for args: MediaAttachmentPayload) async throws -> AirshipNotificationMutations? {
    |          `- note: add '@available' attribute to enclosing instance method
 16 |         let attachments = try await withThrowingTaskGroup(of: AirshipAttachment?.self) { [weak self, args] group in
 17 |             try Task.checkCancellation()
    |                      |- error: 'checkCancellation()' is only available in macOS 10.15 or newer
    |                      `- note: add 'if #available' version check
 18 |
 19 |             var attachments: [AirshipAttachment] = []
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:22:23: error: 'addTask(priority:operation:)' is only available in macOS 10.15 or newer
  4 | import UserNotifications
  5 |
  6 | final class AirshipNotificationMutationProvider: Sendable {
    |             `- note: add '@available' attribute to enclosing class
  7 |
  8 |     static let supportedExtensions = ["jpg", "jpeg", "png", "gif", "aif", "aiff", "mp3", "mpg", "mpeg", "mp4", "m4a", "wav", "avi"]
    :
 13 |     }
 14 |
 15 |     func mutations(for args: MediaAttachmentPayload) async throws -> AirshipNotificationMutations? {
    |          `- note: add '@available' attribute to enclosing instance method
 16 |         let attachments = try await withThrowingTaskGroup(of: AirshipAttachment?.self) { [weak self, args] group in
 17 |             try Task.checkCancellation()
    :
 20 |
 21 |             args.media.forEach { media in
 22 |                 group.addTask { [weak self] in
    |                       |- error: 'addTask(priority:operation:)' is only available in macOS 10.15 or newer
    |                       `- note: add 'if #available' version check
 23 |                     try Task.checkCancellation()
 24 |                     return try await self?.load(
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:23:25: error: 'Task' is only available in macOS 10.15 or newer
  4 | import UserNotifications
  5 |
  6 | final class AirshipNotificationMutationProvider: Sendable {
    |             `- note: add '@available' attribute to enclosing class
  7 |
  8 |     static let supportedExtensions = ["jpg", "jpeg", "png", "gif", "aif", "aiff", "mp3", "mpg", "mpeg", "mp4", "m4a", "wav", "avi"]
    :
 13 |     }
 14 |
 15 |     func mutations(for args: MediaAttachmentPayload) async throws -> AirshipNotificationMutations? {
    |          `- note: add '@available' attribute to enclosing instance method
 16 |         let attachments = try await withThrowingTaskGroup(of: AirshipAttachment?.self) { [weak self, args] group in
 17 |             try Task.checkCancellation()
    :
 21 |             args.media.forEach { media in
 22 |                 group.addTask { [weak self] in
 23 |                     try Task.checkCancellation()
    |                         |- error: 'Task' is only available in macOS 10.15 or newer
    |                         `- note: add 'if #available' version check
 24 |                     return try await self?.load(
 25 |                         attachment: media,
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:23:30: error: 'checkCancellation()' is only available in macOS 10.15 or newer
  4 | import UserNotifications
  5 |
  6 | final class AirshipNotificationMutationProvider: Sendable {
    |             `- note: add '@available' attribute to enclosing class
  7 |
  8 |     static let supportedExtensions = ["jpg", "jpeg", "png", "gif", "aif", "aiff", "mp3", "mpg", "mpeg", "mp4", "m4a", "wav", "avi"]
    :
 13 |     }
 14 |
 15 |     func mutations(for args: MediaAttachmentPayload) async throws -> AirshipNotificationMutations? {
    |          `- note: add '@available' attribute to enclosing instance method
 16 |         let attachments = try await withThrowingTaskGroup(of: AirshipAttachment?.self) { [weak self, args] group in
 17 |             try Task.checkCancellation()
    :
 21 |             args.media.forEach { media in
 22 |                 group.addTask { [weak self] in
 23 |                     try Task.checkCancellation()
    |                              |- error: 'checkCancellation()' is only available in macOS 10.15 or newer
    |                              `- note: add 'if #available' version check
 24 |                     return try await self?.load(
 25 |                         attachment: media,
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:32:13: error: 'makeAsyncIterator()' is only available in macOS 10.15 or newer
  4 | import UserNotifications
  5 |
  6 | final class AirshipNotificationMutationProvider: Sendable {
    |             `- note: add '@available' attribute to enclosing class
  7 |
  8 |     static let supportedExtensions = ["jpg", "jpeg", "png", "gif", "aif", "aiff", "mp3", "mpg", "mpeg", "mp4", "m4a", "wav", "avi"]
    :
 13 |     }
 14 |
 15 |     func mutations(for args: MediaAttachmentPayload) async throws -> AirshipNotificationMutations? {
    |          `- note: add '@available' attribute to enclosing instance method
 16 |         let attachments = try await withThrowingTaskGroup(of: AirshipAttachment?.self) { [weak self, args] group in
 17 |             try Task.checkCancellation()
    :
 30 |             }
 31 |
 32 |             for try await result in group {
    |             |- error: 'makeAsyncIterator()' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 33 |                 try Task.checkCancellation()
 34 |
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:33:21: error: 'Task' is only available in macOS 10.15 or newer
  4 | import UserNotifications
  5 |
  6 | final class AirshipNotificationMutationProvider: Sendable {
    |             `- note: add '@available' attribute to enclosing class
  7 |
  8 |     static let supportedExtensions = ["jpg", "jpeg", "png", "gif", "aif", "aiff", "mp3", "mpg", "mpeg", "mp4", "m4a", "wav", "avi"]
    :
 13 |     }
 14 |
 15 |     func mutations(for args: MediaAttachmentPayload) async throws -> AirshipNotificationMutations? {
    |          `- note: add '@available' attribute to enclosing instance method
 16 |         let attachments = try await withThrowingTaskGroup(of: AirshipAttachment?.self) { [weak self, args] group in
 17 |             try Task.checkCancellation()
    :
 31 |
 32 |             for try await result in group {
 33 |                 try Task.checkCancellation()
    |                     |- error: 'Task' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
 34 |
 35 |                 if let result = result {
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:33:26: error: 'checkCancellation()' is only available in macOS 10.15 or newer
  4 | import UserNotifications
  5 |
  6 | final class AirshipNotificationMutationProvider: Sendable {
    |             `- note: add '@available' attribute to enclosing class
  7 |
  8 |     static let supportedExtensions = ["jpg", "jpeg", "png", "gif", "aif", "aiff", "mp3", "mpg", "mpeg", "mp4", "m4a", "wav", "avi"]
    :
 13 |     }
 14 |
 15 |     func mutations(for args: MediaAttachmentPayload) async throws -> AirshipNotificationMutations? {
    |          `- note: add '@available' attribute to enclosing instance method
 16 |         let attachments = try await withThrowingTaskGroup(of: AirshipAttachment?.self) { [weak self, args] group in
 17 |             try Task.checkCancellation()
    :
 31 |
 32 |             for try await result in group {
 33 |                 try Task.checkCancellation()
    |                          |- error: 'checkCancellation()' is only available in macOS 10.15 or newer
    |                          `- note: add 'if #available' version check
 34 |
 35 |                 if let result = result {
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:16:59: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:16:58: note: expanded code originates here
  4 | import UserNotifications
  5 |
  6 | final class AirshipNotificationMutationProvider: Sendable {
    |             `- note: add '@available' attribute to enclosing class
  7 |
  8 |     static let supportedExtensions = ["jpg", "jpeg", "png", "gif", "aif", "aiff", "mp3", "mpg", "mpeg", "mp4", "m4a", "wav", "avi"]
    :
 13 |     }
 14 |
 15 |     func mutations(for args: MediaAttachmentPayload) async throws -> AirshipNotificationMutations? {
    |          `- note: add '@available' attribute to enclosing instance method
 16 |         let attachments = try await withThrowingTaskGroup(of: AirshipAttachment?.self) { [weak self, args] group in
    +--- /Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift
    |14 |
    |15 |
    |16 |                                                          #isolation
    |   |                                                           `- error: 'isolation()' is only available in macOS 10.15 or newer
    +------------------------------------------------------------------------------------------------------------------------------------------------------
 17 |             try Task.checkCancellation()
 18 |
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:57:13: error: 'Task' is only available in macOS 10.15 or newer
  4 | import UserNotifications
  5 |
  6 | final class AirshipNotificationMutationProvider: Sendable {
    |             `- note: add '@available' attribute to enclosing class
  7 |
  8 |     static let supportedExtensions = ["jpg", "jpeg", "png", "gif", "aif", "aiff", "mp3", "mpg", "mpeg", "mp4", "m4a", "wav", "avi"]
    :
 49 |     }
 50 |
 51 |     private func load(
    |                  `- note: add '@available' attribute to enclosing instance method
 52 |         attachment: MediaAttachmentPayload.ContentMedia,
 53 |         defaultOptions: MediaAttachmentPayload.PayloadOptions,
    :
 55 |     ) async throws -> AirshipAttachment {
 56 |
 57 |         try Task.checkCancellation()
    |             |- error: 'Task' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 58 |
 59 |         logger.debug("Downloading attachment \(attachment.url)")
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:57:18: error: 'checkCancellation()' is only available in macOS 10.15 or newer
  4 | import UserNotifications
  5 |
  6 | final class AirshipNotificationMutationProvider: Sendable {
    |             `- note: add '@available' attribute to enclosing class
  7 |
  8 |     static let supportedExtensions = ["jpg", "jpeg", "png", "gif", "aif", "aiff", "mp3", "mpg", "mpeg", "mp4", "m4a", "wav", "avi"]
    :
 49 |     }
 50 |
 51 |     private func load(
    |                  `- note: add '@available' attribute to enclosing instance method
 52 |         attachment: MediaAttachmentPayload.ContentMedia,
 53 |         defaultOptions: MediaAttachmentPayload.PayloadOptions,
    :
 55 |     ) async throws -> AirshipAttachment {
 56 |
 57 |         try Task.checkCancellation()
    |                  |- error: 'checkCancellation()' is only available in macOS 10.15 or newer
    |                  `- note: add 'if #available' version check
 58 |
 59 |         logger.debug("Downloading attachment \(attachment.url)")
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:65:13: error: 'Task' is only available in macOS 10.15 or newer
  4 | import UserNotifications
  5 |
  6 | final class AirshipNotificationMutationProvider: Sendable {
    |             `- note: add '@available' attribute to enclosing class
  7 |
  8 |     static let supportedExtensions = ["jpg", "jpeg", "png", "gif", "aif", "aiff", "mp3", "mpg", "mpeg", "mp4", "m4a", "wav", "avi"]
    :
 49 |     }
 50 |
 51 |     private func load(
    |                  `- note: add '@available' attribute to enclosing instance method
 52 |         attachment: MediaAttachmentPayload.ContentMedia,
 53 |         defaultOptions: MediaAttachmentPayload.PayloadOptions,
    :
 63 |         logger.debug("Downloading attachment result: \(response)")
 64 |
 65 |         try Task.checkCancellation()
    |             |- error: 'Task' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 66 |
 67 |         var mimeType = response.mimeType
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:65:18: error: 'checkCancellation()' is only available in macOS 10.15 or newer
  4 | import UserNotifications
  5 |
  6 | final class AirshipNotificationMutationProvider: Sendable {
    |             `- note: add '@available' attribute to enclosing class
  7 |
  8 |     static let supportedExtensions = ["jpg", "jpeg", "png", "gif", "aif", "aiff", "mp3", "mpg", "mpeg", "mp4", "m4a", "wav", "avi"]
    :
 49 |     }
 50 |
 51 |     private func load(
    |                  `- note: add '@available' attribute to enclosing instance method
 52 |         attachment: MediaAttachmentPayload.ContentMedia,
 53 |         defaultOptions: MediaAttachmentPayload.PayloadOptions,
    :
 63 |         logger.debug("Downloading attachment result: \(response)")
 64 |
 65 |         try Task.checkCancellation()
    |                  |- error: 'checkCancellation()' is only available in macOS 10.15 or newer
    |                  `- note: add 'if #available' version check
 66 |
 67 |         var mimeType = response.mimeType
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:100:28: error: 'UNNotificationAttachmentOptionsTypeHintKey' is only available in macOS 10.14 or newer
  4 | import UserNotifications
  5 |
  6 | final class AirshipNotificationMutationProvider: Sendable {
    |             `- note: add '@available' attribute to enclosing class
  7 |
  8 |     static let supportedExtensions = ["jpg", "jpeg", "png", "gif", "aif", "aiff", "mp3", "mpg", "mpeg", "mp4", "m4a", "wav", "avi"]
    :
 82 |     }
 83 |
 84 |     private func makeAttachement(
    |                  `- note: add '@available' attribute to enclosing instance method
 85 |         localURL: URL,
 86 |         remoteURL: URL,
    :
 98 |
 99 |         if !hasExtension, let hint = hintMimeType(for: fileURL, mimeType: mimeType) {
100 |             mutableOptions[UNNotificationAttachmentOptionsTypeHintKey] = hint
    |                            |- error: 'UNNotificationAttachmentOptionsTypeHintKey' is only available in macOS 10.14 or newer
    |                            `- note: add 'if #available' version check
101 |         }
102 |
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:109:23: error: 'UTType' is only available in macOS 11.0 or newer
  4 | import UserNotifications
  5 |
  6 | final class AirshipNotificationMutationProvider: Sendable {
    |             `- note: add '@available' attribute to enclosing class
  7 |
  8 |     static let supportedExtensions = ["jpg", "jpeg", "png", "gif", "aif", "aiff", "mp3", "mpg", "mpeg", "mp4", "m4a", "wav", "avi"]
    :
104 |     }
105 |
106 |     private func hintMimeType(for file: URL, mimeType: String?) -> String? {
    |                  `- note: add '@available' attribute to enclosing instance method
107 |         if
108 |             let type = mimeType,
109 |             let uti = UTType(mimeType: type),
    |                       |- error: 'UTType' is only available in macOS 11.0 or newer
    |                       `- note: add 'if #available' version check
110 |             let fileExtension = uti.preferredFilenameExtension,
111 |             Self.supportedExtensions.contains(fileExtension) {
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:109:23: error: 'init(mimeType:conformingTo:)' is only available in macOS 11.0 or newer
  4 | import UserNotifications
  5 |
  6 | final class AirshipNotificationMutationProvider: Sendable {
    |             `- note: add '@available' attribute to enclosing class
  7 |
  8 |     static let supportedExtensions = ["jpg", "jpeg", "png", "gif", "aif", "aiff", "mp3", "mpg", "mpeg", "mp4", "m4a", "wav", "avi"]
    :
104 |     }
105 |
106 |     private func hintMimeType(for file: URL, mimeType: String?) -> String? {
    |                  `- note: add '@available' attribute to enclosing instance method
107 |         if
108 |             let type = mimeType,
109 |             let uti = UTType(mimeType: type),
    |                       |- error: 'init(mimeType:conformingTo:)' is only available in macOS 11.0 or newer
    |                       `- note: add 'if #available' version check
110 |             let fileExtension = uti.preferredFilenameExtension,
111 |             Self.supportedExtensions.contains(fileExtension) {
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:110:37: error: 'preferredFilenameExtension' is only available in macOS 11.0 or newer
  4 | import UserNotifications
  5 |
  6 | final class AirshipNotificationMutationProvider: Sendable {
    |             `- note: add '@available' attribute to enclosing class
  7 |
  8 |     static let supportedExtensions = ["jpg", "jpeg", "png", "gif", "aif", "aiff", "mp3", "mpg", "mpeg", "mp4", "m4a", "wav", "avi"]
    :
104 |     }
105 |
106 |     private func hintMimeType(for file: URL, mimeType: String?) -> String? {
    |                  `- note: add '@available' attribute to enclosing instance method
107 |         if
108 |             let type = mimeType,
109 |             let uti = UTType(mimeType: type),
110 |             let fileExtension = uti.preferredFilenameExtension,
    |                                     |- error: 'preferredFilenameExtension' is only available in macOS 11.0 or newer
    |                                     `- note: add 'if #available' version check
111 |             Self.supportedExtensions.contains(fileExtension) {
112 |             return uti.identifier
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:112:24: error: 'identifier' is only available in macOS 11.0 or newer
  4 | import UserNotifications
  5 |
  6 | final class AirshipNotificationMutationProvider: Sendable {
    |             `- note: add '@available' attribute to enclosing class
  7 |
  8 |     static let supportedExtensions = ["jpg", "jpeg", "png", "gif", "aif", "aiff", "mp3", "mpg", "mpeg", "mp4", "m4a", "wav", "avi"]
    :
104 |     }
105 |
106 |     private func hintMimeType(for file: URL, mimeType: String?) -> String? {
    |                  `- note: add '@available' attribute to enclosing instance method
107 |         if
108 |             let type = mimeType,
    :
110 |             let fileExtension = uti.preferredFilenameExtension,
111 |             Self.supportedExtensions.contains(fileExtension) {
112 |             return uti.identifier
    |                        |- error: 'identifier' is only available in macOS 11.0 or newer
    |                        `- note: add 'if #available' version check
113 |         }
114 |
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:140:34: error: 'download(from:delegate:)' is only available in macOS 12.0 or newer
  4 | import UserNotifications
  5 |
  6 | final class AirshipNotificationMutationProvider: Sendable {
    |             `- note: add '@available' attribute to enclosing class
  7 |
  8 |     static let supportedExtensions = ["jpg", "jpeg", "png", "gif", "aif", "aiff", "mp3", "mpg", "mpeg", "mp4", "m4a", "wav", "avi"]
    :
131 |     }
132 |
133 |     private func download(url: URL) async throws -> (URL, URLResponse) {
    |                  `- note: add '@available' attribute to enclosing instance method
134 |         let session = URLSession(
135 |             configuration: .default,
    :
138 |         )
139 |
140 |         return try await session.download(from: url)
    |                                  |- error: 'download(from:delegate:)' is only available in macOS 12.0 or newer
    |                                  `- note: add 'if #available' version check
141 |     }
142 |
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:227:17: error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
218 |
219 |
220 | struct AirshipAttachment: Sendable {
    |        `- note: add '@available' attribute to enclosing struct
221 |     var identifier: String
222 |     var url: URL
223 |     var options: [String : any Sendable]
224 |
225 |     var notificationAttachment: UNNotificationAttachment {
    |         `- note: add '@available' attribute to enclosing property
226 |         get throws {
227 |             try UNNotificationAttachment(
    |                 |- error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
    |                 `- note: add 'if #available' version check
228 |                 identifier: self.identifier,
229 |                 url: self.url,
[88/96] Compiling AirshipNotificationServiceExtension AirshipExtensionLogger.swift
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipExtensionLogger.swift:200:32: error: 'Logger' is only available in macOS 11.0 or newer
190 |
191 |
192 | public final class DefaultAirshipExtensionLogHandler: AirshipExtensionLogHandler {
    |                    `- note: add '@available' attribute to enclosing class
193 |
194 |     private let logPublic: Bool
    :
198 |     }
199 |
200 |     private static let logger: Logger = Logger(
    |                        |       `- error: 'Logger' is only available in macOS 11.0 or newer
    |                        `- note: add '@available' attribute to enclosing static property
201 |         subsystem: Bundle.main.bundleIdentifier ?? "",
202 |         category: "AirshipNotificationExtension"
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipExtensionLogger.swift:200:41: error: 'Logger' is only available in macOS 11.0 or newer
190 |
191 |
192 | public final class DefaultAirshipExtensionLogHandler: AirshipExtensionLogHandler {
    |                    `- note: add '@available' attribute to enclosing class
193 |
194 |     private let logPublic: Bool
    :
198 |     }
199 |
200 |     private static let logger: Logger = Logger(
    |                        |                `- error: 'Logger' is only available in macOS 11.0 or newer
    |                        `- note: add '@available' attribute to enclosing static property
201 |         subsystem: Bundle.main.bundleIdentifier ?? "",
202 |         category: "AirshipNotificationExtension"
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipExtensionLogger.swift:215:17: error: 'OSLogMessage' is only available in macOS 11.0 or newer
190 |
191 |
192 | public final class DefaultAirshipExtensionLogHandler: AirshipExtensionLogHandler {
    |                    `- note: add '@available' attribute to enclosing class
193 |
194 |     private let logPublic: Bool
    :
203 |     )
204 |
205 |     public func log(
    |                 `- note: add '@available' attribute to enclosing instance method
206 |         logLevel: AirshipExtensionLogLevel,
207 |         message: String,
    :
213 |         if (logPublic) {
214 |             Self.logger.notice(
215 |                 "\(logMessage, privacy: .public)"
    |                 |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
    |                 `- note: add 'if #available' version check
216 |             )
217 |         } else {
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipExtensionLogger.swift:215:19: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
190 |
191 |
192 | public final class DefaultAirshipExtensionLogHandler: AirshipExtensionLogHandler {
    |                    `- note: add '@available' attribute to enclosing class
193 |
194 |     private let logPublic: Bool
    :
203 |     )
204 |
205 |     public func log(
    |                 `- note: add '@available' attribute to enclosing instance method
206 |         logLevel: AirshipExtensionLogLevel,
207 |         message: String,
    :
213 |         if (logPublic) {
214 |             Self.logger.notice(
215 |                 "\(logMessage, privacy: .public)"
    |                   |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
    |                   `- note: add 'if #available' version check
216 |             )
217 |         } else {
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipExtensionLogger.swift:220:17: error: 'OSLogMessage' is only available in macOS 11.0 or newer
190 |
191 |
192 | public final class DefaultAirshipExtensionLogHandler: AirshipExtensionLogHandler {
    |                    `- note: add '@available' attribute to enclosing class
193 |
194 |     private let logPublic: Bool
    :
203 |     )
204 |
205 |     public func log(
    |                 `- note: add '@available' attribute to enclosing instance method
206 |         logLevel: AirshipExtensionLogLevel,
207 |         message: String,
    :
218 |             Self.logger.log(
219 |                 level: logLevel.logType,
220 |                 "\(logMessage, privacy: .private)"
    |                 |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
    |                 `- note: add 'if #available' version check
221 |             )
222 |         }
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipExtensionLogger.swift:220:19: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
190 |
191 |
192 | public final class DefaultAirshipExtensionLogHandler: AirshipExtensionLogHandler {
    |                    `- note: add '@available' attribute to enclosing class
193 |
194 |     private let logPublic: Bool
    :
203 |     )
204 |
205 |     public func log(
    |                 `- note: add '@available' attribute to enclosing instance method
206 |         logLevel: AirshipExtensionLogLevel,
207 |         message: String,
    :
218 |             Self.logger.log(
219 |                 level: logLevel.logType,
220 |                 "\(logMessage, privacy: .private)"
    |                   |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
    |                   `- note: add 'if #available' version check
221 |             )
222 |         }
[89/96] Compiling AirshipNotificationServiceExtension MediaAttachmentPayload.swift
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/MediaAttachmentPayload.swift:135:51: error: 'UNNotificationAttachmentOptionsThumbnailHiddenKey' is only available in macOS 10.14 or newer
 92 |     }
 93 |
 94 |     struct PayloadOptions: Decodable, Sendable {
    |            `- note: add '@available' attribute to enclosing struct
 95 |         private static let cropRequiredFields = ["x", "y", "width", "height"]
 96 |         let crop: [String: Double]?
    :
132 |         }
133 |
134 |         func generateNotificationAttachmentOptions(hideThumbnail: Bool) -> [String: any Sendable] {
    |              `- note: add '@available' attribute to enclosing instance method
135 |             var result: [String: any Sendable] = [UNNotificationAttachmentOptionsThumbnailHiddenKey: hideThumbnail]
    |                                                   |- error: 'UNNotificationAttachmentOptionsThumbnailHiddenKey' is only available in macOS 10.14 or newer
    |                                                   `- note: add 'if #available' version check
136 |
137 |             if let crop = self.crop {
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/MediaAttachmentPayload.swift:141:24: error: 'UNNotificationAttachmentOptionsThumbnailClippingRectKey' is only available in macOS 10.14 or newer
 92 |     }
 93 |
 94 |     struct PayloadOptions: Decodable, Sendable {
    |            `- note: add '@available' attribute to enclosing struct
 95 |         private static let cropRequiredFields = ["x", "y", "width", "height"]
 96 |         let crop: [String: Double]?
    :
132 |         }
133 |
134 |         func generateNotificationAttachmentOptions(hideThumbnail: Bool) -> [String: any Sendable] {
    |              `- note: add '@available' attribute to enclosing instance method
135 |             var result: [String: any Sendable] = [UNNotificationAttachmentOptionsThumbnailHiddenKey: hideThumbnail]
136 |
    :
139 |                     partialResult[entry.key.capitalized] = entry.value
140 |                 }
141 |                 result[UNNotificationAttachmentOptionsThumbnailClippingRectKey] = normalized
    |                        |- error: 'UNNotificationAttachmentOptionsThumbnailClippingRectKey' is only available in macOS 10.14 or newer
    |                        `- note: add 'if #available' version check
142 |             }
143 |
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/MediaAttachmentPayload.swift:145:24: error: 'UNNotificationAttachmentOptionsThumbnailTimeKey' is only available in macOS 10.14 or newer
 92 |     }
 93 |
 94 |     struct PayloadOptions: Decodable, Sendable {
    |            `- note: add '@available' attribute to enclosing struct
 95 |         private static let cropRequiredFields = ["x", "y", "width", "height"]
 96 |         let crop: [String: Double]?
    :
132 |         }
133 |
134 |         func generateNotificationAttachmentOptions(hideThumbnail: Bool) -> [String: any Sendable] {
    |              `- note: add '@available' attribute to enclosing instance method
135 |             var result: [String: any Sendable] = [UNNotificationAttachmentOptionsThumbnailHiddenKey: hideThumbnail]
136 |
    :
143 |
144 |             if let time = self.time {
145 |                 result[UNNotificationAttachmentOptionsThumbnailTimeKey] = time
    |                        |- error: 'UNNotificationAttachmentOptionsThumbnailTimeKey' is only available in macOS 10.14 or newer
    |                        `- note: add 'if #available' version check
146 |             }
147 |
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/MediaAttachmentPayload.swift:149:24: error: 'UNNotificationAttachmentOptionsThumbnailHiddenKey' is only available in macOS 10.14 or newer
 92 |     }
 93 |
 94 |     struct PayloadOptions: Decodable, Sendable {
    |            `- note: add '@available' attribute to enclosing struct
 95 |         private static let cropRequiredFields = ["x", "y", "width", "height"]
 96 |         let crop: [String: Double]?
    :
132 |         }
133 |
134 |         func generateNotificationAttachmentOptions(hideThumbnail: Bool) -> [String: any Sendable] {
    |              `- note: add '@available' attribute to enclosing instance method
135 |             var result: [String: any Sendable] = [UNNotificationAttachmentOptionsThumbnailHiddenKey: hideThumbnail]
136 |
    :
147 |
148 |             if let hidden = self.hidden {
149 |                 result[UNNotificationAttachmentOptionsThumbnailHiddenKey] = hidden
    |                        |- error: 'UNNotificationAttachmentOptionsThumbnailHiddenKey' is only available in macOS 10.14 or newer
    |                        `- note: add 'if #available' version check
150 |             }
151 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[90/96] Compiling AirshipBasement AirshipLogHandler.swift
[91/96] Emitting module AirshipBasement
/Users/admin/builder/spi-builder-workspace/Airship/AirshipBasement/Source/DefaultLogHandler.swift:15:32: error: 'Logger' is only available in macOS 11.0 or newer
 6 | /// Default log handler. Logs to either os.Logger or just prints depending on OS version.
 7 | @_spi(AirshipInternal)
 8 | public final class DefaultLogHandler: AirshipLogHandler {
   |                    `- note: add '@available' attribute to enclosing class
 9 |     private let privacyLevel: AirshipLogPrivacyLevel
10 |
   :
13 |     }
14 |
15 |     private static let logger: Logger = Logger(
   |                        |       `- error: 'Logger' is only available in macOS 11.0 or newer
   |                        `- note: add '@available' attribute to enclosing static property
16 |         subsystem: Bundle.main.bundleIdentifier ?? "",
17 |         category: "Airship"
/Users/admin/builder/spi-builder-workspace/Airship/AirshipBasement/Source/DefaultLogHandler.swift:15:41: error: 'Logger' is only available in macOS 11.0 or newer
 6 | /// Default log handler. Logs to either os.Logger or just prints depending on OS version.
 7 | @_spi(AirshipInternal)
 8 | public final class DefaultLogHandler: AirshipLogHandler {
   |                    `- note: add '@available' attribute to enclosing class
 9 |     private let privacyLevel: AirshipLogPrivacyLevel
10 |
   :
13 |     }
14 |
15 |     private static let logger: Logger = Logger(
   |                        |                `- error: 'Logger' is only available in macOS 11.0 or newer
   |                        `- note: add '@available' attribute to enclosing static property
16 |         subsystem: Bundle.main.bundleIdentifier ?? "",
17 |         category: "Airship"
[92/96] Compiling AirshipBasement LogLevel.swift
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/airship.jpg
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/Airship/AirshipBasement/Tests/AirshipDateFormatterTest.swift
BUILD FAILURE 6.2 macosSpm