Build Information
Failed to build IterableSDK, reference master (d97e76), with Swift 6.2 for macOS (SPM) on 14 Aug 2026 09:51:16 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: undefined version: run 'make version' to update
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Iterable/iterable-swift-sdk.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Iterable/iterable-swift-sdk
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at d97e76e SDK-672: Prepare for Release 6.7.5 (#1089)
Cloned https://github.com/Iterable/iterable-swift-sdk.git
Revision (git rev-parse @):
d97e76e52b03dbe1a747d72e91ec54694528e9e5
SUCCESS checkout https://github.com/Iterable/iterable-swift-sdk.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/Iterable/iterable-swift-sdk.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64
Building for debugging...
[0/9] Write sources
[2/9] Copying anoncriteria_response.json
[2/9] Copying PrivacyInfo.xcprivacy
[3/9] Copying IterableEmbeddedView.xib
[4/9] Copying SampleInboxCell.xib
[6/9] Copying IterableDataModel.xcdatamodeld
[7/9] Copying Assets.xcassets
[8/9] Write swift-version--3CB7CFEC50E0D141.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/130] Compiling IterableAppExtensions TestFile.swift
[11/130] 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 = NotificationContentParser.getIterableMetadata(from: content),
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 | getIterableMetadata(from: content.userInfo)
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 | getIterableMetadata(from: content.userInfo)
11 | }
12 |
13 | static func getIterableMessageId(from content: UNNotificationContent) -> String? {
| | `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
14 | guard let metadata = getIterableMetadata(from: content) else {
15 | return nil
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:21:54: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
6 | import UserNotifications
7 |
8 | struct NotificationContentParser {
| `- note: add '@available' attribute to enclosing struct
9 | static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
10 | getIterableMetadata(from: content.userInfo)
:
19 | }
20 |
21 | static func getNotificationActions(from content: UNNotificationContent) -> [UNNotificationAction] {
| | `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
22 | getActionButtonsJsonArray(from: content)
23 | .compactMap { createNotificationActionButton(from: $0) }
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:21:81: error: 'UNNotificationAction' is only available in macOS 10.14 or newer
6 | import UserNotifications
7 |
8 | struct NotificationContentParser {
| `- note: add '@available' attribute to enclosing struct
9 | static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
10 | getIterableMetadata(from: content.userInfo)
:
19 | }
20 |
21 | static func getNotificationActions(from content: UNNotificationContent) -> [UNNotificationAction] {
| | `- error: 'UNNotificationAction' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
22 | getActionButtonsJsonArray(from: content)
23 | .compactMap { createNotificationActionButton(from: $0) }
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:26:65: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
6 | import UserNotifications
7 |
8 | struct NotificationContentParser {
| `- note: add '@available' attribute to enclosing struct
9 | static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
10 | getIterableMetadata(from: content.userInfo)
:
24 | }
25 |
26 | private static func getActionButtonsJsonArray(from content: UNNotificationContent) -> [[AnyHashable: Any]] {
| | `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
27 | var jsonArray: [[AnyHashable: Any]] = []
28 | if let metadata = getIterableMetadata(from: content),
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:60:90: error: 'UNNotificationAction' is only available in macOS 10.14 or newer
6 | import UserNotifications
7 |
8 | struct NotificationContentParser {
| `- note: add '@available' attribute to enclosing struct
9 | static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
10 | getIterableMetadata(from: content.userInfo)
:
58 | }
59 |
60 | private static func createNotificationActionButton(from json: [AnyHashable: Any]) -> UNNotificationAction? {
| | `- error: 'UNNotificationAction' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
61 | guard let button = createActionButton(from: json) else {
62 | return nil
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:122:77: error: 'UNNotificationActionOptions' is only available in macOS 10.14 or newer
6 | import UserNotifications
7 |
8 | struct NotificationContentParser {
| `- note: add '@available' attribute to enclosing struct
9 | static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
10 | getIterableMetadata(from: content.userInfo)
:
120 | }
121 |
122 | private static func getOptions(forActionButton button: ActionButton) -> UNNotificationActionOptions {
| | `- error: 'UNNotificationActionOptions' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
123 | var options: UNNotificationActionOptions = []
124 |
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:141:86: error: 'UNNotificationActionIcon' is only available in macOS 12.0 or newer
6 | import UserNotifications
7 |
8 | struct NotificationContentParser {
| `- note: add '@available' attribute to enclosing struct
9 | static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
10 | getIterableMetadata(from: content.userInfo)
:
139 |
140 | @available(iOS 15.0, *)
141 | private static func getNotificationIcon(forActionButton button: ActionButton) -> UNNotificationActionIcon? {
| | `- error: 'UNNotificationActionIcon' is only available in macOS 12.0 or newer
| `- note: add '@available' attribute to enclosing static method
142 | guard let actionIcon = button.actionIcon else {
143 | return nil
[12/130] Compiling IterableAppExtensions NotificationExtensionConstants.swift
[13/130] 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 = NotificationContentParser.getIterableMetadata(from: content),
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 | }
[14/130] 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 | getIterableMetadata(from: content.userInfo)
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 | getIterableMetadata(from: content.userInfo)
11 | }
12 |
13 | static func getIterableMessageId(from content: UNNotificationContent) -> String? {
| | `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
14 | guard let metadata = getIterableMetadata(from: content) else {
15 | return nil
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:21:54: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
6 | import UserNotifications
7 |
8 | struct NotificationContentParser {
| `- note: add '@available' attribute to enclosing struct
9 | static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
10 | getIterableMetadata(from: content.userInfo)
:
19 | }
20 |
21 | static func getNotificationActions(from content: UNNotificationContent) -> [UNNotificationAction] {
| | `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
22 | getActionButtonsJsonArray(from: content)
23 | .compactMap { createNotificationActionButton(from: $0) }
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:21:81: error: 'UNNotificationAction' is only available in macOS 10.14 or newer
6 | import UserNotifications
7 |
8 | struct NotificationContentParser {
| `- note: add '@available' attribute to enclosing struct
9 | static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
10 | getIterableMetadata(from: content.userInfo)
:
19 | }
20 |
21 | static func getNotificationActions(from content: UNNotificationContent) -> [UNNotificationAction] {
| | `- error: 'UNNotificationAction' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
22 | getActionButtonsJsonArray(from: content)
23 | .compactMap { createNotificationActionButton(from: $0) }
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:26:65: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
6 | import UserNotifications
7 |
8 | struct NotificationContentParser {
| `- note: add '@available' attribute to enclosing struct
9 | static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
10 | getIterableMetadata(from: content.userInfo)
:
24 | }
25 |
26 | private static func getActionButtonsJsonArray(from content: UNNotificationContent) -> [[AnyHashable: Any]] {
| | `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
27 | var jsonArray: [[AnyHashable: Any]] = []
28 | if let metadata = getIterableMetadata(from: content),
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:60:90: error: 'UNNotificationAction' is only available in macOS 10.14 or newer
6 | import UserNotifications
7 |
8 | struct NotificationContentParser {
| `- note: add '@available' attribute to enclosing struct
9 | static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
10 | getIterableMetadata(from: content.userInfo)
:
58 | }
59 |
60 | private static func createNotificationActionButton(from json: [AnyHashable: Any]) -> UNNotificationAction? {
| | `- error: 'UNNotificationAction' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
61 | guard let button = createActionButton(from: json) else {
62 | return nil
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:122:77: error: 'UNNotificationActionOptions' is only available in macOS 10.14 or newer
6 | import UserNotifications
7 |
8 | struct NotificationContentParser {
| `- note: add '@available' attribute to enclosing struct
9 | static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
10 | getIterableMetadata(from: content.userInfo)
:
120 | }
121 |
122 | private static func getOptions(forActionButton button: ActionButton) -> UNNotificationActionOptions {
| | `- error: 'UNNotificationActionOptions' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
123 | var options: UNNotificationActionOptions = []
124 |
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:141:86: error: 'UNNotificationActionIcon' is only available in macOS 12.0 or newer
6 | import UserNotifications
7 |
8 | struct NotificationContentParser {
| `- note: add '@available' attribute to enclosing struct
9 | static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
10 | getIterableMetadata(from: content.userInfo)
:
139 |
140 | @available(iOS 15.0, *)
141 | private static func getNotificationIcon(forActionButton button: ActionButton) -> UNNotificationActionIcon? {
| | `- error: 'UNNotificationActionIcon' is only available in macOS 12.0 or newer
| `- note: add '@available' attribute to enclosing static method
142 | guard let actionIcon = button.actionIcon else {
143 | return nil
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:67:24: error: 'UNTextInputNotificationAction' is only available in macOS 10.14 or newer
6 | import UserNotifications
7 |
8 | struct NotificationContentParser {
| `- note: add '@available' attribute to enclosing struct
9 | static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
10 | getIterableMetadata(from: content.userInfo)
:
58 | }
59 |
60 | private static func createNotificationActionButton(from json: [AnyHashable: Any]) -> UNNotificationAction? {
| `- note: add '@available' attribute to enclosing static method
61 | guard let button = createActionButton(from: json) else {
62 | return nil
:
65 | if button.buttonType == .textInput {
66 | if #available(iOS 15.0, *) {
67 | return UNTextInputNotificationAction(identifier: button.identifier,
| |- error: 'UNTextInputNotificationAction' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
68 | title: button.title,
69 | options: getOptions(forActionButton: button),
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:67:24: error: 'init(identifier:title:options:icon:textInputButtonTitle:textInputPlaceholder:)' is only available in macOS 12.0 or newer
6 | import UserNotifications
7 |
8 | struct NotificationContentParser {
| `- note: add '@available' attribute to enclosing struct
9 | static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
10 | getIterableMetadata(from: content.userInfo)
:
58 | }
59 |
60 | private static func createNotificationActionButton(from json: [AnyHashable: Any]) -> UNNotificationAction? {
| `- note: add '@available' attribute to enclosing static method
61 | guard let button = createActionButton(from: json) else {
62 | return nil
:
65 | if button.buttonType == .textInput {
66 | if #available(iOS 15.0, *) {
67 | return UNTextInputNotificationAction(identifier: button.identifier,
| |- error: 'init(identifier:title:options:icon:textInputButtonTitle:textInputPlaceholder:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
68 | title: button.title,
69 | options: getOptions(forActionButton: button),
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:82:24: error: 'UNNotificationAction' is only available in macOS 10.14 or newer
6 | import UserNotifications
7 |
8 | struct NotificationContentParser {
| `- note: add '@available' attribute to enclosing struct
9 | static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
10 | getIterableMetadata(from: content.userInfo)
:
58 | }
59 |
60 | private static func createNotificationActionButton(from json: [AnyHashable: Any]) -> UNNotificationAction? {
| `- note: add '@available' attribute to enclosing static method
61 | guard let button = createActionButton(from: json) else {
62 | return nil
:
80 | } else {
81 | if #available(iOS 15.0, *) {
82 | return UNNotificationAction(identifier: button.identifier,
| |- error: 'UNNotificationAction' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
83 | title: button.title,
84 | options: getOptions(forActionButton: button),
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:82:24: error: 'init(identifier:title:options:icon:)' is only available in macOS 12.0 or newer
6 | import UserNotifications
7 |
8 | struct NotificationContentParser {
| `- note: add '@available' attribute to enclosing struct
9 | static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
10 | getIterableMetadata(from: content.userInfo)
:
58 | }
59 |
60 | private static func createNotificationActionButton(from json: [AnyHashable: Any]) -> UNNotificationAction? {
| `- note: add '@available' attribute to enclosing static method
61 | guard let button = createActionButton(from: json) else {
62 | return nil
:
80 | } else {
81 | if #available(iOS 15.0, *) {
82 | return UNNotificationAction(identifier: button.identifier,
| |- error: 'init(identifier:title:options:icon:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
83 | title: button.title,
84 | options: getOptions(forActionButton: button),
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:123:22: error: 'UNNotificationActionOptions' is only available in macOS 10.14 or newer
6 | import UserNotifications
7 |
8 | struct NotificationContentParser {
| `- note: add '@available' attribute to enclosing struct
9 | static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
10 | getIterableMetadata(from: content.userInfo)
:
120 | }
121 |
122 | private static func getOptions(forActionButton button: ActionButton) -> UNNotificationActionOptions {
| `- note: add '@available' attribute to enclosing static method
123 | var options: UNNotificationActionOptions = []
| |- error: 'UNNotificationActionOptions' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
124 |
125 | if button.buttonType == ButtonType.destructive {
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:146:20: error: 'UNNotificationActionIcon' is only available in macOS 12.0 or newer
6 | import UserNotifications
7 |
8 | struct NotificationContentParser {
| `- note: add '@available' attribute to enclosing struct
9 | static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
10 | getIterableMetadata(from: content.userInfo)
:
139 |
140 | @available(iOS 15.0, *)
141 | private static func getNotificationIcon(forActionButton button: ActionButton) -> UNNotificationActionIcon? {
| `- note: add '@available' attribute to enclosing static method
142 | guard let actionIcon = button.actionIcon else {
143 | return nil
144 | }
145 | if actionIcon.iconType == .systemImage {
146 | return UNNotificationActionIcon(systemImageName: actionIcon.imageName)
| |- error: 'UNNotificationActionIcon' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
147 | } else {
148 | return UNNotificationActionIcon(templateImageName: actionIcon.imageName)
/Users/admin/builder/spi-builder-workspace/notification-extension/NotificationContentParser.swift:148:20: error: 'UNNotificationActionIcon' is only available in macOS 12.0 or newer
6 | import UserNotifications
7 |
8 | struct NotificationContentParser {
| `- note: add '@available' attribute to enclosing struct
9 | static func getIterableMetadata(from content: UNNotificationContent) -> [AnyHashable: Any]? {
10 | getIterableMetadata(from: content.userInfo)
:
139 |
140 | @available(iOS 15.0, *)
141 | private static func getNotificationIcon(forActionButton button: ActionButton) -> UNNotificationActionIcon? {
| `- note: add '@available' attribute to enclosing static method
142 | guard let actionIcon = button.actionIcon else {
143 | return nil
:
146 | return UNNotificationActionIcon(systemImageName: actionIcon.imageName)
147 | } else {
148 | return UNNotificationActionIcon(templateImageName: actionIcon.imageName)
| |- error: 'UNNotificationActionIcon' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
149 | }
150 | }
BUILD FAILURE 6.2 macosSpm