Build Information
Failed to build Airship, reference main (67cd1c), with Swift 6.2 for macOS (SPM) on 27 Sep 2026 03:03:58 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 5.1.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 67cd1cb Bump version to 21.0.2 and add changelog entry (#4053)
Cloned https://github.com/urbanairship/ios-library.git
Revision (git rev-parse @):
67cd1cb0c2cfd7f0748d247a876a9ed77181e107
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/86] Write sources
[0/86] Copying Info.plist
[0/86] Write sources
[0/86] Copying Info.plist
[0/86] Write sources
[0/86] Copying UrbanAirship.strings
[24/86] Copying UANotificationCategories.plist
[24/86] Copying UrbanAirship.strings
[24/86] Copying UANativeBridge
[24/86] Write sources
[24/86] Copying PrivacyInfo.xcprivacy
[24/86] Copying Info.plist
[24/86] Write sources
[35/86] Copying Info.plist
[36/86] Write sources
[40/86] Copying UrbanAirship.strings
[43/86] Write sources
[67/86] Copying UARemoteDataMappingV2toV4.xcmappingmodel
[67/86] Copying UAInboxDataMappingV2toV4.xcmappingmodel
[67/86] Copying UARemoteDataMappingV3toV4.xcmappingmodel
[67/86] Copying UAInboxDataMappingV3toV4.xcmappingmodel
[67/86] Copying UARemoteDataMappingV1toV4.xcmappingmodel
[67/86] Copying UAInboxDataMappingV1toV4.xcmappingmodel
[73/86] Copying AirshipDebugPushData.xcdatamodeld
[74/86] Copying TestAssets.xcassets
[74/86] Copying AirshipDebugEventData.xcdatamodeld
[74/86] Copying UAirshipCache.xcdatamodeld
[74/86] Copying UAMeteredUsage.xcdatamodeld
[78/86] Copying UAEvents.xcdatamodeld
[79/86] Copying UAFrequencyLimits.xcdatamodeld
[80/86] Copying AirshipLedger.xcdatamodeld
[81/86] Copying UARemoteData.xcdatamodeld
[82/86] Copying UAInbox.xcdatamodeld
[82/86] Copying AirshipAutomation.xcdatamodeld
[84/86] Copying UAAutomation.xcdatamodeld
[85/86] Write swift-version--3CB7CFEC50E0D141.txt
[87/130] 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 |
[88/130] Compiling AirshipNotificationServiceExtension UANotificationServiceExtension.swift
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:16:20: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
9 |
10 | @objc
11 | open class UANotificationServiceExtension: UNNotificationServiceExtension {
| `- note: add '@available' attribute to enclosing class
12 | open var airshipConfig: AirshipExtensionConfig { .init() }
13 | private var onExpire: (@Sendable () -> Void)?
14 |
15 | open override func didReceive(
| `- note: add '@available' attribute to enclosing instance method
16 | _ request: UNNotificationRequest,
| `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
17 | withContentHandler contentHandler: @Sendable @escaping (UNNotificationContent) -> Void
18 | ) {
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:17:65: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
9 |
10 | @objc
11 | open class UANotificationServiceExtension: UNNotificationServiceExtension {
| `- note: add '@available' attribute to enclosing class
12 | open var airshipConfig: AirshipExtensionConfig { .init() }
13 | private var onExpire: (@Sendable () -> Void)?
14 |
15 | open override func didReceive(
| `- note: add '@available' attribute to enclosing instance method
16 | _ request: UNNotificationRequest,
17 | withContentHandler contentHandler: @Sendable @escaping (UNNotificationContent) -> Void
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
18 | ) {
19 |
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:11:44: error: 'UNNotificationServiceExtension' is only available in macOS 10.14 or newer
9 |
10 | @objc
11 | open class UANotificationServiceExtension: UNNotificationServiceExtension {
| | `- error: 'UNNotificationServiceExtension' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing class
12 | open var airshipConfig: AirshipExtensionConfig { .init() }
13 | private var onExpire: (@Sendable () -> Void)?
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:94:38: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
90 | /// Wraps a content handler so it can only be invoked once, no matter
91 | /// which path (download task or expiry) finishes the request first.
92 | private final class OnceContentHandler: @unchecked Sendable {
| `- note: add '@available' attribute to enclosing class
93 | private let lock = NSLock()
94 | private var handler: (@Sendable (UNNotificationContent) -> Void)?
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
95 |
96 | init(_ handler: @Sendable @escaping (UNNotificationContent) -> Void) {
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:96:42: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
90 | /// Wraps a content handler so it can only be invoked once, no matter
91 | /// which path (download task or expiry) finishes the request first.
92 | private final class OnceContentHandler: @unchecked Sendable {
| `- note: add '@available' attribute to enclosing class
93 | private let lock = NSLock()
94 | private var handler: (@Sendable (UNNotificationContent) -> Void)?
95 |
96 | init(_ handler: @Sendable @escaping (UNNotificationContent) -> Void) {
| | `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing initializer
97 | self.handler = handler
98 | }
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:100:36: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
90 | /// Wraps a content handler so it can only be invoked once, no matter
91 | /// which path (download task or expiry) finishes the request first.
92 | private final class OnceContentHandler: @unchecked Sendable {
| `- note: add '@available' attribute to enclosing class
93 | private let lock = NSLock()
94 | private var handler: (@Sendable (UNNotificationContent) -> Void)?
:
98 | }
99 |
100 | func callAsFunction(_ content: UNNotificationContent) {
| | `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing instance method
101 | lock.lock()
102 | let handler = self.handler
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:109:11: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
107 | }
108 |
109 | extension UNNotificationRequest {
| | `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing extension
110 | fileprivate static let airshipMediaAttachment = "com.urbanairship.media_attachment"
111 |
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:30:28: error: 'Task' is only available in macOS 10.15 or newer
9 |
10 | @objc
11 | open class UANotificationServiceExtension: UNNotificationServiceExtension {
| `- note: add '@available' attribute to enclosing class
12 | open var airshipConfig: AirshipExtensionConfig { .init() }
13 | private var onExpire: (@Sendable () -> Void)?
14 |
15 | open override func didReceive(
| `- note: add '@available' attribute to enclosing instance method
16 | _ request: UNNotificationRequest,
17 | withContentHandler contentHandler: @Sendable @escaping (UNNotificationContent) -> Void
:
28 | let finish = OnceContentHandler(contentHandler)
29 |
30 | let downloadTask = Task { @MainActor in
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | logger.debug(
32 | "New request received: \(request)"
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:30:28: error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
9 |
10 | @objc
11 | open class UANotificationServiceExtension: UNNotificationServiceExtension {
| `- note: add '@available' attribute to enclosing class
12 | open var airshipConfig: AirshipExtensionConfig { .init() }
13 | private var onExpire: (@Sendable () -> Void)?
14 |
15 | open override func didReceive(
| `- note: add '@available' attribute to enclosing instance method
16 | _ request: UNNotificationRequest,
17 | withContentHandler contentHandler: @Sendable @escaping (UNNotificationContent) -> Void
:
28 | let finish = OnceContentHandler(contentHandler)
29 |
30 | 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
31 | logger.debug(
32 | "New request received: \(request)"
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:35:74: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
9 |
10 | @objc
11 | open class UANotificationServiceExtension: UNNotificationServiceExtension {
| `- note: add '@available' attribute to enclosing class
12 | open var airshipConfig: AirshipExtensionConfig { .init() }
13 | private var onExpire: (@Sendable () -> Void)?
14 |
15 | open override func didReceive(
| `- note: add '@available' attribute to enclosing instance method
16 | _ request: UNNotificationRequest,
17 | withContentHandler contentHandler: @Sendable @escaping (UNNotificationContent) -> Void
:
33 | )
34 |
35 | 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
36 | logger.error(
37 | "Unable to make mutable copy of request"
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:39:21: error: 'Task' is only available in macOS 10.15 or newer
9 |
10 | @objc
11 | open class UANotificationServiceExtension: UNNotificationServiceExtension {
| `- note: add '@available' attribute to enclosing class
12 | open var airshipConfig: AirshipExtensionConfig { .init() }
13 | private var onExpire: (@Sendable () -> Void)?
14 |
15 | open override func didReceive(
| `- note: add '@available' attribute to enclosing instance method
16 | _ request: UNNotificationRequest,
17 | withContentHandler contentHandler: @Sendable @escaping (UNNotificationContent) -> Void
:
37 | "Unable to make mutable copy of request"
38 | )
39 | try Task.checkCancellation()
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | finish(request.content)
41 | return
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:39:26: error: 'checkCancellation()' is only available in macOS 10.15 or newer
9 |
10 | @objc
11 | open class UANotificationServiceExtension: UNNotificationServiceExtension {
| `- note: add '@available' attribute to enclosing class
12 | open var airshipConfig: AirshipExtensionConfig { .init() }
13 | private var onExpire: (@Sendable () -> Void)?
14 |
15 | open override func didReceive(
| `- note: add '@available' attribute to enclosing instance method
16 | _ request: UNNotificationRequest,
17 | withContentHandler contentHandler: @Sendable @escaping (UNNotificationContent) -> Void
:
37 | "Unable to make mutable copy of request"
38 | )
39 | try Task.checkCancellation()
| |- error: 'checkCancellation()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | finish(request.content)
41 | return
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:50:25: error: 'Task' is only available in macOS 10.15 or newer
9 |
10 | @objc
11 | open class UANotificationServiceExtension: UNNotificationServiceExtension {
| `- note: add '@available' attribute to enclosing class
12 | open var airshipConfig: AirshipExtensionConfig { .init() }
13 | private var onExpire: (@Sendable () -> Void)?
14 |
15 | open override func didReceive(
| `- note: add '@available' attribute to enclosing instance method
16 | _ request: UNNotificationRequest,
17 | withContentHandler contentHandler: @Sendable @escaping (UNNotificationContent) -> Void
:
48 | "Finishing request, no Airship args: \(request.identifier)"
49 | )
50 | try Task.checkCancellation()
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | finish(request.content)
52 | return
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:50:30: error: 'checkCancellation()' is only available in macOS 10.15 or newer
9 |
10 | @objc
11 | open class UANotificationServiceExtension: UNNotificationServiceExtension {
| `- note: add '@available' attribute to enclosing class
12 | open var airshipConfig: AirshipExtensionConfig { .init() }
13 | private var onExpire: (@Sendable () -> Void)?
14 |
15 | open override func didReceive(
| `- note: add '@available' attribute to enclosing instance method
16 | _ request: UNNotificationRequest,
17 | withContentHandler contentHandler: @Sendable @escaping (UNNotificationContent) -> Void
:
48 | "Finishing request, no Airship args: \(request.identifier)"
49 | )
50 | try Task.checkCancellation()
| |- error: 'checkCancellation()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | finish(request.content)
52 | return
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:68:17: error: 'Task' is only available in macOS 10.15 or newer
9 |
10 | @objc
11 | open class UANotificationServiceExtension: UNNotificationServiceExtension {
| `- note: add '@available' attribute to enclosing class
12 | open var airshipConfig: AirshipExtensionConfig { .init() }
13 | private var onExpire: (@Sendable () -> Void)?
14 |
15 | open override func didReceive(
| `- note: add '@available' attribute to enclosing instance method
16 | _ request: UNNotificationRequest,
17 | withContentHandler contentHandler: @Sendable @escaping (UNNotificationContent) -> Void
:
66 | }
67 |
68 | try Task.checkCancellation()
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 |
70 | logger.info(
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:68:22: error: 'checkCancellation()' is only available in macOS 10.15 or newer
9 |
10 | @objc
11 | open class UANotificationServiceExtension: UNNotificationServiceExtension {
| `- note: add '@available' attribute to enclosing class
12 | open var airshipConfig: AirshipExtensionConfig { .init() }
13 | private var onExpire: (@Sendable () -> Void)?
14 |
15 | open override func didReceive(
| `- note: add '@available' attribute to enclosing instance method
16 | _ request: UNNotificationRequest,
17 | withContentHandler contentHandler: @Sendable @escaping (UNNotificationContent) -> Void
:
66 | }
67 |
68 | try Task.checkCancellation()
| |- error: 'checkCancellation()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 |
70 | logger.info(
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:80:26: error: 'cancel()' is only available in macOS 10.15 or newer
9 |
10 | @objc
11 | open class UANotificationServiceExtension: UNNotificationServiceExtension {
| `- note: add '@available' attribute to enclosing class
12 | open var airshipConfig: AirshipExtensionConfig { .init() }
13 | private var onExpire: (@Sendable () -> Void)?
14 |
15 | open override func didReceive(
| `- note: add '@available' attribute to enclosing instance method
16 | _ request: UNNotificationRequest,
17 | withContentHandler contentHandler: @Sendable @escaping (UNNotificationContent) -> Void
:
78 | "serviceExtensionTimeWillExpire expiring, canceling airshipTask"
79 | )
80 | downloadTask.cancel()
| |- error: 'cancel()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | finish(request.content)
82 | }
[89/130] Compiling AirshipNotificationServiceExtension ChallengeResolver.swift
[90/130] Compiling AirshipNotificationServiceExtension AirshipExtensionConfig.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[91/130] 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:210:40: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
202 | }
203 |
204 | struct AirshipNotificationMutations: Sendable {
| `- note: add '@available' attribute to enclosing struct
205 | var title: String?
206 | var subtitle: String?
:
208 | var attachments: [AirshipAttachment]
209 |
210 | 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
211 | // Text overrides land first: a rejected attachment must never cost the
212 | // notification its title/subtitle/body.
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:243:33: error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
236 |
237 |
238 | struct AirshipAttachment: Sendable {
| `- note: add '@available' attribute to enclosing struct
239 | var identifier: String
240 | var url: URL
241 | var options: [String : any Sendable]
242 |
243 | var notificationAttachment: UNNotificationAttachment {
| | `- error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing property
244 | get throws {
245 | try UNNotificationAttachment(
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:16:20: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
9 |
10 | @objc
11 | open class UANotificationServiceExtension: UNNotificationServiceExtension {
| `- note: add '@available' attribute to enclosing class
12 | open var airshipConfig: AirshipExtensionConfig { .init() }
13 | private var onExpire: (@Sendable () -> Void)?
14 |
15 | open override func didReceive(
| `- note: add '@available' attribute to enclosing instance method
16 | _ request: UNNotificationRequest,
| `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
17 | withContentHandler contentHandler: @Sendable @escaping (UNNotificationContent) -> Void
18 | ) {
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:17:65: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
9 |
10 | @objc
11 | open class UANotificationServiceExtension: UNNotificationServiceExtension {
| `- note: add '@available' attribute to enclosing class
12 | open var airshipConfig: AirshipExtensionConfig { .init() }
13 | private var onExpire: (@Sendable () -> Void)?
14 |
15 | open override func didReceive(
| `- note: add '@available' attribute to enclosing instance method
16 | _ request: UNNotificationRequest,
17 | withContentHandler contentHandler: @Sendable @escaping (UNNotificationContent) -> Void
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
18 | ) {
19 |
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:11:44: error: 'UNNotificationServiceExtension' is only available in macOS 10.14 or newer
9 |
10 | @objc
11 | open class UANotificationServiceExtension: UNNotificationServiceExtension {
| | `- error: 'UNNotificationServiceExtension' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing class
12 | open var airshipConfig: AirshipExtensionConfig { .init() }
13 | private var onExpire: (@Sendable () -> Void)?
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:94:38: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
90 | /// Wraps a content handler so it can only be invoked once, no matter
91 | /// which path (download task or expiry) finishes the request first.
92 | private final class OnceContentHandler: @unchecked Sendable {
| `- note: add '@available' attribute to enclosing class
93 | private let lock = NSLock()
94 | private var handler: (@Sendable (UNNotificationContent) -> Void)?
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
95 |
96 | init(_ handler: @Sendable @escaping (UNNotificationContent) -> Void) {
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:96:42: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
90 | /// Wraps a content handler so it can only be invoked once, no matter
91 | /// which path (download task or expiry) finishes the request first.
92 | private final class OnceContentHandler: @unchecked Sendable {
| `- note: add '@available' attribute to enclosing class
93 | private let lock = NSLock()
94 | private var handler: (@Sendable (UNNotificationContent) -> Void)?
95 |
96 | init(_ handler: @Sendable @escaping (UNNotificationContent) -> Void) {
| | `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing initializer
97 | self.handler = handler
98 | }
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:100:36: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
90 | /// Wraps a content handler so it can only be invoked once, no matter
91 | /// which path (download task or expiry) finishes the request first.
92 | private final class OnceContentHandler: @unchecked Sendable {
| `- note: add '@available' attribute to enclosing class
93 | private let lock = NSLock()
94 | private var handler: (@Sendable (UNNotificationContent) -> Void)?
:
98 | }
99 |
100 | func callAsFunction(_ content: UNNotificationContent) {
| | `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing instance method
101 | lock.lock()
102 | let handler = self.handler
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/UANotificationServiceExtension.swift:109:11: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
107 | }
108 |
109 | extension UNNotificationRequest {
| | `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing extension
110 | fileprivate static let airshipMediaAttachment = "com.urbanairship.media_attachment"
111 |
[92/130] Compiling AirshipNotificationServiceExtension AirshipNotificationMutationProvider.swift
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:210:40: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
202 | }
203 |
204 | struct AirshipNotificationMutations: Sendable {
| `- note: add '@available' attribute to enclosing struct
205 | var title: String?
206 | var subtitle: String?
:
208 | var attachments: [AirshipAttachment]
209 |
210 | 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
211 | // Text overrides land first: a rejected attachment must never cost the
212 | // notification its title/subtitle/body.
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:243:33: error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
236 |
237 |
238 | struct AirshipAttachment: Sendable {
| `- note: add '@available' attribute to enclosing struct
239 | var identifier: String
240 | var url: URL
241 | var options: [String : any Sendable]
242 |
243 | var notificationAttachment: UNNotificationAttachment {
| | `- error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing property
244 | get throws {
245 | try UNNotificationAttachment(
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:18:13: error: 'Task' is only available in macOS 10.15 or newer
6 | #if !os(tvOS)
7 |
8 | final class AirshipNotificationMutationProvider: Sendable {
| `- note: add '@available' attribute to enclosing class
9 |
10 | static let supportedExtensions = ["jpg", "jpeg", "png", "gif", "aif", "aiff", "mp3", "mpg", "mpeg", "mp4", "m4a", "wav", "avi"]
:
15 | }
16 |
17 | func mutations(for args: MediaAttachmentPayload) async throws -> AirshipNotificationMutations? {
| `- note: add '@available' attribute to enclosing instance method
18 | try Task.checkCancellation()
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 |
20 | // Each task swallows its own failure so one bad/expired media URL doesn't
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:18:18: error: 'checkCancellation()' is only available in macOS 10.15 or newer
6 | #if !os(tvOS)
7 |
8 | final class AirshipNotificationMutationProvider: Sendable {
| `- note: add '@available' attribute to enclosing class
9 |
10 | static let supportedExtensions = ["jpg", "jpeg", "png", "gif", "aif", "aiff", "mp3", "mpg", "mpeg", "mp4", "m4a", "wav", "avi"]
:
15 | }
16 |
17 | func mutations(for args: MediaAttachmentPayload) async throws -> AirshipNotificationMutations? {
| `- note: add '@available' attribute to enclosing instance method
18 | try Task.checkCancellation()
| |- error: 'checkCancellation()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 |
20 | // Each task swallows its own failure so one bad/expired media URL doesn't
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:22:33: error: 'withTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
6 | #if !os(tvOS)
7 |
8 | final class AirshipNotificationMutationProvider: Sendable {
| `- note: add '@available' attribute to enclosing class
9 |
10 | static let supportedExtensions = ["jpg", "jpeg", "png", "gif", "aif", "aiff", "mp3", "mpg", "mpeg", "mp4", "m4a", "wav", "avi"]
:
15 | }
16 |
17 | func mutations(for args: MediaAttachmentPayload) async throws -> AirshipNotificationMutations? {
| `- note: add '@available' attribute to enclosing instance method
18 | try Task.checkCancellation()
19 |
20 | // Each task swallows its own failure so one bad/expired media URL doesn't
21 | // discard the title/subtitle/body overrides for the whole notification.
22 | let attachments = await withTaskGroup(of: AirshipAttachment?.self) { [weak self, args, logger] group in
| |- error: 'withTaskGroup(of:returning:isolation:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | var attachments: [AirshipAttachment] = []
24 |
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:26:23: error: 'addTask(priority:operation:)' is only available in macOS 10.15 or newer
6 | #if !os(tvOS)
7 |
8 | final class AirshipNotificationMutationProvider: Sendable {
| `- note: add '@available' attribute to enclosing class
9 |
10 | static let supportedExtensions = ["jpg", "jpeg", "png", "gif", "aif", "aiff", "mp3", "mpg", "mpeg", "mp4", "m4a", "wav", "avi"]
:
15 | }
16 |
17 | func mutations(for args: MediaAttachmentPayload) async throws -> AirshipNotificationMutations? {
| `- note: add '@available' attribute to enclosing instance method
18 | try Task.checkCancellation()
19 |
:
24 |
25 | args.media.forEach { media in
26 | group.addTask { [weak self] in
| |- error: 'addTask(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | do {
28 | try Task.checkCancellation()
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:28:29: error: 'Task' is only available in macOS 10.15 or newer
6 | #if !os(tvOS)
7 |
8 | final class AirshipNotificationMutationProvider: Sendable {
| `- note: add '@available' attribute to enclosing class
9 |
10 | static let supportedExtensions = ["jpg", "jpeg", "png", "gif", "aif", "aiff", "mp3", "mpg", "mpeg", "mp4", "m4a", "wav", "avi"]
:
15 | }
16 |
17 | func mutations(for args: MediaAttachmentPayload) async throws -> AirshipNotificationMutations? {
| `- note: add '@available' attribute to enclosing instance method
18 | try Task.checkCancellation()
19 |
:
26 | group.addTask { [weak self] in
27 | do {
28 | try Task.checkCancellation()
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | return try await self?.load(
30 | attachment: media,
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:28:34: error: 'checkCancellation()' is only available in macOS 10.15 or newer
6 | #if !os(tvOS)
7 |
8 | final class AirshipNotificationMutationProvider: Sendable {
| `- note: add '@available' attribute to enclosing class
9 |
10 | static let supportedExtensions = ["jpg", "jpeg", "png", "gif", "aif", "aiff", "mp3", "mpg", "mpeg", "mp4", "m4a", "wav", "avi"]
:
15 | }
16 |
17 | func mutations(for args: MediaAttachmentPayload) async throws -> AirshipNotificationMutations? {
| `- note: add '@available' attribute to enclosing instance method
18 | try Task.checkCancellation()
19 |
:
26 | group.addTask { [weak self] in
27 | do {
28 | try Task.checkCancellation()
| |- error: 'checkCancellation()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | return try await self?.load(
30 | attachment: media,
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:41:13: error: 'makeAsyncIterator()' is only available in macOS 10.15 or newer
6 | #if !os(tvOS)
7 |
8 | final class AirshipNotificationMutationProvider: Sendable {
| `- note: add '@available' attribute to enclosing class
9 |
10 | static let supportedExtensions = ["jpg", "jpeg", "png", "gif", "aif", "aiff", "mp3", "mpg", "mpeg", "mp4", "m4a", "wav", "avi"]
:
15 | }
16 |
17 | func mutations(for args: MediaAttachmentPayload) async throws -> AirshipNotificationMutations? {
| `- note: add '@available' attribute to enclosing instance method
18 | try Task.checkCancellation()
19 |
:
39 | }
40 |
41 | for await result in group {
| |- error: 'makeAsyncIterator()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | if let result = result {
43 | attachments.append(result)
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:22:47: error: 'isolation()' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:22:46: note: expanded code originates here
6 | #if !os(tvOS)
7 |
8 | final class AirshipNotificationMutationProvider: Sendable {
| `- note: add '@available' attribute to enclosing class
9 |
10 | static let supportedExtensions = ["jpg", "jpeg", "png", "gif", "aif", "aiff", "mp3", "mpg", "mpeg", "mp4", "m4a", "wav", "avi"]
:
15 | }
16 |
17 | func mutations(for args: MediaAttachmentPayload) async throws -> AirshipNotificationMutations? {
| `- note: add '@available' attribute to enclosing instance method
18 | try Task.checkCancellation()
19 |
20 | // Each task swallows its own failure so one bad/expired media URL doesn't
21 | // discard the title/subtitle/body overrides for the whole notification.
22 | let attachments = await withTaskGroup(of: AirshipAttachment?.self) { [weak self, args, logger] group in
+--- /Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift
|20 |
|21 |
|22 | #isolation
| | `- error: 'isolation()' is only available in macOS 10.15 or newer
+------------------------------------------------------------------------------------------------------------------------------------------------------
23 | var attachments: [AirshipAttachment] = []
24 |
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:64:13: error: 'Task' is only available in macOS 10.15 or newer
6 | #if !os(tvOS)
7 |
8 | final class AirshipNotificationMutationProvider: Sendable {
| `- note: add '@available' attribute to enclosing class
9 |
10 | static let supportedExtensions = ["jpg", "jpeg", "png", "gif", "aif", "aiff", "mp3", "mpg", "mpeg", "mp4", "m4a", "wav", "avi"]
:
56 | }
57 |
58 | private func load(
| `- note: add '@available' attribute to enclosing instance method
59 | attachment: MediaAttachmentPayload.ContentMedia,
60 | defaultOptions: MediaAttachmentPayload.PayloadOptions,
:
62 | ) async throws -> AirshipAttachment {
63 |
64 | try Task.checkCancellation()
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 |
66 | logger.debug("Downloading attachment \(attachment.url)")
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:64:18: error: 'checkCancellation()' is only available in macOS 10.15 or newer
6 | #if !os(tvOS)
7 |
8 | final class AirshipNotificationMutationProvider: Sendable {
| `- note: add '@available' attribute to enclosing class
9 |
10 | static let supportedExtensions = ["jpg", "jpeg", "png", "gif", "aif", "aiff", "mp3", "mpg", "mpeg", "mp4", "m4a", "wav", "avi"]
:
56 | }
57 |
58 | private func load(
| `- note: add '@available' attribute to enclosing instance method
59 | attachment: MediaAttachmentPayload.ContentMedia,
60 | defaultOptions: MediaAttachmentPayload.PayloadOptions,
:
62 | ) async throws -> AirshipAttachment {
63 |
64 | try Task.checkCancellation()
| |- error: 'checkCancellation()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 |
66 | logger.debug("Downloading attachment \(attachment.url)")
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:72:13: error: 'Task' is only available in macOS 10.15 or newer
6 | #if !os(tvOS)
7 |
8 | final class AirshipNotificationMutationProvider: Sendable {
| `- note: add '@available' attribute to enclosing class
9 |
10 | static let supportedExtensions = ["jpg", "jpeg", "png", "gif", "aif", "aiff", "mp3", "mpg", "mpeg", "mp4", "m4a", "wav", "avi"]
:
56 | }
57 |
58 | private func load(
| `- note: add '@available' attribute to enclosing instance method
59 | attachment: MediaAttachmentPayload.ContentMedia,
60 | defaultOptions: MediaAttachmentPayload.PayloadOptions,
:
70 | logger.debug("Downloading attachment result: \(response)")
71 |
72 | try Task.checkCancellation()
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 |
74 | if let httpResponse = response as? HTTPURLResponse, !(200...299).contains(httpResponse.statusCode) {
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:72:18: error: 'checkCancellation()' is only available in macOS 10.15 or newer
6 | #if !os(tvOS)
7 |
8 | final class AirshipNotificationMutationProvider: Sendable {
| `- note: add '@available' attribute to enclosing class
9 |
10 | static let supportedExtensions = ["jpg", "jpeg", "png", "gif", "aif", "aiff", "mp3", "mpg", "mpeg", "mp4", "m4a", "wav", "avi"]
:
56 | }
57 |
58 | private func load(
| `- note: add '@available' attribute to enclosing instance method
59 | attachment: MediaAttachmentPayload.ContentMedia,
60 | defaultOptions: MediaAttachmentPayload.PayloadOptions,
:
70 | logger.debug("Downloading attachment result: \(response)")
71 |
72 | try Task.checkCancellation()
| |- error: 'checkCancellation()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 |
74 | if let httpResponse = response as? HTTPURLResponse, !(200...299).contains(httpResponse.statusCode) {
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:111:28: error: 'UNNotificationAttachmentOptionsTypeHintKey' is only available in macOS 10.14 or newer
6 | #if !os(tvOS)
7 |
8 | final class AirshipNotificationMutationProvider: Sendable {
| `- note: add '@available' attribute to enclosing class
9 |
10 | static let supportedExtensions = ["jpg", "jpeg", "png", "gif", "aif", "aiff", "mp3", "mpg", "mpeg", "mp4", "m4a", "wav", "avi"]
:
93 | }
94 |
95 | private func makeAttachement(
| `- note: add '@available' attribute to enclosing instance method
96 | localURL: URL,
97 | remoteURL: URL,
:
109 |
110 | if !hasExtension, let hint = hintMimeType(for: fileURL, mimeType: mimeType) {
111 | mutableOptions[UNNotificationAttachmentOptionsTypeHintKey] = hint
| |- error: 'UNNotificationAttachmentOptionsTypeHintKey' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
112 | }
113 |
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:120:23: error: 'UTType' is only available in macOS 11.0 or newer
6 | #if !os(tvOS)
7 |
8 | final class AirshipNotificationMutationProvider: Sendable {
| `- note: add '@available' attribute to enclosing class
9 |
10 | static let supportedExtensions = ["jpg", "jpeg", "png", "gif", "aif", "aiff", "mp3", "mpg", "mpeg", "mp4", "m4a", "wav", "avi"]
:
115 | }
116 |
117 | private func hintMimeType(for file: URL, mimeType: String?) -> String? {
| `- note: add '@available' attribute to enclosing instance method
118 | if
119 | let type = mimeType,
120 | let uti = UTType(mimeType: type),
| |- error: 'UTType' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
121 | let fileExtension = uti.preferredFilenameExtension,
122 | Self.supportedExtensions.contains(fileExtension) {
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:120:23: error: 'init(mimeType:conformingTo:)' is only available in macOS 11.0 or newer
6 | #if !os(tvOS)
7 |
8 | final class AirshipNotificationMutationProvider: Sendable {
| `- note: add '@available' attribute to enclosing class
9 |
10 | static let supportedExtensions = ["jpg", "jpeg", "png", "gif", "aif", "aiff", "mp3", "mpg", "mpeg", "mp4", "m4a", "wav", "avi"]
:
115 | }
116 |
117 | private func hintMimeType(for file: URL, mimeType: String?) -> String? {
| `- note: add '@available' attribute to enclosing instance method
118 | if
119 | let type = mimeType,
120 | let uti = UTType(mimeType: type),
| |- error: 'init(mimeType:conformingTo:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
121 | let fileExtension = uti.preferredFilenameExtension,
122 | Self.supportedExtensions.contains(fileExtension) {
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:121:37: error: 'preferredFilenameExtension' is only available in macOS 11.0 or newer
6 | #if !os(tvOS)
7 |
8 | final class AirshipNotificationMutationProvider: Sendable {
| `- note: add '@available' attribute to enclosing class
9 |
10 | static let supportedExtensions = ["jpg", "jpeg", "png", "gif", "aif", "aiff", "mp3", "mpg", "mpeg", "mp4", "m4a", "wav", "avi"]
:
115 | }
116 |
117 | private func hintMimeType(for file: URL, mimeType: String?) -> String? {
| `- note: add '@available' attribute to enclosing instance method
118 | if
119 | let type = mimeType,
120 | let uti = UTType(mimeType: type),
121 | let fileExtension = uti.preferredFilenameExtension,
| |- error: 'preferredFilenameExtension' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
122 | Self.supportedExtensions.contains(fileExtension) {
123 | return uti.identifier
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:123:24: error: 'identifier' is only available in macOS 11.0 or newer
6 | #if !os(tvOS)
7 |
8 | final class AirshipNotificationMutationProvider: Sendable {
| `- note: add '@available' attribute to enclosing class
9 |
10 | static let supportedExtensions = ["jpg", "jpeg", "png", "gif", "aif", "aiff", "mp3", "mpg", "mpeg", "mp4", "m4a", "wav", "avi"]
:
115 | }
116 |
117 | private func hintMimeType(for file: URL, mimeType: String?) -> String? {
| `- note: add '@available' attribute to enclosing instance method
118 | if
119 | let type = mimeType,
:
121 | let fileExtension = uti.preferredFilenameExtension,
122 | Self.supportedExtensions.contains(fileExtension) {
123 | return uti.identifier
| |- error: 'identifier' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
124 | }
125 |
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:152:34: error: 'download(from:delegate:)' is only available in macOS 12.0 or newer
6 | #if !os(tvOS)
7 |
8 | final class AirshipNotificationMutationProvider: Sendable {
| `- note: add '@available' attribute to enclosing class
9 |
10 | static let supportedExtensions = ["jpg", "jpeg", "png", "gif", "aif", "aiff", "mp3", "mpg", "mpeg", "mp4", "m4a", "wav", "avi"]
:
142 | }
143 |
144 | private func download(url: URL) async throws -> (URL, URLResponse) {
| `- note: add '@available' attribute to enclosing instance method
145 | let session = URLSession(
146 | configuration: .default,
:
150 | defer { session.finishTasksAndInvalidate() }
151 |
152 | 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
153 | }
154 |
/Users/admin/builder/spi-builder-workspace/AirshipExtensions/AirshipNotificationServiceExtension/Source/AirshipNotificationMutationProvider.swift:245:17: error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
236 |
237 |
238 | struct AirshipAttachment: Sendable {
| `- note: add '@available' attribute to enclosing struct
239 | var identifier: String
240 | var url: URL
241 | var options: [String : any Sendable]
242 |
243 | var notificationAttachment: UNNotificationAttachment {
| `- note: add '@available' attribute to enclosing property
244 | get throws {
245 | try UNNotificationAttachment(
| |- error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
246 | identifier: self.identifier,
247 | url: self.url,
[93/130] 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 | }
warning: 'spi-builder-workspace': Invalid Exclude '/Users/admin/builder/spi-builder-workspace/Airship/AirshipFoundationModels/Tests': File not found.
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 14 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Airship/AirshipBasement/Tests/Utils/AirshipDateFormatterTest.swift
/Users/admin/builder/spi-builder-workspace/Airship/AirshipBasement/Tests/Utils/AirshipColorTests.swift
/Users/admin/builder/spi-builder-workspace/Airship/AirshipBasement/Tests/Json/Predicate/JSONPredicateTest.swift
/Users/admin/builder/spi-builder-workspace/Airship/AirshipBasement/Tests/UI/AirshipImageDataTest.swift
/Users/admin/builder/spi-builder-workspace/Airship/AirshipBasement/Tests/Json/Predicate/JsonMatcherTest.swift
/Users/admin/builder/spi-builder-workspace/Airship/AirshipBasement/Tests/Utils/AirshipObservableTimerTest.swift
/Users/admin/builder/spi-builder-workspace/Airship/AirshipBasement/Tests/Utils/DefaultTaskSleeperTest.swift
/Users/admin/builder/spi-builder-workspace/Airship/AirshipBasement/Tests/Json/Predicate/JsonValueMatcherTest.swift
/Users/admin/builder/spi-builder-workspace/Airship/AirshipBasement/Tests/App State/AppStateTrackerTest.swift
/Users/admin/builder/spi-builder-workspace/Airship/AirshipBasement/Tests/Json/Predicate/AirshipIvyVersionMatcherTest.swift
/Users/admin/builder/spi-builder-workspace/Airship/AirshipBasement/Tests/Utils/AirshipDate.swift
/Users/admin/builder/spi-builder-workspace/Airship/AirshipBasement/Tests/Utils/AishipFontTests.swift
/Users/admin/builder/spi-builder-workspace/Airship/AirshipBasement/Tests/Json/AirshipJSONTest.swift
/Users/admin/builder/spi-builder-workspace/Airship/AirshipBasement/Tests/Utils/AirshipVersionUtilsTest.swift
BUILD FAILURE 6.2 macosSpm