Build Information
Failed to build IterableSDK, reference master (374ca5
), with Swift 6.0 for macOS (SPM) on 2 Jun 2025 16:12:07 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
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 374ca53 [MOB-11513] - Prepare for 6.5.12 (#914)
Cloned https://github.com/Iterable/iterable-swift-sdk.git
Revision (git rev-parse @):
374ca53f7e7501b9a9bf089b53a3ec521ab11c4a
SUCCESS checkout https://github.com/Iterable/iterable-swift-sdk.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/Iterable/iterable-swift-sdk.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Building for debugging...
[0/8] Copying IterableEmbeddedView.xib
[0/8] Copying PrivacyInfo.xcprivacy
[0/8] Write sources
[0/8] Copying SampleInboxCell.xib
[4/8] Write sources
[5/8] Copying IterableDataModel.xcdatamodeld
[6/8] Copying Assets.xcassets
[7/8] Write swift-version-5BDAB9E9C0126B9D.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/122] Compiling IterableAppExtensions TestFile.swift
[10/122] Compiling IterableAppExtensions NotificationExtensionConstants.swift
[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: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 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 | }
[13/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: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: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.0 macosSpm