The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build IterableSDK, reference 6.5.11 (10e8f4), with Swift 6.1 for macOS (SPM) on 1 May 2025 11:51:34 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.61.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Iterable/iterable-swift-sdk.git
Reference: 6.5.11
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Iterable/iterable-swift-sdk
 * tag               6.5.11     -> FETCH_HEAD
HEAD is now at 10e8f47 [MOB-10709] prepares for version 6.5.11 release (#890)
Cloned https://github.com/Iterable/iterable-swift-sdk.git
Revision (git rev-parse @):
10e8f476597a341155555549b3e13371b6b75aea
SUCCESS checkout https://github.com/Iterable/iterable-swift-sdk.git at 6.5.11
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "iterable-swift-sdk",
      "name": "IterableSDK",
      "url": "https://github.com/Iterable/iterable-swift-sdk.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/iterable-swift-sdk",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/Iterable/iterable-swift-sdk.git
[1/27448] Fetching iterable-swift-sdk
Fetched https://github.com/Iterable/iterable-swift-sdk.git from cache (1.93s)
Creating working copy for https://github.com/Iterable/iterable-swift-sdk.git
Working copy of https://github.com/Iterable/iterable-swift-sdk.git resolved at 6.5.11 (10e8f47)
warning: '.resolve-product-dependencies': dependency 'iterable-swift-sdk' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Iterable/iterable-swift-sdk.git
https://github.com/Iterable/iterable-swift-sdk.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "IterableSDK",
  "name" : "IterableSDK",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "10.0"
    }
  ],
  "products" : [
    {
      "name" : "IterableSDK",
      "targets" : [
        "IterableSDK"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "IterableAppExtensions",
      "targets" : [
        "IterableAppExtensions"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "IterableSDK",
      "module_type" : "SwiftTarget",
      "name" : "IterableSDK",
      "path" : "swift-sdk",
      "product_memberships" : [
        "IterableSDK"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/swift-sdk/Resources/Assets.xcassets",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/swift-sdk/Resources/IterableDataModel.xcdatamodeld",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/swift-sdk/Resources/PrivacyInfo.xcprivacy",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/swift-sdk/ui-components/uikit/IterableEmbeddedView.xib",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/swift-sdk/ui-components/uikit/SampleInboxCell.xib",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "Core/Constants.swift",
        "Core/Models/CommerceItem.swift",
        "Core/Models/IterableAction.swift",
        "Core/Models/IterableActionContext.swift",
        "Core/Models/IterableAttributionInfo.swift",
        "Core/Models/IterableEmbeddedMessage.swift",
        "Core/Models/IterableInAppMessage.swift",
        "Core/Models/IterablePushNotificationMetadata.swift",
        "Core/Models/RetryPolicy.swift",
        "Core/Protocols/IterableAuthManagerProtocol.swift",
        "Core/Protocols/IterableEmbeddedManagerProtocol.swift",
        "Core/Protocols/IterableEmbeddedUpdateDelegate.swift",
        "Core/Protocols/IterableInAppManagerProtocol.swift",
        "Core/Protocols/IterableInboxViewControllerViewDelegate.swift",
        "Core/Utilities/AuthFailure.swift",
        "Core/Utilities/AuthFailureReason.swift",
        "Internal/APNSTypeChecker.swift",
        "Internal/ActionRunner.swift",
        "Internal/AppExtensionHelper.swift",
        "Internal/Auth.swift",
        "Internal/AuthManager.swift",
        "Internal/ClassExtensions.swift",
        "Internal/CoreDataUtil.swift",
        "Internal/DataFieldsHelper.swift",
        "Internal/DateProvider.swift",
        "Internal/DeepLinkManager.swift",
        "Internal/Dwifft/AbstractDiffCalculator.swift",
        "Internal/Dwifft/Dwifft+UIKit.swift",
        "Internal/Dwifft/Dwifft.swift",
        "Internal/Dwifft/SectionedValues.swift",
        "Internal/EmbeddedHelper.swift",
        "Internal/EmbeddedMessagingProcessor.swift",
        "Internal/EmbeddedMessagingSerialization.swift",
        "Internal/EmbeddedSessionManager.swift",
        "Internal/EmptyEmbeddedManager.swift",
        "Internal/EmptyInAppManager.swift",
        "Internal/HealthMonitor.swift",
        "Internal/InboxImpressionTracker.swift",
        "Internal/InboxMessageViewModel.swift",
        "Internal/InboxSessionManager.swift",
        "Internal/InboxState.swift",
        "Internal/InboxViewControllerViewModel.swift",
        "Internal/InboxViewControllerViewModelProtocol.swift",
        "Internal/InboxViewControllerViewModelView.swift",
        "Internal/InternalIterableAPI.swift",
        "Internal/InternalIterableAppIntegration.swift",
        "Internal/IterableAPICallRequest.swift",
        "Internal/IterableAPICallTaskProcessor.swift",
        "Internal/IterableAPIMobileFrameworkDetector.swift",
        "Internal/IterableCoreDataPersistence.swift",
        "Internal/IterableEmbeddedManager.swift",
        "Internal/IterableHtmlMessageViewController.swift",
        "Internal/IterableInboxCell+Layout.swift",
        "Internal/IterableNotifications.swift",
        "Internal/IterablePersistence.swift",
        "Internal/IterableRequest.swift",
        "Internal/IterableRequestUtil.swift",
        "Internal/IterableTask.swift",
        "Internal/IterableTaskError.swift",
        "Internal/IterableTaskManagedObject.swift",
        "Internal/IterableTaskProcessor.swift",
        "Internal/IterableTaskResult.swift",
        "Internal/IterableTaskRunner.swift",
        "Internal/IterableTaskScheduler.swift",
        "Internal/IterableUserDefaults.swift",
        "Internal/MiscEmbeddedClasses.swift",
        "Internal/MiscInboxClasses.swift",
        "Internal/Models.swift",
        "Internal/Network/NetworkConnectivityChecker.swift",
        "Internal/Network/NetworkConnectivityManager.swift",
        "Internal/Network/NetworkHelper.swift",
        "Internal/Network/NetworkMonitor.swift",
        "Internal/Network/NetworkSession.swift",
        "Internal/Pending.swift",
        "Internal/RequestHandlerProtocol.swift",
        "Internal/RequestProcessorUtil.swift",
        "Internal/RequestSender.swift",
        "Internal/Utilities/DependencyContainer.swift",
        "Internal/Utilities/DependencyContainerProtocol.swift",
        "Internal/Utilities/IterableLogUtil.swift",
        "Internal/Utilities/IterableUtil.swift",
        "Internal/Utilities/Keychain/IterableKeychain.swift",
        "Internal/Utilities/Keychain/KeychainWrapper.swift",
        "Internal/Utilities/LocalStorage.swift",
        "Internal/Utilities/LocalStorageProtocol.swift",
        "Internal/Utilities/NotificationHelper.swift",
        "Internal/Utilities/OrderedDictionary.swift",
        "Internal/Utilities/PersistenceHelper.swift",
        "Internal/Utilities/ResourceHelper.swift",
        "Internal/Utilities/UIColor+Extension.swift",
        "Internal/Utilities/WebViewProtocol.swift",
        "Internal/api-client/ApiClient.swift",
        "Internal/api-client/ApiClientProtocol.swift",
        "Internal/api-client/Request/OfflineRequestProcessor.swift",
        "Internal/api-client/Request/OnlineRequestProcessor.swift",
        "Internal/api-client/Request/RequestCreator.swift",
        "Internal/api-client/Request/RequestHandler.swift",
        "Internal/api-client/Request/RequestProcessorProtocol.swift",
        "Internal/in-app/InAppCalculations.swift",
        "Internal/in-app/InAppContentParser.swift",
        "Internal/in-app/InAppDisplayer.swift",
        "Internal/in-app/InAppHelper.swift",
        "Internal/in-app/InAppInternal.swift",
        "Internal/in-app/InAppManager+Functions.swift",
        "Internal/in-app/InAppManager.swift",
        "Internal/in-app/InAppMessageParser.swift",
        "Internal/in-app/InAppPersistence.swift",
        "Internal/in-app/InAppPresenter.swift",
        "SDK/IterableAPI.swift",
        "SDK/IterableAppIntegration.swift",
        "SDK/IterableConfig.swift",
        "SDK/IterableLogging.swift",
        "SDK/IterableMessaging.swift",
        "ui-components/swiftui/InboxViewRepresentable.swift",
        "ui-components/swiftui/IterableInboxView.swift",
        "ui-components/uikit/IterableEmbeddedView.swift",
        "ui-components/uikit/IterableInboxCell.swift",
        "ui-components/uikit/IterableInboxNavigationViewController.swift",
        "ui-components/uikit/IterableInboxViewController.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "IterableAppExtensions",
      "module_type" : "SwiftTarget",
      "name" : "IterableAppExtensions",
      "path" : "notification-extension",
      "product_memberships" : [
        "IterableAppExtensions"
      ],
      "sources" : [
        "ITBNotificationServiceExtension.swift",
        "NotificationContentParser.swift",
        "NotificationExtensionConstants.swift",
        "TestFile.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
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/8] Write sources
[1/8] Copying IterableEmbeddedView.xib
[1/8] Write sources
[3/8] Copying SampleInboxCell.xib
[4/8] Copying PrivacyInfo.xcprivacy
[5/8] Copying IterableDataModel.xcdatamodeld
[5/8] Copying Assets.xcassets
[7/8] Write swift-version-2F0A5646E1D333AE.txt
[9/122] Compiling IterableAppExtensions TestFile.swift
[10/122] Compiling IterableAppExtensions NotificationExtensionConstants.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/122] Emitting module IterableAppExtensions
/Users/admin/builder/spi-builder-workspace/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/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/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/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/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/notification-extension/ITBNotificationServiceExtension.swift:14:23: warning: static property 'itblNotificationDelegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
 14 |     public static var itblNotificationDelegate: ITBNotificationServiceExtensionDelegate?
    |                       |- warning: static property 'itblNotificationDelegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'itblNotificationDelegate' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'itblNotificationDelegate' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 15 |
 16 |     @objc override open func didReceive(_ request: UNNotificationRequest,
/Users/admin/builder/spi-builder-workspace/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/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/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 = content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any],
 56 |               let attachmentUrlString = metadata[JsonKey.Payload.attachmentUrl] as? String,
/Users/admin/builder/spi-builder-workspace/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/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/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/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/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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
 11 |     }
/Users/admin/builder/spi-builder-workspace/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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
 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/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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
    :
 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/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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
    :
 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/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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
    :
 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/notification-extension/NotificationContentParser.swift:41: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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
    :
 39 |     }
 40 |
 41 |     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
 42 |         guard let button = createActionButton(from: json) else {
 43 |             return nil
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:103: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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
    :
101 |     }
102 |
103 |     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
104 |         var options: UNNotificationActionOptions = []
105 |
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:122: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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
    :
120 |
121 |     @available(iOS 15.0, *)
122 |     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
123 |         guard let actionIcon = button.actionIcon else {
124 |             return nil
[12/122] Compiling IterableAppExtensions ITBNotificationServiceExtension.swift
/Users/admin/builder/spi-builder-workspace/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/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/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/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/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/notification-extension/ITBNotificationServiceExtension.swift:14:23: warning: static property 'itblNotificationDelegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
 14 |     public static var itblNotificationDelegate: ITBNotificationServiceExtensionDelegate?
    |                       |- warning: static property 'itblNotificationDelegate' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'itblNotificationDelegate' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'itblNotificationDelegate' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 15 |
 16 |     @objc override open func didReceive(_ request: UNNotificationRequest,
/Users/admin/builder/spi-builder-workspace/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/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/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 = content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any],
 56 |               let attachmentUrlString = metadata[JsonKey.Payload.attachmentUrl] as? String,
/Users/admin/builder/spi-builder-workspace/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/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/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/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/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/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/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/notification-extension/ITBNotificationServiceExtension.swift:70:36: warning: capture of 'self' with non-sendable type 'ITBNotificationServiceExtension?' in a '@Sendable' closure
  9 | }
 10 |
 11 | @objc open class ITBNotificationServiceExtension: UNNotificationServiceExtension {
    |                  `- note: class 'ITBNotificationServiceExtension' does not conform to the 'Sendable' protocol
 12 |     var contentHandler: ((UNNotificationContent) -> Void)?
 13 |     var bestAttemptContent: UNMutableNotificationContent?
    :
 68 |     private func createAttachmentDownloadTask(url: URL) -> URLSessionDownloadTask {
 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 {
    |                                    `- warning: capture of 'self' with non-sendable type 'ITBNotificationServiceExtension?' in a '@Sendable' closure
 71 |                 self?.attachmentRetrievalFinished = true
 72 |                 return
/Users/admin/builder/spi-builder-workspace/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/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/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 |         }
[13/122] Compiling IterableAppExtensions NotificationContentParser.swift
/Users/admin/builder/spi-builder-workspace/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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
 11 |     }
/Users/admin/builder/spi-builder-workspace/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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
 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/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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
    :
 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/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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
    :
 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/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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
    :
 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/notification-extension/NotificationContentParser.swift:41: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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
    :
 39 |     }
 40 |
 41 |     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
 42 |         guard let button = createActionButton(from: json) else {
 43 |             return nil
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:103: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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
    :
101 |     }
102 |
103 |     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
104 |         var options: UNNotificationActionOptions = []
105 |
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:122: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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
    :
120 |
121 |     @available(iOS 15.0, *)
122 |     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
123 |         guard let actionIcon = button.actionIcon else {
124 |             return nil
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:48: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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
    :
 39 |     }
 40 |
 41 |     private static func createNotificationActionButton(from json: [AnyHashable: Any]) -> UNNotificationAction? {
    |                         `- note: add @available attribute to enclosing static method
 42 |         guard let button = createActionButton(from: json) else {
 43 |             return nil
    :
 46 |         if button.buttonType == .textInput {
 47 |             if #available(iOS 15.0, *) {
 48 |                 return UNTextInputNotificationAction(identifier: button.identifier,
    |                        |- error: 'UNTextInputNotificationAction' is only available in macOS 10.14 or newer
    |                        `- note: add 'if #available' version check
 49 |                                                      title: button.title,
 50 |                                                      options: getOptions(forActionButton: button),
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:48: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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
    :
 39 |     }
 40 |
 41 |     private static func createNotificationActionButton(from json: [AnyHashable: Any]) -> UNNotificationAction? {
    |                         `- note: add @available attribute to enclosing static method
 42 |         guard let button = createActionButton(from: json) else {
 43 |             return nil
    :
 46 |         if button.buttonType == .textInput {
 47 |             if #available(iOS 15.0, *) {
 48 |                 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
 49 |                                                      title: button.title,
 50 |                                                      options: getOptions(forActionButton: button),
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:63: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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
    :
 39 |     }
 40 |
 41 |     private static func createNotificationActionButton(from json: [AnyHashable: Any]) -> UNNotificationAction? {
    |                         `- note: add @available attribute to enclosing static method
 42 |         guard let button = createActionButton(from: json) else {
 43 |             return nil
    :
 61 |         } else {
 62 |             if #available(iOS 15.0, *) {
 63 |                 return UNNotificationAction(identifier: button.identifier,
    |                        |- error: 'UNNotificationAction' is only available in macOS 10.14 or newer
    |                        `- note: add 'if #available' version check
 64 |                                             title: button.title,
 65 |                                             options: getOptions(forActionButton: button),
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:63: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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
    :
 39 |     }
 40 |
 41 |     private static func createNotificationActionButton(from json: [AnyHashable: Any]) -> UNNotificationAction? {
    |                         `- note: add @available attribute to enclosing static method
 42 |         guard let button = createActionButton(from: json) else {
 43 |             return nil
    :
 61 |         } else {
 62 |             if #available(iOS 15.0, *) {
 63 |                 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
 64 |                                             title: button.title,
 65 |                                             options: getOptions(forActionButton: button),
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:104: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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
    :
101 |     }
102 |
103 |     private static func getOptions(forActionButton button: ActionButton) -> UNNotificationActionOptions {
    |                         `- note: add @available attribute to enclosing static method
104 |         var options: UNNotificationActionOptions = []
    |                      |- error: 'UNNotificationActionOptions' is only available in macOS 10.14 or newer
    |                      `- note: add 'if #available' version check
105 |
106 |         if button.buttonType == ButtonType.destructive {
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:127: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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
    :
120 |
121 |     @available(iOS 15.0, *)
122 |     private static func getNotificationIcon(forActionButton button: ActionButton) -> UNNotificationActionIcon? {
    |                         `- note: add @available attribute to enclosing static method
123 |         guard let actionIcon = button.actionIcon else {
124 |             return nil
125 |         }
126 |         if actionIcon.iconType == .systemImage {
127 |             return UNNotificationActionIcon(systemImageName: actionIcon.imageName)
    |                    |- error: 'UNNotificationActionIcon' is only available in macOS 12.0 or newer
    |                    `- note: add 'if #available' version check
128 |         } else {
129 |             return UNNotificationActionIcon(templateImageName: actionIcon.imageName)
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:129: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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
    :
120 |
121 |     @available(iOS 15.0, *)
122 |     private static func getNotificationIcon(forActionButton button: ActionButton) -> UNNotificationActionIcon? {
    |                         `- note: add @available attribute to enclosing static method
123 |         guard let actionIcon = button.actionIcon else {
124 |             return nil
    :
127 |             return UNNotificationActionIcon(systemImageName: actionIcon.imageName)
128 |         } else {
129 |             return UNNotificationActionIcon(templateImageName: actionIcon.imageName)
    |                    |- error: 'UNNotificationActionIcon' is only available in macOS 12.0 or newer
    |                    `- note: add 'if #available' version check
130 |         }
131 |     }
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/115] Compiling IterableAppExtensions TestFile.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/115] Compiling IterableAppExtensions NotificationExtensionConstants.swift
[4/115] Emitting module IterableAppExtensions
/Users/admin/builder/spi-builder-workspace/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/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/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/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/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/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/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/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 = content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any],
 56 |               let attachmentUrlString = metadata[JsonKey.Payload.attachmentUrl] as? String,
/Users/admin/builder/spi-builder-workspace/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/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/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/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/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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
 11 |     }
/Users/admin/builder/spi-builder-workspace/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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
 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/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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
    :
 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/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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
    :
 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/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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
    :
 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/notification-extension/NotificationContentParser.swift:41: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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
    :
 39 |     }
 40 |
 41 |     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
 42 |         guard let button = createActionButton(from: json) else {
 43 |             return nil
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:103: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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
    :
101 |     }
102 |
103 |     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
104 |         var options: UNNotificationActionOptions = []
105 |
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:122: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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
    :
120 |
121 |     @available(iOS 15.0, *)
122 |     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
123 |         guard let actionIcon = button.actionIcon else {
124 |             return nil
[5/115] Compiling IterableAppExtensions NotificationContentParser.swift
/Users/admin/builder/spi-builder-workspace/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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
 11 |     }
/Users/admin/builder/spi-builder-workspace/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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
 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/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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
    :
 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/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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
    :
 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/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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
    :
 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/notification-extension/NotificationContentParser.swift:41: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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
    :
 39 |     }
 40 |
 41 |     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
 42 |         guard let button = createActionButton(from: json) else {
 43 |             return nil
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:103: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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
    :
101 |     }
102 |
103 |     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
104 |         var options: UNNotificationActionOptions = []
105 |
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:122: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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
    :
120 |
121 |     @available(iOS 15.0, *)
122 |     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
123 |         guard let actionIcon = button.actionIcon else {
124 |             return nil
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:48: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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
    :
 39 |     }
 40 |
 41 |     private static func createNotificationActionButton(from json: [AnyHashable: Any]) -> UNNotificationAction? {
    |                         `- note: add @available attribute to enclosing static method
 42 |         guard let button = createActionButton(from: json) else {
 43 |             return nil
    :
 46 |         if button.buttonType == .textInput {
 47 |             if #available(iOS 15.0, *) {
 48 |                 return UNTextInputNotificationAction(identifier: button.identifier,
    |                        |- error: 'UNTextInputNotificationAction' is only available in macOS 10.14 or newer
    |                        `- note: add 'if #available' version check
 49 |                                                      title: button.title,
 50 |                                                      options: getOptions(forActionButton: button),
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:48: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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
    :
 39 |     }
 40 |
 41 |     private static func createNotificationActionButton(from json: [AnyHashable: Any]) -> UNNotificationAction? {
    |                         `- note: add @available attribute to enclosing static method
 42 |         guard let button = createActionButton(from: json) else {
 43 |             return nil
    :
 46 |         if button.buttonType == .textInput {
 47 |             if #available(iOS 15.0, *) {
 48 |                 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
 49 |                                                      title: button.title,
 50 |                                                      options: getOptions(forActionButton: button),
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:63: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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
    :
 39 |     }
 40 |
 41 |     private static func createNotificationActionButton(from json: [AnyHashable: Any]) -> UNNotificationAction? {
    |                         `- note: add @available attribute to enclosing static method
 42 |         guard let button = createActionButton(from: json) else {
 43 |             return nil
    :
 61 |         } else {
 62 |             if #available(iOS 15.0, *) {
 63 |                 return UNNotificationAction(identifier: button.identifier,
    |                        |- error: 'UNNotificationAction' is only available in macOS 10.14 or newer
    |                        `- note: add 'if #available' version check
 64 |                                             title: button.title,
 65 |                                             options: getOptions(forActionButton: button),
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:63: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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
    :
 39 |     }
 40 |
 41 |     private static func createNotificationActionButton(from json: [AnyHashable: Any]) -> UNNotificationAction? {
    |                         `- note: add @available attribute to enclosing static method
 42 |         guard let button = createActionButton(from: json) else {
 43 |             return nil
    :
 61 |         } else {
 62 |             if #available(iOS 15.0, *) {
 63 |                 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
 64 |                                             title: button.title,
 65 |                                             options: getOptions(forActionButton: button),
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:104: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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
    :
101 |     }
102 |
103 |     private static func getOptions(forActionButton button: ActionButton) -> UNNotificationActionOptions {
    |                         `- note: add @available attribute to enclosing static method
104 |         var options: UNNotificationActionOptions = []
    |                      |- error: 'UNNotificationActionOptions' is only available in macOS 10.14 or newer
    |                      `- note: add 'if #available' version check
105 |
106 |         if button.buttonType == ButtonType.destructive {
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:127: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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
    :
120 |
121 |     @available(iOS 15.0, *)
122 |     private static func getNotificationIcon(forActionButton button: ActionButton) -> UNNotificationActionIcon? {
    |                         `- note: add @available attribute to enclosing static method
123 |         guard let actionIcon = button.actionIcon else {
124 |             return nil
125 |         }
126 |         if actionIcon.iconType == .systemImage {
127 |             return UNNotificationActionIcon(systemImageName: actionIcon.imageName)
    |                    |- error: 'UNNotificationActionIcon' is only available in macOS 12.0 or newer
    |                    `- note: add 'if #available' version check
128 |         } else {
129 |             return UNNotificationActionIcon(templateImageName: actionIcon.imageName)
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:129: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 |         content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any]
    :
120 |
121 |     @available(iOS 15.0, *)
122 |     private static func getNotificationIcon(forActionButton button: ActionButton) -> UNNotificationActionIcon? {
    |                         `- note: add @available attribute to enclosing static method
123 |         guard let actionIcon = button.actionIcon else {
124 |             return nil
    :
127 |             return UNNotificationActionIcon(systemImageName: actionIcon.imageName)
128 |         } else {
129 |             return UNNotificationActionIcon(templateImageName: actionIcon.imageName)
    |                    |- error: 'UNNotificationActionIcon' is only available in macOS 12.0 or newer
    |                    `- note: add 'if #available' version check
130 |         }
131 |     }
[6/115] Compiling IterableAppExtensions ITBNotificationServiceExtension.swift
/Users/admin/builder/spi-builder-workspace/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/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/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/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/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/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/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/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 = content.userInfo[JsonKey.Payload.metadata] as? [AnyHashable: Any],
 56 |               let attachmentUrlString = metadata[JsonKey.Payload.attachmentUrl] as? String,
/Users/admin/builder/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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 |         }
BUILD FAILURE 6.1 macosSpm