The Swift Package Index logo.Swift Package Index

Build Information

Failed to build mParticle-Iterable, reference v9.7.5 (a43c73), with Swift 6.1 for macOS (SPM) on 8 Nov 2026 07:02:03 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mparticle-integrations/mparticle-apple-integration-iterable-6.git
Reference: v9.7.5
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mparticle-integrations/mparticle-apple-integration-iterable-6
 * tag               v9.7.5     -> FETCH_HEAD
HEAD is now at a43c73a chore: Release v9.7.5 (#1203)
Cloned https://github.com/mparticle-integrations/mparticle-apple-integration-iterable-6.git
Revision (git rev-parse @):
a43c73a48631520215e4eb26ed2923835f50434a
SUCCESS checkout https://github.com/mparticle-integrations/mparticle-apple-integration-iterable-6.git at v9.7.5
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/mparticle-integrations/mparticle-apple-integration-iterable-6.git
https://github.com/mparticle-integrations/mparticle-apple-integration-iterable-6.git
{
  "dependencies" : [
    {
      "identity" : "mparticle-apple-sdk",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "9.0.0",
            "upper_bound" : "10.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/mParticle/mparticle-apple-sdk"
    },
    {
      "identity" : "swift-sdk",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "6.5.2",
            "upper_bound" : "7.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Iterable/swift-sdk"
    }
  ],
  "manifest_display_name" : "mParticle-Iterable",
  "name" : "mParticle-Iterable",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "mParticle-Iterable",
      "targets" : [
        "mParticle-Iterable"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "mParticle_IterableTests",
      "module_type" : "SwiftTarget",
      "name" : "mParticle-IterableTests",
      "path" : "Tests/mParticle-IterableTests",
      "sources" : [
        "MPKitIterableTests.swift"
      ],
      "target_dependencies" : [
        "mParticle-Iterable"
      ],
      "type" : "test"
    },
    {
      "c99name" : "mParticle_Iterable",
      "module_type" : "ClangTarget",
      "name" : "mParticle-Iterable",
      "path" : "Sources/mParticle-Iterable",
      "product_dependencies" : [
        "mParticle-Apple-SDK",
        "IterableSDK",
        "IterableAppExtensions"
      ],
      "product_memberships" : [
        "mParticle-Iterable"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/mParticle-Iterable/PrivacyInfo.xcprivacy",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "IterableMPHelper.m",
        "MPKitIterable.m"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/59] Write sources
[4/59] Copying anoncriteria_response.json
[4/59] Write sources
[4/59] Copying PrivacyInfo.xcprivacy
[4/59] Copying SampleInboxCell.xib
[7/59] Copying PrivacyInfo.xcprivacy
[8/59] Copying IterableEmbeddedView.xib
[10/59] Copying IterableDataModel.xcdatamodeld
[11/59] Copying Assets.xcassets
[12/59] Write swift-version-2F0A5646E1D333AE.txt
[14/325] Compiling RoktContracts RoktEmbeddedView.swift
[15/325] Compiling RoktContracts PaymentExtension.swift
[16/325] Compiling RoktContracts PaymentTypes.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[17/325] Compiling IterableAppExtensions TestFile.swift
[18/325] Compiling IterableAppExtensions NotificationExtensionConstants.swift
[19/325] Emitting module IterableAppExtensions
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:8:51: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
  5 | import UserNotifications
  6 |
  7 | public protocol ITBNotificationServiceExtensionDelegate {
    |                 `- note: add @available attribute to enclosing protocol
  8 |     func notificationServiceDidReceive(_ request: UNNotificationRequest, bestAttemptContent: UNMutableNotificationContent, contentHandler: @escaping (UNNotificationContent) -> Void)
    |          |                                        `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
    |          `- note: add @available attribute to enclosing instance method
  9 | }
 10 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:8:94: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
  5 | import UserNotifications
  6 |
  7 | public protocol ITBNotificationServiceExtensionDelegate {
    |                 `- note: add @available attribute to enclosing protocol
  8 |     func notificationServiceDidReceive(_ request: UNNotificationRequest, bestAttemptContent: UNMutableNotificationContent, contentHandler: @escaping (UNNotificationContent) -> Void)
    |          |                                                                                   `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
    |          `- note: add @available attribute to enclosing instance method
  9 | }
 10 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:8:151: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
  5 | import UserNotifications
  6 |
  7 | public protocol ITBNotificationServiceExtensionDelegate {
    |                 `- note: add @available attribute to enclosing protocol
  8 |     func notificationServiceDidReceive(_ request: UNNotificationRequest, bestAttemptContent: UNMutableNotificationContent, contentHandler: @escaping (UNNotificationContent) -> Void)
    |          |                                                                                                                                            `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
    |          `- note: add @available attribute to enclosing instance method
  9 | }
 10 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:12:27: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
    |                           `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
 13 |     var bestAttemptContent: UNMutableNotificationContent?
 14 |     public static var itblNotificationDelegate: ITBNotificationServiceExtensionDelegate?
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:13:29: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
    |                             `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
 14 |     public static var itblNotificationDelegate: ITBNotificationServiceExtensionDelegate?
 15 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:16:52: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
 14 |     public static var itblNotificationDelegate: ITBNotificationServiceExtensionDelegate?
 15 |
 16 |     @objc override open func didReceive(_ request: UNNotificationRequest,
    |                              |                     `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
    |                              `- note: add @available attribute to enclosing instance method
 17 |                                         withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
 18 |         self.contentHandler = contentHandler
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:17:87: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
 14 |     public static var itblNotificationDelegate: ITBNotificationServiceExtensionDelegate?
 15 |
 16 |     @objc override open func didReceive(_ request: UNNotificationRequest,
    |                              `- note: add @available attribute to enclosing instance method
 17 |                                         withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
    |                                                                                       `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
 18 |         self.contentHandler = contentHandler
 19 |         bestAttemptContent = (request.content.mutableCopy() as? UNMutableNotificationContent)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:54:51: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
    :
 52 |     // MARK: - Private
 53 |
 54 |     private func retrieveAttachment(from content: UNNotificationContent) {
    |                  |                                `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
    |                  `- note: add @available attribute to enclosing instance method
 55 |         guard let metadata = NotificationContentParser.getIterableMetadata(from: content),
 56 |               let attachmentUrlString = metadata[JsonKey.Payload.attachmentUrl] as? String,
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:108:48: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
    :
106 |     /// and add this newly created category to list of system categories.
107 |     /// After that we set `categoryId` to messageId.
108 |     private func resolveCategory(from content: UNNotificationContent) {
    |                  |                             `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
    |                  `- note: add @available attribute to enclosing instance method
109 |         guard content.categoryIdentifier.count == 0 else {
110 |             setCategoryId(id: content.categoryIdentifier)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:126:50: error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
    :
124 |     }
125 |
126 |     private static func createCategory(category: UNNotificationCategory, afterCategoryCreated: (() -> Void)?) {
    |                         |                        `- error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
    |                         `- note: add @available attribute to enclosing static method
127 |         UNUserNotificationCenter.current().getNotificationCategories { categories in
128 |             var newCategories = categories
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:180:34: error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
    :
178 |     }
179 |
180 |     private var messageCategory: UNNotificationCategory?
    |                                  `- error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
181 |     private var attachmentDownloadTask: URLSessionDownloadTask?
182 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:11:51: error: 'UNNotificationServiceExtension' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  |                                `- error: 'UNNotificationServiceExtension' is only available in macOS 10.14 or newer
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:9:51: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
    |                 |                                 `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
    |                 `- note: add @available attribute to enclosing static method
 10 |         getIterableMetadata(from: content.userInfo)
 11 |     }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:13:52: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
 11 |     }
 12 |
 13 |     static func getIterableMessageId(from content: UNNotificationContent) -> String? {
    |                 |                                  `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
    |                 `- note: add @available attribute to enclosing static method
 14 |         guard let metadata = getIterableMetadata(from: content) else {
 15 |             return nil
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:21:54: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
    :
 19 |     }
 20 |
 21 |     static func getNotificationActions(from content: UNNotificationContent) -> [UNNotificationAction] {
    |                 |                                    `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
    |                 `- note: add @available attribute to enclosing static method
 22 |         getActionButtonsJsonArray(from: content)
 23 |             .compactMap { createNotificationActionButton(from: $0) }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:21:81: error: 'UNNotificationAction' is only available in macOS 10.14 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
    :
 19 |     }
 20 |
 21 |     static func getNotificationActions(from content: UNNotificationContent) -> [UNNotificationAction] {
    |                 |                                                               `- error: 'UNNotificationAction' is only available in macOS 10.14 or newer
    |                 `- note: add @available attribute to enclosing static method
 22 |         getActionButtonsJsonArray(from: content)
 23 |             .compactMap { createNotificationActionButton(from: $0) }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:26:65: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
    :
 24 |     }
 25 |
 26 |     private static func getActionButtonsJsonArray(from content: UNNotificationContent) -> [[AnyHashable: Any]] {
    |                         |                                       `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
    |                         `- note: add @available attribute to enclosing static method
 27 |         var jsonArray: [[AnyHashable: Any]] = []
 28 |         if let metadata = getIterableMetadata(from: content),
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:60:90: error: 'UNNotificationAction' is only available in macOS 10.14 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
    :
 58 |     }
 59 |
 60 |     private static func createNotificationActionButton(from json: [AnyHashable: Any]) -> UNNotificationAction? {
    |                         |                                                                `- error: 'UNNotificationAction' is only available in macOS 10.14 or newer
    |                         `- note: add @available attribute to enclosing static method
 61 |         guard let button = createActionButton(from: json) else {
 62 |             return nil
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:122:77: error: 'UNNotificationActionOptions' is only available in macOS 10.14 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
    :
120 |     }
121 |
122 |     private static func getOptions(forActionButton button: ActionButton) -> UNNotificationActionOptions {
    |                         |                                                   `- error: 'UNNotificationActionOptions' is only available in macOS 10.14 or newer
    |                         `- note: add @available attribute to enclosing static method
123 |         var options: UNNotificationActionOptions = []
124 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:141:86: error: 'UNNotificationActionIcon' is only available in macOS 12.0 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
    :
139 |
140 |     @available(iOS 15.0, *)
141 |     private static func getNotificationIcon(forActionButton button: ActionButton) -> UNNotificationActionIcon? {
    |                         |                                                            `- error: 'UNNotificationActionIcon' is only available in macOS 12.0 or newer
    |                         `- note: add @available attribute to enclosing static method
142 |         guard let actionIcon = button.actionIcon else {
143 |             return nil
[20/325] Compiling IterableAppExtensions NotificationContentParser.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:9:51: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
    |                 |                                 `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
    |                 `- note: add @available attribute to enclosing static method
 10 |         getIterableMetadata(from: content.userInfo)
 11 |     }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:13:52: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
 11 |     }
 12 |
 13 |     static func getIterableMessageId(from content: UNNotificationContent) -> String? {
    |                 |                                  `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
    |                 `- note: add @available attribute to enclosing static method
 14 |         guard let metadata = getIterableMetadata(from: content) else {
 15 |             return nil
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:21:54: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
    :
 19 |     }
 20 |
 21 |     static func getNotificationActions(from content: UNNotificationContent) -> [UNNotificationAction] {
    |                 |                                    `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
    |                 `- note: add @available attribute to enclosing static method
 22 |         getActionButtonsJsonArray(from: content)
 23 |             .compactMap { createNotificationActionButton(from: $0) }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:21:81: error: 'UNNotificationAction' is only available in macOS 10.14 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
    :
 19 |     }
 20 |
 21 |     static func getNotificationActions(from content: UNNotificationContent) -> [UNNotificationAction] {
    |                 |                                                               `- error: 'UNNotificationAction' is only available in macOS 10.14 or newer
    |                 `- note: add @available attribute to enclosing static method
 22 |         getActionButtonsJsonArray(from: content)
 23 |             .compactMap { createNotificationActionButton(from: $0) }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:26:65: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
    :
 24 |     }
 25 |
 26 |     private static func getActionButtonsJsonArray(from content: UNNotificationContent) -> [[AnyHashable: Any]] {
    |                         |                                       `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
    |                         `- note: add @available attribute to enclosing static method
 27 |         var jsonArray: [[AnyHashable: Any]] = []
 28 |         if let metadata = getIterableMetadata(from: content),
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:60:90: error: 'UNNotificationAction' is only available in macOS 10.14 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
    :
 58 |     }
 59 |
 60 |     private static func createNotificationActionButton(from json: [AnyHashable: Any]) -> UNNotificationAction? {
    |                         |                                                                `- error: 'UNNotificationAction' is only available in macOS 10.14 or newer
    |                         `- note: add @available attribute to enclosing static method
 61 |         guard let button = createActionButton(from: json) else {
 62 |             return nil
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:122:77: error: 'UNNotificationActionOptions' is only available in macOS 10.14 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
    :
120 |     }
121 |
122 |     private static func getOptions(forActionButton button: ActionButton) -> UNNotificationActionOptions {
    |                         |                                                   `- error: 'UNNotificationActionOptions' is only available in macOS 10.14 or newer
    |                         `- note: add @available attribute to enclosing static method
123 |         var options: UNNotificationActionOptions = []
124 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:141:86: error: 'UNNotificationActionIcon' is only available in macOS 12.0 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
    :
139 |
140 |     @available(iOS 15.0, *)
141 |     private static func getNotificationIcon(forActionButton button: ActionButton) -> UNNotificationActionIcon? {
    |                         |                                                            `- error: 'UNNotificationActionIcon' is only available in macOS 12.0 or newer
    |                         `- note: add @available attribute to enclosing static method
142 |         guard let actionIcon = button.actionIcon else {
143 |             return nil
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:67:24: error: 'UNTextInputNotificationAction' is only available in macOS 10.14 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
    :
 58 |     }
 59 |
 60 |     private static func createNotificationActionButton(from json: [AnyHashable: Any]) -> UNNotificationAction? {
    |                         `- note: add @available attribute to enclosing static method
 61 |         guard let button = createActionButton(from: json) else {
 62 |             return nil
    :
 65 |         if button.buttonType == .textInput {
 66 |             if #available(iOS 15.0, *) {
 67 |                 return UNTextInputNotificationAction(identifier: button.identifier,
    |                        |- error: 'UNTextInputNotificationAction' is only available in macOS 10.14 or newer
    |                        `- note: add 'if #available' version check
 68 |                                                      title: button.title,
 69 |                                                      options: getOptions(forActionButton: button),
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:67:24: error: 'init(identifier:title:options:icon:textInputButtonTitle:textInputPlaceholder:)' is only available in macOS 12.0 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
    :
 58 |     }
 59 |
 60 |     private static func createNotificationActionButton(from json: [AnyHashable: Any]) -> UNNotificationAction? {
    |                         `- note: add @available attribute to enclosing static method
 61 |         guard let button = createActionButton(from: json) else {
 62 |             return nil
    :
 65 |         if button.buttonType == .textInput {
 66 |             if #available(iOS 15.0, *) {
 67 |                 return UNTextInputNotificationAction(identifier: button.identifier,
    |                        |- error: 'init(identifier:title:options:icon:textInputButtonTitle:textInputPlaceholder:)' is only available in macOS 12.0 or newer
    |                        `- note: add 'if #available' version check
 68 |                                                      title: button.title,
 69 |                                                      options: getOptions(forActionButton: button),
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:82:24: error: 'UNNotificationAction' is only available in macOS 10.14 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
    :
 58 |     }
 59 |
 60 |     private static func createNotificationActionButton(from json: [AnyHashable: Any]) -> UNNotificationAction? {
    |                         `- note: add @available attribute to enclosing static method
 61 |         guard let button = createActionButton(from: json) else {
 62 |             return nil
    :
 80 |         } else {
 81 |             if #available(iOS 15.0, *) {
 82 |                 return UNNotificationAction(identifier: button.identifier,
    |                        |- error: 'UNNotificationAction' is only available in macOS 10.14 or newer
    |                        `- note: add 'if #available' version check
 83 |                                             title: button.title,
 84 |                                             options: getOptions(forActionButton: button),
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:82:24: error: 'init(identifier:title:options:icon:)' is only available in macOS 12.0 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
    :
 58 |     }
 59 |
 60 |     private static func createNotificationActionButton(from json: [AnyHashable: Any]) -> UNNotificationAction? {
    |                         `- note: add @available attribute to enclosing static method
 61 |         guard let button = createActionButton(from: json) else {
 62 |             return nil
    :
 80 |         } else {
 81 |             if #available(iOS 15.0, *) {
 82 |                 return UNNotificationAction(identifier: button.identifier,
    |                        |- error: 'init(identifier:title:options:icon:)' is only available in macOS 12.0 or newer
    |                        `- note: add 'if #available' version check
 83 |                                             title: button.title,
 84 |                                             options: getOptions(forActionButton: button),
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:123:22: error: 'UNNotificationActionOptions' is only available in macOS 10.14 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
    :
120 |     }
121 |
122 |     private static func getOptions(forActionButton button: ActionButton) -> UNNotificationActionOptions {
    |                         `- note: add @available attribute to enclosing static method
123 |         var options: UNNotificationActionOptions = []
    |                      |- error: 'UNNotificationActionOptions' is only available in macOS 10.14 or newer
    |                      `- note: add 'if #available' version check
124 |
125 |         if button.buttonType == ButtonType.destructive {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:146:20: error: 'UNNotificationActionIcon' is only available in macOS 12.0 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
    :
139 |
140 |     @available(iOS 15.0, *)
141 |     private static func getNotificationIcon(forActionButton button: ActionButton) -> UNNotificationActionIcon? {
    |                         `- note: add @available attribute to enclosing static method
142 |         guard let actionIcon = button.actionIcon else {
143 |             return nil
144 |         }
145 |         if actionIcon.iconType == .systemImage {
146 |             return UNNotificationActionIcon(systemImageName: actionIcon.imageName)
    |                    |- error: 'UNNotificationActionIcon' is only available in macOS 12.0 or newer
    |                    `- note: add 'if #available' version check
147 |         } else {
148 |             return UNNotificationActionIcon(templateImageName: actionIcon.imageName)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:148:20: error: 'UNNotificationActionIcon' is only available in macOS 12.0 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
    :
139 |
140 |     @available(iOS 15.0, *)
141 |     private static func getNotificationIcon(forActionButton button: ActionButton) -> UNNotificationActionIcon? {
    |                         `- note: add @available attribute to enclosing static method
142 |         guard let actionIcon = button.actionIcon else {
143 |             return nil
    :
146 |             return UNNotificationActionIcon(systemImageName: actionIcon.imageName)
147 |         } else {
148 |             return UNNotificationActionIcon(templateImageName: actionIcon.imageName)
    |                    |- error: 'UNNotificationActionIcon' is only available in macOS 12.0 or newer
    |                    `- note: add 'if #available' version check
149 |         }
150 |     }
[21/325] Compiling IterableAppExtensions ITBNotificationServiceExtension.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:8:51: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
  5 | import UserNotifications
  6 |
  7 | public protocol ITBNotificationServiceExtensionDelegate {
    |                 `- note: add @available attribute to enclosing protocol
  8 |     func notificationServiceDidReceive(_ request: UNNotificationRequest, bestAttemptContent: UNMutableNotificationContent, contentHandler: @escaping (UNNotificationContent) -> Void)
    |          |                                        `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
    |          `- note: add @available attribute to enclosing instance method
  9 | }
 10 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:8:94: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
  5 | import UserNotifications
  6 |
  7 | public protocol ITBNotificationServiceExtensionDelegate {
    |                 `- note: add @available attribute to enclosing protocol
  8 |     func notificationServiceDidReceive(_ request: UNNotificationRequest, bestAttemptContent: UNMutableNotificationContent, contentHandler: @escaping (UNNotificationContent) -> Void)
    |          |                                                                                   `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
    |          `- note: add @available attribute to enclosing instance method
  9 | }
 10 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:8:151: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
  5 | import UserNotifications
  6 |
  7 | public protocol ITBNotificationServiceExtensionDelegate {
    |                 `- note: add @available attribute to enclosing protocol
  8 |     func notificationServiceDidReceive(_ request: UNNotificationRequest, bestAttemptContent: UNMutableNotificationContent, contentHandler: @escaping (UNNotificationContent) -> Void)
    |          |                                                                                                                                            `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
    |          `- note: add @available attribute to enclosing instance method
  9 | }
 10 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:12:27: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
    |                           `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
 13 |     var bestAttemptContent: UNMutableNotificationContent?
 14 |     public static var itblNotificationDelegate: ITBNotificationServiceExtensionDelegate?
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:13:29: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
    |                             `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
 14 |     public static var itblNotificationDelegate: ITBNotificationServiceExtensionDelegate?
 15 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:16:52: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
 14 |     public static var itblNotificationDelegate: ITBNotificationServiceExtensionDelegate?
 15 |
 16 |     @objc override open func didReceive(_ request: UNNotificationRequest,
    |                              |                     `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
    |                              `- note: add @available attribute to enclosing instance method
 17 |                                         withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
 18 |         self.contentHandler = contentHandler
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:17:87: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
 14 |     public static var itblNotificationDelegate: ITBNotificationServiceExtensionDelegate?
 15 |
 16 |     @objc override open func didReceive(_ request: UNNotificationRequest,
    |                              `- note: add @available attribute to enclosing instance method
 17 |                                         withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
    |                                                                                       `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
 18 |         self.contentHandler = contentHandler
 19 |         bestAttemptContent = (request.content.mutableCopy() as? UNMutableNotificationContent)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:54:51: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
    :
 52 |     // MARK: - Private
 53 |
 54 |     private func retrieveAttachment(from content: UNNotificationContent) {
    |                  |                                `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
    |                  `- note: add @available attribute to enclosing instance method
 55 |         guard let metadata = NotificationContentParser.getIterableMetadata(from: content),
 56 |               let attachmentUrlString = metadata[JsonKey.Payload.attachmentUrl] as? String,
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:108:48: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
    :
106 |     /// and add this newly created category to list of system categories.
107 |     /// After that we set `categoryId` to messageId.
108 |     private func resolveCategory(from content: UNNotificationContent) {
    |                  |                             `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
    |                  `- note: add @available attribute to enclosing instance method
109 |         guard content.categoryIdentifier.count == 0 else {
110 |             setCategoryId(id: content.categoryIdentifier)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:126:50: error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
    :
124 |     }
125 |
126 |     private static func createCategory(category: UNNotificationCategory, afterCategoryCreated: (() -> Void)?) {
    |                         |                        `- error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
    |                         `- note: add @available attribute to enclosing static method
127 |         UNUserNotificationCenter.current().getNotificationCategories { categories in
128 |             var newCategories = categories
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:180:34: error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
    :
178 |     }
179 |
180 |     private var messageCategory: UNNotificationCategory?
    |                                  `- error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
181 |     private var attachmentDownloadTask: URLSessionDownloadTask?
182 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:11:51: error: 'UNNotificationServiceExtension' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  |                                `- error: 'UNNotificationServiceExtension' is only available in macOS 10.14 or newer
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:19:65: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
 14 |     public static var itblNotificationDelegate: ITBNotificationServiceExtensionDelegate?
 15 |
 16 |     @objc override open func didReceive(_ request: UNNotificationRequest,
    |                              `- note: add @available attribute to enclosing instance method
 17 |                                         withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
 18 |         self.contentHandler = contentHandler
 19 |         bestAttemptContent = (request.content.mutableCopy() as? UNMutableNotificationContent)
    |                                                                 |- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
    |                                                                 `- note: add 'if #available' version check
 20 |
 21 |         if let itblNotificationDelegate = ITBNotificationServiceExtension.itblNotificationDelegate,
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:79:29: error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
    :
 66 |     }
 67 |
 68 |     private func createAttachmentDownloadTask(url: URL) -> URLSessionDownloadTask {
    |                  `- note: add @available attribute to enclosing instance method
 69 |         return URLSession.shared.downloadTask(with: url) { [weak self] location, response, error in
 70 |             guard let strongSelf = self, error == nil, let response = response, let responseUrl = response.url, let location = location else {
    :
 77 |             let tempFileUrl = FileManager.default.temporaryDirectory.appendingPathComponent(attachmentId)
 78 |
 79 |             var attachment: UNNotificationAttachment?
    |                             |- error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
    |                             `- note: add 'if #available' version check
 80 |
 81 |             do {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:83:34: error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
    :
 66 |     }
 67 |
 68 |     private func createAttachmentDownloadTask(url: URL) -> URLSessionDownloadTask {
    |                  `- note: add @available attribute to enclosing instance method
 69 |         return URLSession.shared.downloadTask(with: url) { [weak self] location, response, error in
 70 |             guard let strongSelf = self, error == nil, let response = response, let responseUrl = response.url, let location = location else {
    :
 81 |             do {
 82 |                 try FileManager.default.moveItem(at: location, to: tempFileUrl)
 83 |                 attachment = try UNNotificationAttachment(identifier: attachmentId, url: tempFileUrl, options: nil)
    |                                  |- error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
    |                                  `- note: add 'if #available' version check
 84 |             } catch {
 85 |                 self?.attachmentRetrievalFinished = true
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:118:24: error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
    :
106 |     /// and add this newly created category to list of system categories.
107 |     /// After that we set `categoryId` to messageId.
108 |     private func resolveCategory(from content: UNNotificationContent) {
    |                  `- note: add @available attribute to enclosing instance method
109 |         guard content.categoryIdentifier.count == 0 else {
110 |             setCategoryId(id: content.categoryIdentifier)
    :
116 |         }
117 |
118 |         let category = UNNotificationCategory(identifier: messageId,
    |                        |- error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
    |                        `- note: add 'if #available' version check
119 |                                               actions: NotificationContentParser.getNotificationActions(from: content),
120 |                                               intentIdentifiers: [],
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:127:9: error: 'UNUserNotificationCenter' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
    :
124 |     }
125 |
126 |     private static func createCategory(category: UNNotificationCategory, afterCategoryCreated: (() -> Void)?) {
    |                         `- note: add @available attribute to enclosing static method
127 |         UNUserNotificationCenter.current().getNotificationCategories { categories in
    |         |- error: 'UNUserNotificationCenter' is only available in macOS 10.14 or newer
    |         `- note: add 'if #available' version check
128 |             var newCategories = categories
129 |             newCategories.insert(category)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:130:13: error: 'UNUserNotificationCenter' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
    :
124 |     }
125 |
126 |     private static func createCategory(category: UNNotificationCategory, afterCategoryCreated: (() -> Void)?) {
    |                         `- note: add @available attribute to enclosing static method
127 |         UNUserNotificationCenter.current().getNotificationCategories { categories in
128 |             var newCategories = categories
129 |             newCategories.insert(category)
130 |             UNUserNotificationCenter.current().setNotificationCategories(newCategories)
    |             |- error: 'UNUserNotificationCenter' is only available in macOS 10.14 or newer
    |             `- note: add 'if #available' version check
131 |             afterCategoryCreated?()
132 |         }
[22/325] Compiling RoktContracts RoktPlacementOptions.swift
[23/325] Emitting module RoktContracts
[24/325] Compiling RoktContracts RoktConfig.swift
Fetching https://github.com/mParticle/mparticle-apple-sdk
Fetching https://github.com/Iterable/swift-sdk
[1/71648] Fetching mparticle-apple-sdk
[2/107160] Fetching mparticle-apple-sdk, swift-sdk
Fetched https://github.com/Iterable/swift-sdk from cache (23.30s)
Fetched https://github.com/mParticle/mparticle-apple-sdk from cache (23.30s)
Computing version for https://github.com/mParticle/mparticle-apple-sdk
Computed https://github.com/mParticle/mparticle-apple-sdk at 9.7.5 (23.88s)
Fetching https://github.com/ROKT/rokt-contracts-apple.git
[1/426] Fetching rokt-contracts-apple
Fetched https://github.com/ROKT/rokt-contracts-apple.git from cache (0.80s)
Computing version for https://github.com/ROKT/rokt-contracts-apple.git
Computed https://github.com/ROKT/rokt-contracts-apple.git at 2.0.2 (1.26s)
Computing version for https://github.com/Iterable/swift-sdk
Computed https://github.com/Iterable/swift-sdk at 6.7.5 (0.55s)
Creating working copy for https://github.com/Iterable/swift-sdk
Working copy of https://github.com/Iterable/swift-sdk resolved at 6.7.5
Creating working copy for https://github.com/ROKT/rokt-contracts-apple.git
Working copy of https://github.com/ROKT/rokt-contracts-apple.git resolved at 2.0.2
Creating working copy for https://github.com/mParticle/mparticle-apple-sdk
Working copy of https://github.com/mParticle/mparticle-apple-sdk resolved at 9.7.5
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/47] Write swift-version-2F0A5646E1D333AE.txt
[2/313] Compiling IterableAppExtensions TestFile.swift
[3/313] Compiling RoktContracts RoktEmbeddedView.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/313] Compiling IterableAppExtensions NotificationExtensionConstants.swift
[5/313] Emitting module IterableAppExtensions
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:8:51: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
  5 | import UserNotifications
  6 |
  7 | public protocol ITBNotificationServiceExtensionDelegate {
    |                 `- note: add @available attribute to enclosing protocol
  8 |     func notificationServiceDidReceive(_ request: UNNotificationRequest, bestAttemptContent: UNMutableNotificationContent, contentHandler: @escaping (UNNotificationContent) -> Void)
    |          |                                        `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
    |          `- note: add @available attribute to enclosing instance method
  9 | }
 10 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:8:94: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
  5 | import UserNotifications
  6 |
  7 | public protocol ITBNotificationServiceExtensionDelegate {
    |                 `- note: add @available attribute to enclosing protocol
  8 |     func notificationServiceDidReceive(_ request: UNNotificationRequest, bestAttemptContent: UNMutableNotificationContent, contentHandler: @escaping (UNNotificationContent) -> Void)
    |          |                                                                                   `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
    |          `- note: add @available attribute to enclosing instance method
  9 | }
 10 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:8:151: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
  5 | import UserNotifications
  6 |
  7 | public protocol ITBNotificationServiceExtensionDelegate {
    |                 `- note: add @available attribute to enclosing protocol
  8 |     func notificationServiceDidReceive(_ request: UNNotificationRequest, bestAttemptContent: UNMutableNotificationContent, contentHandler: @escaping (UNNotificationContent) -> Void)
    |          |                                                                                                                                            `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
    |          `- note: add @available attribute to enclosing instance method
  9 | }
 10 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:12:27: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
    |                           `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
 13 |     var bestAttemptContent: UNMutableNotificationContent?
 14 |     public static var itblNotificationDelegate: ITBNotificationServiceExtensionDelegate?
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:13:29: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
    |                             `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
 14 |     public static var itblNotificationDelegate: ITBNotificationServiceExtensionDelegate?
 15 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:16:52: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
 14 |     public static var itblNotificationDelegate: ITBNotificationServiceExtensionDelegate?
 15 |
 16 |     @objc override open func didReceive(_ request: UNNotificationRequest,
    |                              |                     `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
    |                              `- note: add @available attribute to enclosing instance method
 17 |                                         withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
 18 |         self.contentHandler = contentHandler
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:17:87: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
 14 |     public static var itblNotificationDelegate: ITBNotificationServiceExtensionDelegate?
 15 |
 16 |     @objc override open func didReceive(_ request: UNNotificationRequest,
    |                              `- note: add @available attribute to enclosing instance method
 17 |                                         withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
    |                                                                                       `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
 18 |         self.contentHandler = contentHandler
 19 |         bestAttemptContent = (request.content.mutableCopy() as? UNMutableNotificationContent)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:54:51: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
    :
 52 |     // MARK: - Private
 53 |
 54 |     private func retrieveAttachment(from content: UNNotificationContent) {
    |                  |                                `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
    |                  `- note: add @available attribute to enclosing instance method
 55 |         guard let metadata = NotificationContentParser.getIterableMetadata(from: content),
 56 |               let attachmentUrlString = metadata[JsonKey.Payload.attachmentUrl] as? String,
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:108:48: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
    :
106 |     /// and add this newly created category to list of system categories.
107 |     /// After that we set `categoryId` to messageId.
108 |     private func resolveCategory(from content: UNNotificationContent) {
    |                  |                             `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
    |                  `- note: add @available attribute to enclosing instance method
109 |         guard content.categoryIdentifier.count == 0 else {
110 |             setCategoryId(id: content.categoryIdentifier)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:126:50: error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
    :
124 |     }
125 |
126 |     private static func createCategory(category: UNNotificationCategory, afterCategoryCreated: (() -> Void)?) {
    |                         |                        `- error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
    |                         `- note: add @available attribute to enclosing static method
127 |         UNUserNotificationCenter.current().getNotificationCategories { categories in
128 |             var newCategories = categories
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:180:34: error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
    :
178 |     }
179 |
180 |     private var messageCategory: UNNotificationCategory?
    |                                  `- error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
181 |     private var attachmentDownloadTask: URLSessionDownloadTask?
182 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:11:51: error: 'UNNotificationServiceExtension' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  |                                `- error: 'UNNotificationServiceExtension' is only available in macOS 10.14 or newer
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:9:51: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
    |                 |                                 `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
    |                 `- note: add @available attribute to enclosing static method
 10 |         getIterableMetadata(from: content.userInfo)
 11 |     }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:13:52: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
 11 |     }
 12 |
 13 |     static func getIterableMessageId(from content: UNNotificationContent) -> String? {
    |                 |                                  `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
    |                 `- note: add @available attribute to enclosing static method
 14 |         guard let metadata = getIterableMetadata(from: content) else {
 15 |             return nil
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:21:54: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
    :
 19 |     }
 20 |
 21 |     static func getNotificationActions(from content: UNNotificationContent) -> [UNNotificationAction] {
    |                 |                                    `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
    |                 `- note: add @available attribute to enclosing static method
 22 |         getActionButtonsJsonArray(from: content)
 23 |             .compactMap { createNotificationActionButton(from: $0) }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:21:81: error: 'UNNotificationAction' is only available in macOS 10.14 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
    :
 19 |     }
 20 |
 21 |     static func getNotificationActions(from content: UNNotificationContent) -> [UNNotificationAction] {
    |                 |                                                               `- error: 'UNNotificationAction' is only available in macOS 10.14 or newer
    |                 `- note: add @available attribute to enclosing static method
 22 |         getActionButtonsJsonArray(from: content)
 23 |             .compactMap { createNotificationActionButton(from: $0) }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:26:65: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
    :
 24 |     }
 25 |
 26 |     private static func getActionButtonsJsonArray(from content: UNNotificationContent) -> [[AnyHashable: Any]] {
    |                         |                                       `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
    |                         `- note: add @available attribute to enclosing static method
 27 |         var jsonArray: [[AnyHashable: Any]] = []
 28 |         if let metadata = getIterableMetadata(from: content),
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:60:90: error: 'UNNotificationAction' is only available in macOS 10.14 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
    :
 58 |     }
 59 |
 60 |     private static func createNotificationActionButton(from json: [AnyHashable: Any]) -> UNNotificationAction? {
    |                         |                                                                `- error: 'UNNotificationAction' is only available in macOS 10.14 or newer
    |                         `- note: add @available attribute to enclosing static method
 61 |         guard let button = createActionButton(from: json) else {
 62 |             return nil
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:122:77: error: 'UNNotificationActionOptions' is only available in macOS 10.14 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
    :
120 |     }
121 |
122 |     private static func getOptions(forActionButton button: ActionButton) -> UNNotificationActionOptions {
    |                         |                                                   `- error: 'UNNotificationActionOptions' is only available in macOS 10.14 or newer
    |                         `- note: add @available attribute to enclosing static method
123 |         var options: UNNotificationActionOptions = []
124 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:141:86: error: 'UNNotificationActionIcon' is only available in macOS 12.0 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
    :
139 |
140 |     @available(iOS 15.0, *)
141 |     private static func getNotificationIcon(forActionButton button: ActionButton) -> UNNotificationActionIcon? {
    |                         |                                                            `- error: 'UNNotificationActionIcon' is only available in macOS 12.0 or newer
    |                         `- note: add @available attribute to enclosing static method
142 |         guard let actionIcon = button.actionIcon else {
143 |             return nil
[6/313] Compiling IterableAppExtensions ITBNotificationServiceExtension.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:8:51: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
  5 | import UserNotifications
  6 |
  7 | public protocol ITBNotificationServiceExtensionDelegate {
    |                 `- note: add @available attribute to enclosing protocol
  8 |     func notificationServiceDidReceive(_ request: UNNotificationRequest, bestAttemptContent: UNMutableNotificationContent, contentHandler: @escaping (UNNotificationContent) -> Void)
    |          |                                        `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
    |          `- note: add @available attribute to enclosing instance method
  9 | }
 10 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:8:94: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
  5 | import UserNotifications
  6 |
  7 | public protocol ITBNotificationServiceExtensionDelegate {
    |                 `- note: add @available attribute to enclosing protocol
  8 |     func notificationServiceDidReceive(_ request: UNNotificationRequest, bestAttemptContent: UNMutableNotificationContent, contentHandler: @escaping (UNNotificationContent) -> Void)
    |          |                                                                                   `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
    |          `- note: add @available attribute to enclosing instance method
  9 | }
 10 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:8:151: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
  5 | import UserNotifications
  6 |
  7 | public protocol ITBNotificationServiceExtensionDelegate {
    |                 `- note: add @available attribute to enclosing protocol
  8 |     func notificationServiceDidReceive(_ request: UNNotificationRequest, bestAttemptContent: UNMutableNotificationContent, contentHandler: @escaping (UNNotificationContent) -> Void)
    |          |                                                                                                                                            `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
    |          `- note: add @available attribute to enclosing instance method
  9 | }
 10 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:12:27: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
    |                           `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
 13 |     var bestAttemptContent: UNMutableNotificationContent?
 14 |     public static var itblNotificationDelegate: ITBNotificationServiceExtensionDelegate?
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:13:29: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
    |                             `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
 14 |     public static var itblNotificationDelegate: ITBNotificationServiceExtensionDelegate?
 15 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:16:52: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
 14 |     public static var itblNotificationDelegate: ITBNotificationServiceExtensionDelegate?
 15 |
 16 |     @objc override open func didReceive(_ request: UNNotificationRequest,
    |                              |                     `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
    |                              `- note: add @available attribute to enclosing instance method
 17 |                                         withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
 18 |         self.contentHandler = contentHandler
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:17:87: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
 14 |     public static var itblNotificationDelegate: ITBNotificationServiceExtensionDelegate?
 15 |
 16 |     @objc override open func didReceive(_ request: UNNotificationRequest,
    |                              `- note: add @available attribute to enclosing instance method
 17 |                                         withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
    |                                                                                       `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
 18 |         self.contentHandler = contentHandler
 19 |         bestAttemptContent = (request.content.mutableCopy() as? UNMutableNotificationContent)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:54:51: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
    :
 52 |     // MARK: - Private
 53 |
 54 |     private func retrieveAttachment(from content: UNNotificationContent) {
    |                  |                                `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
    |                  `- note: add @available attribute to enclosing instance method
 55 |         guard let metadata = NotificationContentParser.getIterableMetadata(from: content),
 56 |               let attachmentUrlString = metadata[JsonKey.Payload.attachmentUrl] as? String,
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:108:48: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
    :
106 |     /// and add this newly created category to list of system categories.
107 |     /// After that we set `categoryId` to messageId.
108 |     private func resolveCategory(from content: UNNotificationContent) {
    |                  |                             `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
    |                  `- note: add @available attribute to enclosing instance method
109 |         guard content.categoryIdentifier.count == 0 else {
110 |             setCategoryId(id: content.categoryIdentifier)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:126:50: error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
    :
124 |     }
125 |
126 |     private static func createCategory(category: UNNotificationCategory, afterCategoryCreated: (() -> Void)?) {
    |                         |                        `- error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
    |                         `- note: add @available attribute to enclosing static method
127 |         UNUserNotificationCenter.current().getNotificationCategories { categories in
128 |             var newCategories = categories
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:180:34: error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
    :
178 |     }
179 |
180 |     private var messageCategory: UNNotificationCategory?
    |                                  `- error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
181 |     private var attachmentDownloadTask: URLSessionDownloadTask?
182 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:11:51: error: 'UNNotificationServiceExtension' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  |                                `- error: 'UNNotificationServiceExtension' is only available in macOS 10.14 or newer
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:19:65: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
 14 |     public static var itblNotificationDelegate: ITBNotificationServiceExtensionDelegate?
 15 |
 16 |     @objc override open func didReceive(_ request: UNNotificationRequest,
    |                              `- note: add @available attribute to enclosing instance method
 17 |                                         withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
 18 |         self.contentHandler = contentHandler
 19 |         bestAttemptContent = (request.content.mutableCopy() as? UNMutableNotificationContent)
    |                                                                 |- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
    |                                                                 `- note: add 'if #available' version check
 20 |
 21 |         if let itblNotificationDelegate = ITBNotificationServiceExtension.itblNotificationDelegate,
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:79:29: error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
    :
 66 |     }
 67 |
 68 |     private func createAttachmentDownloadTask(url: URL) -> URLSessionDownloadTask {
    |                  `- note: add @available attribute to enclosing instance method
 69 |         return URLSession.shared.downloadTask(with: url) { [weak self] location, response, error in
 70 |             guard let strongSelf = self, error == nil, let response = response, let responseUrl = response.url, let location = location else {
    :
 77 |             let tempFileUrl = FileManager.default.temporaryDirectory.appendingPathComponent(attachmentId)
 78 |
 79 |             var attachment: UNNotificationAttachment?
    |                             |- error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
    |                             `- note: add 'if #available' version check
 80 |
 81 |             do {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:83:34: error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
    :
 66 |     }
 67 |
 68 |     private func createAttachmentDownloadTask(url: URL) -> URLSessionDownloadTask {
    |                  `- note: add @available attribute to enclosing instance method
 69 |         return URLSession.shared.downloadTask(with: url) { [weak self] location, response, error in
 70 |             guard let strongSelf = self, error == nil, let response = response, let responseUrl = response.url, let location = location else {
    :
 81 |             do {
 82 |                 try FileManager.default.moveItem(at: location, to: tempFileUrl)
 83 |                 attachment = try UNNotificationAttachment(identifier: attachmentId, url: tempFileUrl, options: nil)
    |                                  |- error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
    |                                  `- note: add 'if #available' version check
 84 |             } catch {
 85 |                 self?.attachmentRetrievalFinished = true
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:118:24: error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
    :
106 |     /// and add this newly created category to list of system categories.
107 |     /// After that we set `categoryId` to messageId.
108 |     private func resolveCategory(from content: UNNotificationContent) {
    |                  `- note: add @available attribute to enclosing instance method
109 |         guard content.categoryIdentifier.count == 0 else {
110 |             setCategoryId(id: content.categoryIdentifier)
    :
116 |         }
117 |
118 |         let category = UNNotificationCategory(identifier: messageId,
    |                        |- error: 'UNNotificationCategory' is only available in macOS 10.14 or newer
    |                        `- note: add 'if #available' version check
119 |                                               actions: NotificationContentParser.getNotificationActions(from: content),
120 |                                               intentIdentifiers: [],
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:127:9: error: 'UNUserNotificationCenter' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
    :
124 |     }
125 |
126 |     private static func createCategory(category: UNNotificationCategory, afterCategoryCreated: (() -> Void)?) {
    |                         `- note: add @available attribute to enclosing static method
127 |         UNUserNotificationCenter.current().getNotificationCategories { categories in
    |         |- error: 'UNUserNotificationCenter' is only available in macOS 10.14 or newer
    |         `- note: add 'if #available' version check
128 |             var newCategories = categories
129 |             newCategories.insert(category)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/ITBNotificationServiceExtension.swift:130:13: error: 'UNUserNotificationCenter' is only available in macOS 10.14 or newer
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: add @available attribute to enclosing class
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
    :
124 |     }
125 |
126 |     private static func createCategory(category: UNNotificationCategory, afterCategoryCreated: (() -> Void)?) {
    |                         `- note: add @available attribute to enclosing static method
127 |         UNUserNotificationCenter.current().getNotificationCategories { categories in
128 |             var newCategories = categories
129 |             newCategories.insert(category)
130 |             UNUserNotificationCenter.current().setNotificationCategories(newCategories)
    |             |- error: 'UNUserNotificationCenter' is only available in macOS 10.14 or newer
    |             `- note: add 'if #available' version check
131 |             afterCategoryCreated?()
132 |         }
[7/313] Compiling IterableAppExtensions NotificationContentParser.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:9:51: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
    |                 |                                 `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
    |                 `- note: add @available attribute to enclosing static method
 10 |         getIterableMetadata(from: content.userInfo)
 11 |     }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:13:52: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
 11 |     }
 12 |
 13 |     static func getIterableMessageId(from content: UNNotificationContent) -> String? {
    |                 |                                  `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
    |                 `- note: add @available attribute to enclosing static method
 14 |         guard let metadata = getIterableMetadata(from: content) else {
 15 |             return nil
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:21:54: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
    :
 19 |     }
 20 |
 21 |     static func getNotificationActions(from content: UNNotificationContent) -> [UNNotificationAction] {
    |                 |                                    `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
    |                 `- note: add @available attribute to enclosing static method
 22 |         getActionButtonsJsonArray(from: content)
 23 |             .compactMap { createNotificationActionButton(from: $0) }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:21:81: error: 'UNNotificationAction' is only available in macOS 10.14 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
    :
 19 |     }
 20 |
 21 |     static func getNotificationActions(from content: UNNotificationContent) -> [UNNotificationAction] {
    |                 |                                                               `- error: 'UNNotificationAction' is only available in macOS 10.14 or newer
    |                 `- note: add @available attribute to enclosing static method
 22 |         getActionButtonsJsonArray(from: content)
 23 |             .compactMap { createNotificationActionButton(from: $0) }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:26:65: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
    :
 24 |     }
 25 |
 26 |     private static func getActionButtonsJsonArray(from content: UNNotificationContent) -> [[AnyHashable: Any]] {
    |                         |                                       `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
    |                         `- note: add @available attribute to enclosing static method
 27 |         var jsonArray: [[AnyHashable: Any]] = []
 28 |         if let metadata = getIterableMetadata(from: content),
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:60:90: error: 'UNNotificationAction' is only available in macOS 10.14 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
    :
 58 |     }
 59 |
 60 |     private static func createNotificationActionButton(from json: [AnyHashable: Any]) -> UNNotificationAction? {
    |                         |                                                                `- error: 'UNNotificationAction' is only available in macOS 10.14 or newer
    |                         `- note: add @available attribute to enclosing static method
 61 |         guard let button = createActionButton(from: json) else {
 62 |             return nil
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:122:77: error: 'UNNotificationActionOptions' is only available in macOS 10.14 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
    :
120 |     }
121 |
122 |     private static func getOptions(forActionButton button: ActionButton) -> UNNotificationActionOptions {
    |                         |                                                   `- error: 'UNNotificationActionOptions' is only available in macOS 10.14 or newer
    |                         `- note: add @available attribute to enclosing static method
123 |         var options: UNNotificationActionOptions = []
124 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:141:86: error: 'UNNotificationActionIcon' is only available in macOS 12.0 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
    :
139 |
140 |     @available(iOS 15.0, *)
141 |     private static func getNotificationIcon(forActionButton button: ActionButton) -> UNNotificationActionIcon? {
    |                         |                                                            `- error: 'UNNotificationActionIcon' is only available in macOS 12.0 or newer
    |                         `- note: add @available attribute to enclosing static method
142 |         guard let actionIcon = button.actionIcon else {
143 |             return nil
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:67:24: error: 'UNTextInputNotificationAction' is only available in macOS 10.14 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
    :
 58 |     }
 59 |
 60 |     private static func createNotificationActionButton(from json: [AnyHashable: Any]) -> UNNotificationAction? {
    |                         `- note: add @available attribute to enclosing static method
 61 |         guard let button = createActionButton(from: json) else {
 62 |             return nil
    :
 65 |         if button.buttonType == .textInput {
 66 |             if #available(iOS 15.0, *) {
 67 |                 return UNTextInputNotificationAction(identifier: button.identifier,
    |                        |- error: 'UNTextInputNotificationAction' is only available in macOS 10.14 or newer
    |                        `- note: add 'if #available' version check
 68 |                                                      title: button.title,
 69 |                                                      options: getOptions(forActionButton: button),
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:67:24: error: 'init(identifier:title:options:icon:textInputButtonTitle:textInputPlaceholder:)' is only available in macOS 12.0 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
    :
 58 |     }
 59 |
 60 |     private static func createNotificationActionButton(from json: [AnyHashable: Any]) -> UNNotificationAction? {
    |                         `- note: add @available attribute to enclosing static method
 61 |         guard let button = createActionButton(from: json) else {
 62 |             return nil
    :
 65 |         if button.buttonType == .textInput {
 66 |             if #available(iOS 15.0, *) {
 67 |                 return UNTextInputNotificationAction(identifier: button.identifier,
    |                        |- error: 'init(identifier:title:options:icon:textInputButtonTitle:textInputPlaceholder:)' is only available in macOS 12.0 or newer
    |                        `- note: add 'if #available' version check
 68 |                                                      title: button.title,
 69 |                                                      options: getOptions(forActionButton: button),
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:82:24: error: 'UNNotificationAction' is only available in macOS 10.14 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
    :
 58 |     }
 59 |
 60 |     private static func createNotificationActionButton(from json: [AnyHashable: Any]) -> UNNotificationAction? {
    |                         `- note: add @available attribute to enclosing static method
 61 |         guard let button = createActionButton(from: json) else {
 62 |             return nil
    :
 80 |         } else {
 81 |             if #available(iOS 15.0, *) {
 82 |                 return UNNotificationAction(identifier: button.identifier,
    |                        |- error: 'UNNotificationAction' is only available in macOS 10.14 or newer
    |                        `- note: add 'if #available' version check
 83 |                                             title: button.title,
 84 |                                             options: getOptions(forActionButton: button),
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:82:24: error: 'init(identifier:title:options:icon:)' is only available in macOS 12.0 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
    :
 58 |     }
 59 |
 60 |     private static func createNotificationActionButton(from json: [AnyHashable: Any]) -> UNNotificationAction? {
    |                         `- note: add @available attribute to enclosing static method
 61 |         guard let button = createActionButton(from: json) else {
 62 |             return nil
    :
 80 |         } else {
 81 |             if #available(iOS 15.0, *) {
 82 |                 return UNNotificationAction(identifier: button.identifier,
    |                        |- error: 'init(identifier:title:options:icon:)' is only available in macOS 12.0 or newer
    |                        `- note: add 'if #available' version check
 83 |                                             title: button.title,
 84 |                                             options: getOptions(forActionButton: button),
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:123:22: error: 'UNNotificationActionOptions' is only available in macOS 10.14 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
    :
120 |     }
121 |
122 |     private static func getOptions(forActionButton button: ActionButton) -> UNNotificationActionOptions {
    |                         `- note: add @available attribute to enclosing static method
123 |         var options: UNNotificationActionOptions = []
    |                      |- error: 'UNNotificationActionOptions' is only available in macOS 10.14 or newer
    |                      `- note: add 'if #available' version check
124 |
125 |         if button.buttonType == ButtonType.destructive {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:146:20: error: 'UNNotificationActionIcon' is only available in macOS 12.0 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
    :
139 |
140 |     @available(iOS 15.0, *)
141 |     private static func getNotificationIcon(forActionButton button: ActionButton) -> UNNotificationActionIcon? {
    |                         `- note: add @available attribute to enclosing static method
142 |         guard let actionIcon = button.actionIcon else {
143 |             return nil
144 |         }
145 |         if actionIcon.iconType == .systemImage {
146 |             return UNNotificationActionIcon(systemImageName: actionIcon.imageName)
    |                    |- error: 'UNNotificationActionIcon' is only available in macOS 12.0 or newer
    |                    `- note: add 'if #available' version check
147 |         } else {
148 |             return UNNotificationActionIcon(templateImageName: actionIcon.imageName)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-sdk/notification-extension/NotificationContentParser.swift:148:20: error: 'UNNotificationActionIcon' is only available in macOS 12.0 or newer
  6 | import UserNotifications
  7 |
  8 | struct NotificationContentParser {
    |        `- note: add @available attribute to enclosing struct
  9 |     static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
 10 |         getIterableMetadata(from: content.userInfo)
    :
139 |
140 |     @available(iOS 15.0, *)
141 |     private static func getNotificationIcon(forActionButton button: ActionButton) -> UNNotificationActionIcon? {
    |                         `- note: add @available attribute to enclosing static method
142 |         guard let actionIcon = button.actionIcon else {
143 |             return nil
    :
146 |             return UNNotificationActionIcon(systemImageName: actionIcon.imageName)
147 |         } else {
148 |             return UNNotificationActionIcon(templateImageName: actionIcon.imageName)
    |                    |- error: 'UNNotificationActionIcon' is only available in macOS 12.0 or newer
    |                    `- note: add 'if #available' version check
149 |         }
150 |     }
BUILD FAILURE 6.1 macosSpm