Build Information
Failed to build AppAmbitSdk, reference develop (599f43), with Swift 6.1 for macOS (SPM) on 28 Aug 2026 04:18:34 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 5.0.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/AppAmbit/appambit-sdk-ios.git
Reference: develop
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/AppAmbit/appambit-sdk-ios
* branch develop -> FETCH_HEAD
* [new branch] develop -> origin/develop
HEAD is now at 599f430 Merge pull request #101 from AppAmbit/docs/updated-taglines-and-readme
Cloned https://github.com/AppAmbit/appambit-sdk-ios.git
Revision (git rev-parse @):
599f430b206f2dc49b4a01e90418b8714f1520a7
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/AppAmbit/appambit-sdk-ios.git at develop
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/AppAmbit/appambit-sdk-ios.git
https://github.com/AppAmbit/appambit-sdk-ios.git
{
"dependencies" : [
],
"manifest_display_name" : "AppAmbitSdk",
"name" : "AppAmbitSdk",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "12.0"
}
],
"products" : [
{
"name" : "AppAmbit",
"targets" : [
"AppAmbit"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "AppAmbitPushNotifications",
"targets" : [
"AppAmbitPushNotifications"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "AppAmbitPushNotificationsExtension",
"targets" : [
"AppAmbitPushNotificationsExtension"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "AppAmbitPushNotificationsExtension",
"module_type" : "SwiftTarget",
"name" : "AppAmbitPushNotificationsExtension",
"path" : "PushExtensionSources",
"product_memberships" : [
"AppAmbitPushNotificationsExtension"
],
"sources" : [
"AppAmbitNotification.swift",
"AppAmbitNotificationProcessor.swift",
"AppAmbitNotificationService.swift",
"PushLogger.swift",
"PushNotificationAttachments.swift"
],
"type" : "library"
},
{
"c99name" : "AppAmbitPushNotifications",
"module_type" : "SwiftTarget",
"name" : "AppAmbitPushNotifications",
"path" : "Push/AppAmbitPushNotifications/Sources",
"product_memberships" : [
"AppAmbitPushNotifications"
],
"sources" : [
"Core/PushKernel.swift",
"Core/PushLogger.swift",
"Core/PushNotificationState.swift",
"Core/PushNotifications.swift",
"Delegate/AppAmbitAppDelegate.swift",
"Delegate/AppAmbitPushRegistration.swift",
"Delegate/AppDelegateSwizzler.swift"
],
"target_dependencies" : [
"AppAmbit"
],
"type" : "library"
},
{
"c99name" : "AppAmbit",
"module_type" : "SwiftTarget",
"name" : "AppAmbit",
"path" : "AppAmbitSdk/Sources",
"product_memberships" : [
"AppAmbit",
"AppAmbitPushNotifications"
],
"sources" : [
"Analytics.swift",
"AppAmbit.swift",
"AppAmbitDb.swift",
"AppConstants.swift",
"BreadcrumbManager.swift",
"BreadcrumbsConstants.swift",
"CloudCode.swift",
"Cms.swift",
"CmsQuery.swift",
"CrashFileGeneration/CrashFileGenerator.swift",
"CrashFileGeneration/CrashHandler.swift",
"Crashes.swift",
"DbQueryBuilder.swift",
"DbTypedQueryBuilder.swift",
"Enums/ApiErrorType.swift",
"Enums/ApiExceptions.swift",
"Enums/CloudCodeError.swift",
"Enums/CloudCodeHttpMethod.swift",
"Enums/DatabaseErrorType.swift",
"Enums/DbError.swift",
"Enums/HttpMethod.swift",
"Enums/LogType.swift",
"Enums/MultipartValue.swift",
"Enums/SQLiteError.swift",
"Enums/SessionType.swift",
"Logging.swift",
"Models/Analytics/Event.swift",
"Models/Analytics/EventBatchPayload.swift",
"Models/Analytics/EventEntity.swift",
"Models/Analytics/SessionBatch.swift",
"Models/Analytics/SessionData.swift",
"Models/App/AppSecrets.swift",
"Models/App/Consumer.swift",
"Models/App/ConsumerToken.swift",
"Models/App/UpdateConsumer.swift",
"Models/Breadcrumbs/Breadcrumb.swift",
"Models/Breadcrumbs/BreadcrumbBatch.swift",
"Models/Breadcrumbs/BreadcrumbData.swift",
"Models/Breadcrumbs/BreadcrumbEntity.swift",
"Models/CloudCodeCancellationToken.swift",
"Models/CloudCodeResponse.swift",
"Models/Db/DbApiResponse.swift",
"Models/Db/DbBatchRequest.swift",
"Models/Db/DbCancellationToken.swift",
"Models/Db/DbQueryRequest.swift",
"Models/Db/DbResult.swift",
"Models/Db/DbStatement.swift",
"Models/Db/DbValue.swift",
"Models/Logs/ExceptionInfo.swift",
"Models/Logs/Log.swift",
"Models/Logs/LogBatch.swift",
"Models/Logs/LogEntity.swift",
"Models/Logs/MultipartFile.swift",
"Models/RemoteConfigs/RemoteConfigEntity.swift",
"Models/RemoteConfigs/RemoteConfigModel.swift",
"Models/Responses/ApiResult.swift",
"Models/Responses/BatchResponse.swift",
"Models/Responses/BreadcrumbResponse.swift",
"Models/Responses/EndSessionResponse.swift",
"Models/Responses/EventResponse.swift",
"Models/Responses/EventResponseData.swift",
"Models/Responses/LogResponse.swift",
"Models/Responses/RemoteConfigResponse.swift",
"Models/Responses/SessionResponse.swift",
"Models/Responses/TokenResponse.swift",
"Models/Responses/VoidResponse.swift",
"RemoteConfig.swift",
"ServiceContainer.swift",
"Services/AppAmbitApiService.swift",
"Services/AppAmbitInfoService.swift",
"Services/CloudCodeService.swift",
"Services/CloudCodeTransport.swift",
"Services/ConsumerService.swift",
"Services/DbService.swift",
"Services/Endpoints/BaseEndpoint.swift",
"Services/Endpoints/BreadcrumbBatchEndpoint.swift",
"Services/Endpoints/BreadcrumbEndpoint.swift",
"Services/Endpoints/CloudCodeEndpoint.swift",
"Services/Endpoints/CmsEndpoint.swift",
"Services/Endpoints/DbBatchEndpoint.swift",
"Services/Endpoints/DbQueryEndpoint.swift",
"Services/Endpoints/EndSessionEndpoint.swift",
"Services/Endpoints/EventBatchEndpoint.swift",
"Services/Endpoints/EventEndpoint.swift",
"Services/Endpoints/LogBatchEndpoint.swift",
"Services/Endpoints/LogEndpoint.swift",
"Services/Endpoints/RegisterEndpoint.swift",
"Services/Endpoints/RemoteConfigEndpoint.swift",
"Services/Endpoints/SessionBatchEndpoint.swift",
"Services/Endpoints/StartSessionEndpoint.swift",
"Services/Endpoints/TokenEndpoint.swift",
"Services/Endpoints/UpdateConsumerEndpoint.swift",
"Services/Interfaces/ICms.swift",
"Services/Interfaces/ICmsQuery.swift",
"Services/Protocols/ApiService.swift",
"Services/Protocols/AppInfoService.swift",
"Services/Protocols/DictionaryConvertible.swift",
"Services/Protocols/Endpoint.swift",
"Services/Protocols/StorageService.swift",
"Services/ReachabilityService.swift",
"Services/StorableService.swift",
"Services/Storage/Configuration/AppSecretsConfiguration.swift",
"Services/Storage/Configuration/BreadcrumbEntityConfiguration.swift",
"Services/Storage/Configuration/EventEntityConfiguration.swift",
"Services/Storage/Configuration/LogEntityConfiguration.swift",
"Services/Storage/Configuration/RemoteConfigEntityConfiguration.swift",
"Services/Storage/Configuration/SessionConfiguration.swift",
"Services/Storage/DataStore.swift",
"Services/TokenService.swift",
"SessionManager.swift",
"Utils/AppAmbitLogger.swift",
"Utils/DateUtils.swift",
"Utils/DecoderUtils.swift",
"Utils/FileUtils.swift",
"Utils/IIdentifiable.swift",
"Utils/MultipartFormDataBuilder.swift",
"Utils/QueuesApp.swift",
"Utils/StackUtils.swift",
"Utils/StringValidation.swift",
"Utils/URLQueryBuilder.swift"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/119] Emitting module AppAmbit
/Users/admin/builder/spi-builder-workspace/AppAmbitSdk/Sources/AppAmbit.swift:1:8: error: no such module 'UIKit'
1 | import UIKit
| `- error: no such module 'UIKit'
2 | import Foundation
3 | import Network
[6/131] Compiling AppAmbitPushNotificationsExtension PushLogger.swift
[7/131] Compiling AppAmbitPushNotificationsExtension AppAmbitNotificationService.swift
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationService.swift:14:35: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
9 | /// Override `handlePayload(_:content:)` to mutate notification content
10 | /// (title, body, badge, threadIdentifier, etc.) before delivery.
11 | open class AppAmbitNotificationService: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
12 | private static let tag = "[AppAmbitPushSDK]"
13 |
14 | private var contentHandler: ((UNNotificationContent) -> Void)?
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
15 | private var bestAttemptContent: UNMutableNotificationContent?
16 |
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationService.swift:15:37: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
9 | /// Override `handlePayload(_:content:)` to mutate notification content
10 | /// (title, body, badge, threadIdentifier, etc.) before delivery.
11 | open class AppAmbitNotificationService: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
12 | private static let tag = "[AppAmbitPushSDK]"
13 |
14 | private var contentHandler: ((UNNotificationContent) -> Void)?
15 | private var bestAttemptContent: UNMutableNotificationContent?
| `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
16 |
17 | open override func didReceive(_ request: UNNotificationRequest,
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationService.swift:17:46: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
9 | /// Override `handlePayload(_:content:)` to mutate notification content
10 | /// (title, body, badge, threadIdentifier, etc.) before delivery.
11 | open class AppAmbitNotificationService: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
12 | private static let tag = "[AppAmbitPushSDK]"
13 |
:
15 | private var bestAttemptContent: UNMutableNotificationContent?
16 |
17 | open override func didReceive(_ request: UNNotificationRequest,
| | `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing instance method
18 | withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
19 | self.contentHandler = contentHandler
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationService.swift:18:81: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
9 | /// Override `handlePayload(_:content:)` to mutate notification content
10 | /// (title, body, badge, threadIdentifier, etc.) before delivery.
11 | open class AppAmbitNotificationService: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
12 | private static let tag = "[AppAmbitPushSDK]"
13 |
:
15 | private var bestAttemptContent: UNMutableNotificationContent?
16 |
17 | open override func didReceive(_ request: UNNotificationRequest,
| `- note: add @available attribute to enclosing instance method
18 | withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
19 | self.contentHandler = contentHandler
20 | self.bestAttemptContent = request.content.mutableCopy() as? UNMutableNotificationContent
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationService.swift:40:38: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
9 | /// Override `handlePayload(_:content:)` to mutate notification content
10 | /// (title, body, badge, threadIdentifier, etc.) before delivery.
11 | open class AppAmbitNotificationService: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
12 | private static let tag = "[AppAmbitPushSDK]"
13 |
:
37 |
38 | /// Hook for subclasses to mutate `content` before delivery. Default: no-op.
39 | open func handlePayload(_ notification: AppAmbitNotification,
| `- note: add @available attribute to enclosing instance method
40 | content: UNMutableNotificationContent) {
| `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
41 | // Subclasses can mutate content here before delivery.
42 | }
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationService.swift:45:47: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
9 | /// Override `handlePayload(_:content:)` to mutate notification content
10 | /// (title, body, badge, threadIdentifier, etc.) before delivery.
11 | open class AppAmbitNotificationService: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
12 | private static let tag = "[AppAmbitPushSDK]"
13 |
:
42 | }
43 |
44 | private func attachImageIfNeeded(_ notification: AppAmbitNotification,
| `- note: add @available attribute to enclosing instance method
45 | content: UNMutableNotificationContent,
| `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
46 | contentHandler: @escaping (UNNotificationContent) -> Void) {
47 | guard let imageUrl = notification.imageUrl, !imageUrl.isEmpty else {
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationService.swift:46:65: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
9 | /// Override `handlePayload(_:content:)` to mutate notification content
10 | /// (title, body, badge, threadIdentifier, etc.) before delivery.
11 | open class AppAmbitNotificationService: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
12 | private static let tag = "[AppAmbitPushSDK]"
13 |
:
42 | }
43 |
44 | private func attachImageIfNeeded(_ notification: AppAmbitNotification,
| `- note: add @available attribute to enclosing instance method
45 | content: UNMutableNotificationContent,
46 | contentHandler: @escaping (UNNotificationContent) -> Void) {
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
47 | guard let imageUrl = notification.imageUrl, !imageUrl.isEmpty else {
48 | contentHandler(content)
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationService.swift:11:41: error: 'UNNotificationServiceExtension' is only available in macOS 10.14 or newer
9 | /// Override `handlePayload(_:content:)` to mutate notification content
10 | /// (title, body, badge, threadIdentifier, etc.) before delivery.
11 | open class AppAmbitNotificationService: UNNotificationServiceExtension {
| | `- error: 'UNNotificationServiceExtension' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing class
12 | private static let tag = "[AppAmbitPushSDK]"
13 |
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationService.swift:20:69: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
9 | /// Override `handlePayload(_:content:)` to mutate notification content
10 | /// (title, body, badge, threadIdentifier, etc.) before delivery.
11 | open class AppAmbitNotificationService: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
12 | private static let tag = "[AppAmbitPushSDK]"
13 |
:
15 | private var bestAttemptContent: UNMutableNotificationContent?
16 |
17 | open override func didReceive(_ request: UNNotificationRequest,
| `- note: add @available attribute to enclosing instance method
18 | withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
19 | self.contentHandler = contentHandler
20 | self.bestAttemptContent = request.content.mutableCopy() as? UNMutableNotificationContent
| |- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
21 |
22 | guard let content = bestAttemptContent else {
[8/131] Compiling AppAmbitPushNotificationsExtension AppAmbitNotification.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/131] Emitting module AppAmbitPushNotificationsExtension
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationProcessor.swift:11:18: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
5 | @objc(AppAmbitNotificationProcessor)
6 | @objcMembers
7 | public final class AppAmbitNotificationProcessor: NSObject {
| `- note: add @available attribute to enclosing class
8 |
9 | @objc(processRequest:contentHandler:handlePayload:)
10 | public static func process(
| `- note: add @available attribute to enclosing static method
11 | request: UNNotificationRequest,
| `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
12 | contentHandler: @escaping (UNNotificationContent) -> Void,
13 | handlePayload: ((AppAmbitNotification, UNMutableNotificationContent) -> Void)? = nil
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationProcessor.swift:12:36: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
5 | @objc(AppAmbitNotificationProcessor)
6 | @objcMembers
7 | public final class AppAmbitNotificationProcessor: NSObject {
| `- note: add @available attribute to enclosing class
8 |
9 | @objc(processRequest:contentHandler:handlePayload:)
10 | public static func process(
| `- note: add @available attribute to enclosing static method
11 | request: UNNotificationRequest,
12 | contentHandler: @escaping (UNNotificationContent) -> Void,
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
13 | handlePayload: ((AppAmbitNotification, UNMutableNotificationContent) -> Void)? = nil
14 | ) {
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationProcessor.swift:13:48: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
5 | @objc(AppAmbitNotificationProcessor)
6 | @objcMembers
7 | public final class AppAmbitNotificationProcessor: NSObject {
| `- note: add @available attribute to enclosing class
8 |
9 | @objc(processRequest:contentHandler:handlePayload:)
10 | public static func process(
| `- note: add @available attribute to enclosing static method
11 | request: UNNotificationRequest,
12 | contentHandler: @escaping (UNNotificationContent) -> Void,
13 | handlePayload: ((AppAmbitNotification, UNMutableNotificationContent) -> Void)? = nil
| `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
14 | ) {
15 | PushLogger.log("Service Extension triggered.")
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationProcessor.swift:28:54: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
5 | @objc(AppAmbitNotificationProcessor)
6 | @objcMembers
7 | public final class AppAmbitNotificationProcessor: NSObject {
| `- note: add @available attribute to enclosing class
8 |
9 | @objc(processRequest:contentHandler:handlePayload:)
:
25 | }
26 |
27 | private static func attachImageIfNeeded(_ notification: AppAmbitNotification,
| `- note: add @available attribute to enclosing static method
28 | content: UNMutableNotificationContent,
| `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
29 | contentHandler: @escaping (UNNotificationContent) -> Void) {
30 | guard let imageUrl = notification.imageUrl, !imageUrl.isEmpty else {
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationProcessor.swift:29:72: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
5 | @objc(AppAmbitNotificationProcessor)
6 | @objcMembers
7 | public final class AppAmbitNotificationProcessor: NSObject {
| `- note: add @available attribute to enclosing class
8 |
9 | @objc(processRequest:contentHandler:handlePayload:)
:
25 | }
26 |
27 | private static func attachImageIfNeeded(_ notification: AppAmbitNotification,
| `- note: add @available attribute to enclosing static method
28 | content: UNMutableNotificationContent,
29 | contentHandler: @escaping (UNNotificationContent) -> Void) {
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
30 | guard let imageUrl = notification.imageUrl, !imageUrl.isEmpty else {
31 | contentHandler(content)
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationService.swift:14:35: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
9 | /// Override `handlePayload(_:content:)` to mutate notification content
10 | /// (title, body, badge, threadIdentifier, etc.) before delivery.
11 | open class AppAmbitNotificationService: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
12 | private static let tag = "[AppAmbitPushSDK]"
13 |
14 | private var contentHandler: ((UNNotificationContent) -> Void)?
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
15 | private var bestAttemptContent: UNMutableNotificationContent?
16 |
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationService.swift:15:37: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
9 | /// Override `handlePayload(_:content:)` to mutate notification content
10 | /// (title, body, badge, threadIdentifier, etc.) before delivery.
11 | open class AppAmbitNotificationService: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
12 | private static let tag = "[AppAmbitPushSDK]"
13 |
14 | private var contentHandler: ((UNNotificationContent) -> Void)?
15 | private var bestAttemptContent: UNMutableNotificationContent?
| `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
16 |
17 | open override func didReceive(_ request: UNNotificationRequest,
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationService.swift:17:46: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
9 | /// Override `handlePayload(_:content:)` to mutate notification content
10 | /// (title, body, badge, threadIdentifier, etc.) before delivery.
11 | open class AppAmbitNotificationService: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
12 | private static let tag = "[AppAmbitPushSDK]"
13 |
:
15 | private var bestAttemptContent: UNMutableNotificationContent?
16 |
17 | open override func didReceive(_ request: UNNotificationRequest,
| | `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing instance method
18 | withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
19 | self.contentHandler = contentHandler
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationService.swift:18:81: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
9 | /// Override `handlePayload(_:content:)` to mutate notification content
10 | /// (title, body, badge, threadIdentifier, etc.) before delivery.
11 | open class AppAmbitNotificationService: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
12 | private static let tag = "[AppAmbitPushSDK]"
13 |
:
15 | private var bestAttemptContent: UNMutableNotificationContent?
16 |
17 | open override func didReceive(_ request: UNNotificationRequest,
| `- note: add @available attribute to enclosing instance method
18 | withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
19 | self.contentHandler = contentHandler
20 | self.bestAttemptContent = request.content.mutableCopy() as? UNMutableNotificationContent
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationService.swift:40:38: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
9 | /// Override `handlePayload(_:content:)` to mutate notification content
10 | /// (title, body, badge, threadIdentifier, etc.) before delivery.
11 | open class AppAmbitNotificationService: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
12 | private static let tag = "[AppAmbitPushSDK]"
13 |
:
37 |
38 | /// Hook for subclasses to mutate `content` before delivery. Default: no-op.
39 | open func handlePayload(_ notification: AppAmbitNotification,
| `- note: add @available attribute to enclosing instance method
40 | content: UNMutableNotificationContent) {
| `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
41 | // Subclasses can mutate content here before delivery.
42 | }
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationService.swift:45:47: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
9 | /// Override `handlePayload(_:content:)` to mutate notification content
10 | /// (title, body, badge, threadIdentifier, etc.) before delivery.
11 | open class AppAmbitNotificationService: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
12 | private static let tag = "[AppAmbitPushSDK]"
13 |
:
42 | }
43 |
44 | private func attachImageIfNeeded(_ notification: AppAmbitNotification,
| `- note: add @available attribute to enclosing instance method
45 | content: UNMutableNotificationContent,
| `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
46 | contentHandler: @escaping (UNNotificationContent) -> Void) {
47 | guard let imageUrl = notification.imageUrl, !imageUrl.isEmpty else {
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationService.swift:46:65: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
9 | /// Override `handlePayload(_:content:)` to mutate notification content
10 | /// (title, body, badge, threadIdentifier, etc.) before delivery.
11 | open class AppAmbitNotificationService: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
12 | private static let tag = "[AppAmbitPushSDK]"
13 |
:
42 | }
43 |
44 | private func attachImageIfNeeded(_ notification: AppAmbitNotification,
| `- note: add @available attribute to enclosing instance method
45 | content: UNMutableNotificationContent,
46 | contentHandler: @escaping (UNNotificationContent) -> Void) {
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
47 | guard let imageUrl = notification.imageUrl, !imageUrl.isEmpty else {
48 | contentHandler(content)
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationService.swift:11:41: error: 'UNNotificationServiceExtension' is only available in macOS 10.14 or newer
9 | /// Override `handlePayload(_:content:)` to mutate notification content
10 | /// (title, body, badge, threadIdentifier, etc.) before delivery.
11 | open class AppAmbitNotificationService: UNNotificationServiceExtension {
| | `- error: 'UNNotificationServiceExtension' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing class
12 | private static let tag = "[AppAmbitPushSDK]"
13 |
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/PushNotificationAttachments.swift:8:67: error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
3 |
4 | /// Helper for handling notification attachments.
5 | public enum PushNotificationAttachments {
| `- note: add @available attribute to enclosing enum
6 |
7 | public static func loadImageAttachment(from urlString: String,
| `- note: add @available attribute to enclosing static method
8 | completion: @escaping (UNNotificationAttachment?) -> Void) {
| `- error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
9 | guard let url = URL(string: urlString) else {
10 | completion(nil)
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/PushNotificationAttachments.swift:44:67: error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
3 |
4 | /// Helper for handling notification attachments.
5 | public enum PushNotificationAttachments {
| `- note: add @available attribute to enclosing enum
6 |
7 | public static func loadImageAttachment(from urlString: String,
:
41 | }
42 |
43 | public static func loadImageAttachment(for notification: AppAmbitNotification,
| `- note: add @available attribute to enclosing static method
44 | completion: @escaping (UNNotificationAttachment?) -> Void) {
| `- error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
45 | guard let urlString = notification.imageUrl, !urlString.isEmpty else {
46 | completion(nil)
[10/131] Compiling AppAmbitPushNotificationsExtension AppAmbitNotificationProcessor.swift
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationProcessor.swift:11:18: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
5 | @objc(AppAmbitNotificationProcessor)
6 | @objcMembers
7 | public final class AppAmbitNotificationProcessor: NSObject {
| `- note: add @available attribute to enclosing class
8 |
9 | @objc(processRequest:contentHandler:handlePayload:)
10 | public static func process(
| `- note: add @available attribute to enclosing static method
11 | request: UNNotificationRequest,
| `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
12 | contentHandler: @escaping (UNNotificationContent) -> Void,
13 | handlePayload: ((AppAmbitNotification, UNMutableNotificationContent) -> Void)? = nil
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationProcessor.swift:12:36: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
5 | @objc(AppAmbitNotificationProcessor)
6 | @objcMembers
7 | public final class AppAmbitNotificationProcessor: NSObject {
| `- note: add @available attribute to enclosing class
8 |
9 | @objc(processRequest:contentHandler:handlePayload:)
10 | public static func process(
| `- note: add @available attribute to enclosing static method
11 | request: UNNotificationRequest,
12 | contentHandler: @escaping (UNNotificationContent) -> Void,
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
13 | handlePayload: ((AppAmbitNotification, UNMutableNotificationContent) -> Void)? = nil
14 | ) {
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationProcessor.swift:13:48: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
5 | @objc(AppAmbitNotificationProcessor)
6 | @objcMembers
7 | public final class AppAmbitNotificationProcessor: NSObject {
| `- note: add @available attribute to enclosing class
8 |
9 | @objc(processRequest:contentHandler:handlePayload:)
10 | public static func process(
| `- note: add @available attribute to enclosing static method
11 | request: UNNotificationRequest,
12 | contentHandler: @escaping (UNNotificationContent) -> Void,
13 | handlePayload: ((AppAmbitNotification, UNMutableNotificationContent) -> Void)? = nil
| `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
14 | ) {
15 | PushLogger.log("Service Extension triggered.")
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationProcessor.swift:28:54: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
5 | @objc(AppAmbitNotificationProcessor)
6 | @objcMembers
7 | public final class AppAmbitNotificationProcessor: NSObject {
| `- note: add @available attribute to enclosing class
8 |
9 | @objc(processRequest:contentHandler:handlePayload:)
:
25 | }
26 |
27 | private static func attachImageIfNeeded(_ notification: AppAmbitNotification,
| `- note: add @available attribute to enclosing static method
28 | content: UNMutableNotificationContent,
| `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
29 | contentHandler: @escaping (UNNotificationContent) -> Void) {
30 | guard let imageUrl = notification.imageUrl, !imageUrl.isEmpty else {
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationProcessor.swift:29:72: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
5 | @objc(AppAmbitNotificationProcessor)
6 | @objcMembers
7 | public final class AppAmbitNotificationProcessor: NSObject {
| `- note: add @available attribute to enclosing class
8 |
9 | @objc(processRequest:contentHandler:handlePayload:)
:
25 | }
26 |
27 | private static func attachImageIfNeeded(_ notification: AppAmbitNotification,
| `- note: add @available attribute to enclosing static method
28 | content: UNMutableNotificationContent,
29 | contentHandler: @escaping (UNNotificationContent) -> Void) {
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
30 | guard let imageUrl = notification.imageUrl, !imageUrl.isEmpty else {
31 | contentHandler(content)
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationProcessor.swift:17:63: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
5 | @objc(AppAmbitNotificationProcessor)
6 | @objcMembers
7 | public final class AppAmbitNotificationProcessor: NSObject {
| `- note: add @available attribute to enclosing class
8 |
9 | @objc(processRequest:contentHandler:handlePayload:)
10 | public static func process(
| `- note: add @available attribute to enclosing static method
11 | request: UNNotificationRequest,
12 | contentHandler: @escaping (UNNotificationContent) -> Void,
:
15 | PushLogger.log("Service Extension triggered.")
16 |
17 | guard let content = request.content.mutableCopy() as? UNMutableNotificationContent else {
| |- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
18 | contentHandler(request.content)
19 | return
[11/131] Compiling AppAmbitPushNotificationsExtension PushNotificationAttachments.swift
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/PushNotificationAttachments.swift:8:67: error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
3 |
4 | /// Helper for handling notification attachments.
5 | public enum PushNotificationAttachments {
| `- note: add @available attribute to enclosing enum
6 |
7 | public static func loadImageAttachment(from urlString: String,
| `- note: add @available attribute to enclosing static method
8 | completion: @escaping (UNNotificationAttachment?) -> Void) {
| `- error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
9 | guard let url = URL(string: urlString) else {
10 | completion(nil)
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/PushNotificationAttachments.swift:44:67: error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
3 |
4 | /// Helper for handling notification attachments.
5 | public enum PushNotificationAttachments {
| `- note: add @available attribute to enclosing enum
6 |
7 | public static func loadImageAttachment(from urlString: String,
:
41 | }
42 |
43 | public static func loadImageAttachment(for notification: AppAmbitNotification,
| `- note: add @available attribute to enclosing static method
44 | completion: @escaping (UNNotificationAttachment?) -> Void) {
| `- error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
45 | guard let urlString = notification.imageUrl, !urlString.isEmpty else {
46 | completion(nil)
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/PushNotificationAttachments.swift:28:38: error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
3 |
4 | /// Helper for handling notification attachments.
5 | public enum PushNotificationAttachments {
| `- note: add @available attribute to enclosing enum
6 |
7 | public static func loadImageAttachment(from urlString: String,
| `- note: add @available attribute to enclosing static method
8 | completion: @escaping (UNNotificationAttachment?) -> Void) {
9 | guard let url = URL(string: urlString) else {
:
26 | do {
27 | try FileManager.default.moveItem(at: tempUrl, to: localUrl)
28 | let attachment = try UNNotificationAttachment(
| |- error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
29 | identifier: "image",
30 | url: localUrl,
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/PushNotificationAttachments.swift:17:17: warning: capture of 'completion' with non-sendable type '(UNNotificationAttachment?) -> Void' in a '@Sendable' closure
15 | guard let tempUrl, error == nil else {
16 | NSLog("[AppAmbitPushSDK] Download failed: %@", error?.localizedDescription ?? "Invalid URL")
17 | completion(nil)
| |- warning: capture of 'completion' with non-sendable type '(UNNotificationAttachment?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
18 | return
19 | }
[12/131] Compiling AppAmbit TokenService.swift
/Users/admin/builder/spi-builder-workspace/AppAmbitSdk/Sources/AppAmbit.swift:1:8: error: no such module 'UIKit'
1 | import UIKit
| `- error: no such module 'UIKit'
2 | import Foundation
3 | import Network
[13/131] Compiling AppAmbit SessionManager.swift
/Users/admin/builder/spi-builder-workspace/AppAmbitSdk/Sources/AppAmbit.swift:1:8: error: no such module 'UIKit'
1 | import UIKit
| `- error: no such module 'UIKit'
2 | import Foundation
3 | import Network
[14/131] Compiling AppAmbit AppAmbitLogger.swift
/Users/admin/builder/spi-builder-workspace/AppAmbitSdk/Sources/AppAmbit.swift:1:8: error: no such module 'UIKit'
1 | import UIKit
| `- error: no such module 'UIKit'
2 | import Foundation
3 | import Network
[15/131] Compiling AppAmbit DateUtils.swift
/Users/admin/builder/spi-builder-workspace/AppAmbitSdk/Sources/AppAmbit.swift:1:8: error: no such module 'UIKit'
1 | import UIKit
| `- error: no such module 'UIKit'
2 | import Foundation
3 | import Network
[16/131] Compiling AppAmbit DecoderUtils.swift
/Users/admin/builder/spi-builder-workspace/AppAmbitSdk/Sources/AppAmbit.swift:1:8: error: no such module 'UIKit'
1 | import UIKit
| `- error: no such module 'UIKit'
2 | import Foundation
3 | import Network
[17/131] Compiling AppAmbit FileUtils.swift
/Users/admin/builder/spi-builder-workspace/AppAmbitSdk/Sources/AppAmbit.swift:1:8: error: no such module 'UIKit'
1 | import UIKit
| `- error: no such module 'UIKit'
2 | import Foundation
3 | import Network
[18/131] Compiling AppAmbit IIdentifiable.swift
/Users/admin/builder/spi-builder-workspace/AppAmbitSdk/Sources/AppAmbit.swift:1:8: error: no such module 'UIKit'
1 | import UIKit
| `- error: no such module 'UIKit'
2 | import Foundation
3 | import Network
[19/131] Compiling AppAmbit MultipartFormDataBuilder.swift
/Users/admin/builder/spi-builder-workspace/AppAmbitSdk/Sources/AppAmbit.swift:1:8: error: no such module 'UIKit'
1 | import UIKit
| `- error: no such module 'UIKit'
2 | import Foundation
3 | import Network
[20/131] Compiling AppAmbit QueuesApp.swift
/Users/admin/builder/spi-builder-workspace/AppAmbitSdk/Sources/AppAmbit.swift:1:8: error: no such module 'UIKit'
1 | import UIKit
| `- error: no such module 'UIKit'
2 | import Foundation
3 | import Network
[21/131] Compiling AppAmbit StackUtils.swift
/Users/admin/builder/spi-builder-workspace/AppAmbitSdk/Sources/AppAmbit.swift:1:8: error: no such module 'UIKit'
1 | import UIKit
| `- error: no such module 'UIKit'
2 | import Foundation
3 | import Network
[22/131] Compiling AppAmbit StringValidation.swift
/Users/admin/builder/spi-builder-workspace/AppAmbitSdk/Sources/AppAmbit.swift:1:8: error: no such module 'UIKit'
1 | import UIKit
| `- error: no such module 'UIKit'
2 | import Foundation
3 | import Network
[23/131] Compiling AppAmbit URLQueryBuilder.swift
/Users/admin/builder/spi-builder-workspace/AppAmbitSdk/Sources/AppAmbit.swift:1:8: error: no such module 'UIKit'
1 | import UIKit
| `- error: no such module 'UIKit'
2 | import Foundation
3 | import Network
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/116] Compiling AppAmbitPushNotificationsExtension PushLogger.swift
[3/116] Compiling AppAmbitPushNotificationsExtension AppAmbitNotification.swift
[4/116] Compiling AppAmbitPushNotificationsExtension AppAmbitNotificationService.swift
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationService.swift:14:35: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
9 | /// Override `handlePayload(_:content:)` to mutate notification content
10 | /// (title, body, badge, threadIdentifier, etc.) before delivery.
11 | open class AppAmbitNotificationService: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
12 | private static let tag = "[AppAmbitPushSDK]"
13 |
14 | private var contentHandler: ((UNNotificationContent) -> Void)?
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
15 | private var bestAttemptContent: UNMutableNotificationContent?
16 |
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationService.swift:15:37: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
9 | /// Override `handlePayload(_:content:)` to mutate notification content
10 | /// (title, body, badge, threadIdentifier, etc.) before delivery.
11 | open class AppAmbitNotificationService: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
12 | private static let tag = "[AppAmbitPushSDK]"
13 |
14 | private var contentHandler: ((UNNotificationContent) -> Void)?
15 | private var bestAttemptContent: UNMutableNotificationContent?
| `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
16 |
17 | open override func didReceive(_ request: UNNotificationRequest,
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationService.swift:17:46: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
9 | /// Override `handlePayload(_:content:)` to mutate notification content
10 | /// (title, body, badge, threadIdentifier, etc.) before delivery.
11 | open class AppAmbitNotificationService: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
12 | private static let tag = "[AppAmbitPushSDK]"
13 |
:
15 | private var bestAttemptContent: UNMutableNotificationContent?
16 |
17 | open override func didReceive(_ request: UNNotificationRequest,
| | `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing instance method
18 | withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
19 | self.contentHandler = contentHandler
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationService.swift:18:81: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
9 | /// Override `handlePayload(_:content:)` to mutate notification content
10 | /// (title, body, badge, threadIdentifier, etc.) before delivery.
11 | open class AppAmbitNotificationService: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
12 | private static let tag = "[AppAmbitPushSDK]"
13 |
:
15 | private var bestAttemptContent: UNMutableNotificationContent?
16 |
17 | open override func didReceive(_ request: UNNotificationRequest,
| `- note: add @available attribute to enclosing instance method
18 | withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
19 | self.contentHandler = contentHandler
20 | self.bestAttemptContent = request.content.mutableCopy() as? UNMutableNotificationContent
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationService.swift:40:38: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
9 | /// Override `handlePayload(_:content:)` to mutate notification content
10 | /// (title, body, badge, threadIdentifier, etc.) before delivery.
11 | open class AppAmbitNotificationService: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
12 | private static let tag = "[AppAmbitPushSDK]"
13 |
:
37 |
38 | /// Hook for subclasses to mutate `content` before delivery. Default: no-op.
39 | open func handlePayload(_ notification: AppAmbitNotification,
| `- note: add @available attribute to enclosing instance method
40 | content: UNMutableNotificationContent) {
| `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
41 | // Subclasses can mutate content here before delivery.
42 | }
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationService.swift:45:47: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
9 | /// Override `handlePayload(_:content:)` to mutate notification content
10 | /// (title, body, badge, threadIdentifier, etc.) before delivery.
11 | open class AppAmbitNotificationService: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
12 | private static let tag = "[AppAmbitPushSDK]"
13 |
:
42 | }
43 |
44 | private func attachImageIfNeeded(_ notification: AppAmbitNotification,
| `- note: add @available attribute to enclosing instance method
45 | content: UNMutableNotificationContent,
| `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
46 | contentHandler: @escaping (UNNotificationContent) -> Void) {
47 | guard let imageUrl = notification.imageUrl, !imageUrl.isEmpty else {
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationService.swift:46:65: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
9 | /// Override `handlePayload(_:content:)` to mutate notification content
10 | /// (title, body, badge, threadIdentifier, etc.) before delivery.
11 | open class AppAmbitNotificationService: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
12 | private static let tag = "[AppAmbitPushSDK]"
13 |
:
42 | }
43 |
44 | private func attachImageIfNeeded(_ notification: AppAmbitNotification,
| `- note: add @available attribute to enclosing instance method
45 | content: UNMutableNotificationContent,
46 | contentHandler: @escaping (UNNotificationContent) -> Void) {
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
47 | guard let imageUrl = notification.imageUrl, !imageUrl.isEmpty else {
48 | contentHandler(content)
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationService.swift:11:41: error: 'UNNotificationServiceExtension' is only available in macOS 10.14 or newer
9 | /// Override `handlePayload(_:content:)` to mutate notification content
10 | /// (title, body, badge, threadIdentifier, etc.) before delivery.
11 | open class AppAmbitNotificationService: UNNotificationServiceExtension {
| | `- error: 'UNNotificationServiceExtension' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing class
12 | private static let tag = "[AppAmbitPushSDK]"
13 |
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationService.swift:20:69: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
9 | /// Override `handlePayload(_:content:)` to mutate notification content
10 | /// (title, body, badge, threadIdentifier, etc.) before delivery.
11 | open class AppAmbitNotificationService: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
12 | private static let tag = "[AppAmbitPushSDK]"
13 |
:
15 | private var bestAttemptContent: UNMutableNotificationContent?
16 |
17 | open override func didReceive(_ request: UNNotificationRequest,
| `- note: add @available attribute to enclosing instance method
18 | withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
19 | self.contentHandler = contentHandler
20 | self.bestAttemptContent = request.content.mutableCopy() as? UNMutableNotificationContent
| |- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
21 |
22 | guard let content = bestAttemptContent else {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/116] Emitting module AppAmbitPushNotificationsExtension
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationProcessor.swift:11:18: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
5 | @objc(AppAmbitNotificationProcessor)
6 | @objcMembers
7 | public final class AppAmbitNotificationProcessor: NSObject {
| `- note: add @available attribute to enclosing class
8 |
9 | @objc(processRequest:contentHandler:handlePayload:)
10 | public static func process(
| `- note: add @available attribute to enclosing static method
11 | request: UNNotificationRequest,
| `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
12 | contentHandler: @escaping (UNNotificationContent) -> Void,
13 | handlePayload: ((AppAmbitNotification, UNMutableNotificationContent) -> Void)? = nil
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationProcessor.swift:12:36: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
5 | @objc(AppAmbitNotificationProcessor)
6 | @objcMembers
7 | public final class AppAmbitNotificationProcessor: NSObject {
| `- note: add @available attribute to enclosing class
8 |
9 | @objc(processRequest:contentHandler:handlePayload:)
10 | public static func process(
| `- note: add @available attribute to enclosing static method
11 | request: UNNotificationRequest,
12 | contentHandler: @escaping (UNNotificationContent) -> Void,
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
13 | handlePayload: ((AppAmbitNotification, UNMutableNotificationContent) -> Void)? = nil
14 | ) {
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationProcessor.swift:13:48: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
5 | @objc(AppAmbitNotificationProcessor)
6 | @objcMembers
7 | public final class AppAmbitNotificationProcessor: NSObject {
| `- note: add @available attribute to enclosing class
8 |
9 | @objc(processRequest:contentHandler:handlePayload:)
10 | public static func process(
| `- note: add @available attribute to enclosing static method
11 | request: UNNotificationRequest,
12 | contentHandler: @escaping (UNNotificationContent) -> Void,
13 | handlePayload: ((AppAmbitNotification, UNMutableNotificationContent) -> Void)? = nil
| `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
14 | ) {
15 | PushLogger.log("Service Extension triggered.")
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationProcessor.swift:28:54: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
5 | @objc(AppAmbitNotificationProcessor)
6 | @objcMembers
7 | public final class AppAmbitNotificationProcessor: NSObject {
| `- note: add @available attribute to enclosing class
8 |
9 | @objc(processRequest:contentHandler:handlePayload:)
:
25 | }
26 |
27 | private static func attachImageIfNeeded(_ notification: AppAmbitNotification,
| `- note: add @available attribute to enclosing static method
28 | content: UNMutableNotificationContent,
| `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
29 | contentHandler: @escaping (UNNotificationContent) -> Void) {
30 | guard let imageUrl = notification.imageUrl, !imageUrl.isEmpty else {
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationProcessor.swift:29:72: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
5 | @objc(AppAmbitNotificationProcessor)
6 | @objcMembers
7 | public final class AppAmbitNotificationProcessor: NSObject {
| `- note: add @available attribute to enclosing class
8 |
9 | @objc(processRequest:contentHandler:handlePayload:)
:
25 | }
26 |
27 | private static func attachImageIfNeeded(_ notification: AppAmbitNotification,
| `- note: add @available attribute to enclosing static method
28 | content: UNMutableNotificationContent,
29 | contentHandler: @escaping (UNNotificationContent) -> Void) {
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
30 | guard let imageUrl = notification.imageUrl, !imageUrl.isEmpty else {
31 | contentHandler(content)
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationService.swift:14:35: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
9 | /// Override `handlePayload(_:content:)` to mutate notification content
10 | /// (title, body, badge, threadIdentifier, etc.) before delivery.
11 | open class AppAmbitNotificationService: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
12 | private static let tag = "[AppAmbitPushSDK]"
13 |
14 | private var contentHandler: ((UNNotificationContent) -> Void)?
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
15 | private var bestAttemptContent: UNMutableNotificationContent?
16 |
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationService.swift:15:37: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
9 | /// Override `handlePayload(_:content:)` to mutate notification content
10 | /// (title, body, badge, threadIdentifier, etc.) before delivery.
11 | open class AppAmbitNotificationService: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
12 | private static let tag = "[AppAmbitPushSDK]"
13 |
14 | private var contentHandler: ((UNNotificationContent) -> Void)?
15 | private var bestAttemptContent: UNMutableNotificationContent?
| `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
16 |
17 | open override func didReceive(_ request: UNNotificationRequest,
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationService.swift:17:46: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
9 | /// Override `handlePayload(_:content:)` to mutate notification content
10 | /// (title, body, badge, threadIdentifier, etc.) before delivery.
11 | open class AppAmbitNotificationService: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
12 | private static let tag = "[AppAmbitPushSDK]"
13 |
:
15 | private var bestAttemptContent: UNMutableNotificationContent?
16 |
17 | open override func didReceive(_ request: UNNotificationRequest,
| | `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing instance method
18 | withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
19 | self.contentHandler = contentHandler
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationService.swift:18:81: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
9 | /// Override `handlePayload(_:content:)` to mutate notification content
10 | /// (title, body, badge, threadIdentifier, etc.) before delivery.
11 | open class AppAmbitNotificationService: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
12 | private static let tag = "[AppAmbitPushSDK]"
13 |
:
15 | private var bestAttemptContent: UNMutableNotificationContent?
16 |
17 | open override func didReceive(_ request: UNNotificationRequest,
| `- note: add @available attribute to enclosing instance method
18 | withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
19 | self.contentHandler = contentHandler
20 | self.bestAttemptContent = request.content.mutableCopy() as? UNMutableNotificationContent
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationService.swift:40:38: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
9 | /// Override `handlePayload(_:content:)` to mutate notification content
10 | /// (title, body, badge, threadIdentifier, etc.) before delivery.
11 | open class AppAmbitNotificationService: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
12 | private static let tag = "[AppAmbitPushSDK]"
13 |
:
37 |
38 | /// Hook for subclasses to mutate `content` before delivery. Default: no-op.
39 | open func handlePayload(_ notification: AppAmbitNotification,
| `- note: add @available attribute to enclosing instance method
40 | content: UNMutableNotificationContent) {
| `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
41 | // Subclasses can mutate content here before delivery.
42 | }
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationService.swift:45:47: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
9 | /// Override `handlePayload(_:content:)` to mutate notification content
10 | /// (title, body, badge, threadIdentifier, etc.) before delivery.
11 | open class AppAmbitNotificationService: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
12 | private static let tag = "[AppAmbitPushSDK]"
13 |
:
42 | }
43 |
44 | private func attachImageIfNeeded(_ notification: AppAmbitNotification,
| `- note: add @available attribute to enclosing instance method
45 | content: UNMutableNotificationContent,
| `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
46 | contentHandler: @escaping (UNNotificationContent) -> Void) {
47 | guard let imageUrl = notification.imageUrl, !imageUrl.isEmpty else {
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationService.swift:46:65: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
9 | /// Override `handlePayload(_:content:)` to mutate notification content
10 | /// (title, body, badge, threadIdentifier, etc.) before delivery.
11 | open class AppAmbitNotificationService: UNNotificationServiceExtension {
| `- note: add @available attribute to enclosing class
12 | private static let tag = "[AppAmbitPushSDK]"
13 |
:
42 | }
43 |
44 | private func attachImageIfNeeded(_ notification: AppAmbitNotification,
| `- note: add @available attribute to enclosing instance method
45 | content: UNMutableNotificationContent,
46 | contentHandler: @escaping (UNNotificationContent) -> Void) {
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
47 | guard let imageUrl = notification.imageUrl, !imageUrl.isEmpty else {
48 | contentHandler(content)
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationService.swift:11:41: error: 'UNNotificationServiceExtension' is only available in macOS 10.14 or newer
9 | /// Override `handlePayload(_:content:)` to mutate notification content
10 | /// (title, body, badge, threadIdentifier, etc.) before delivery.
11 | open class AppAmbitNotificationService: UNNotificationServiceExtension {
| | `- error: 'UNNotificationServiceExtension' is only available in macOS 10.14 or newer
| `- note: add @available attribute to enclosing class
12 | private static let tag = "[AppAmbitPushSDK]"
13 |
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/PushNotificationAttachments.swift:8:67: error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
3 |
4 | /// Helper for handling notification attachments.
5 | public enum PushNotificationAttachments {
| `- note: add @available attribute to enclosing enum
6 |
7 | public static func loadImageAttachment(from urlString: String,
| `- note: add @available attribute to enclosing static method
8 | completion: @escaping (UNNotificationAttachment?) -> Void) {
| `- error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
9 | guard let url = URL(string: urlString) else {
10 | completion(nil)
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/PushNotificationAttachments.swift:44:67: error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
3 |
4 | /// Helper for handling notification attachments.
5 | public enum PushNotificationAttachments {
| `- note: add @available attribute to enclosing enum
6 |
7 | public static func loadImageAttachment(from urlString: String,
:
41 | }
42 |
43 | public static func loadImageAttachment(for notification: AppAmbitNotification,
| `- note: add @available attribute to enclosing static method
44 | completion: @escaping (UNNotificationAttachment?) -> Void) {
| `- error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
45 | guard let urlString = notification.imageUrl, !urlString.isEmpty else {
46 | completion(nil)
[6/116] Compiling AppAmbitPushNotificationsExtension AppAmbitNotificationProcessor.swift
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationProcessor.swift:11:18: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
5 | @objc(AppAmbitNotificationProcessor)
6 | @objcMembers
7 | public final class AppAmbitNotificationProcessor: NSObject {
| `- note: add @available attribute to enclosing class
8 |
9 | @objc(processRequest:contentHandler:handlePayload:)
10 | public static func process(
| `- note: add @available attribute to enclosing static method
11 | request: UNNotificationRequest,
| `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
12 | contentHandler: @escaping (UNNotificationContent) -> Void,
13 | handlePayload: ((AppAmbitNotification, UNMutableNotificationContent) -> Void)? = nil
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationProcessor.swift:12:36: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
5 | @objc(AppAmbitNotificationProcessor)
6 | @objcMembers
7 | public final class AppAmbitNotificationProcessor: NSObject {
| `- note: add @available attribute to enclosing class
8 |
9 | @objc(processRequest:contentHandler:handlePayload:)
10 | public static func process(
| `- note: add @available attribute to enclosing static method
11 | request: UNNotificationRequest,
12 | contentHandler: @escaping (UNNotificationContent) -> Void,
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
13 | handlePayload: ((AppAmbitNotification, UNMutableNotificationContent) -> Void)? = nil
14 | ) {
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationProcessor.swift:13:48: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
5 | @objc(AppAmbitNotificationProcessor)
6 | @objcMembers
7 | public final class AppAmbitNotificationProcessor: NSObject {
| `- note: add @available attribute to enclosing class
8 |
9 | @objc(processRequest:contentHandler:handlePayload:)
10 | public static func process(
| `- note: add @available attribute to enclosing static method
11 | request: UNNotificationRequest,
12 | contentHandler: @escaping (UNNotificationContent) -> Void,
13 | handlePayload: ((AppAmbitNotification, UNMutableNotificationContent) -> Void)? = nil
| `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
14 | ) {
15 | PushLogger.log("Service Extension triggered.")
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationProcessor.swift:28:54: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
5 | @objc(AppAmbitNotificationProcessor)
6 | @objcMembers
7 | public final class AppAmbitNotificationProcessor: NSObject {
| `- note: add @available attribute to enclosing class
8 |
9 | @objc(processRequest:contentHandler:handlePayload:)
:
25 | }
26 |
27 | private static func attachImageIfNeeded(_ notification: AppAmbitNotification,
| `- note: add @available attribute to enclosing static method
28 | content: UNMutableNotificationContent,
| `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
29 | contentHandler: @escaping (UNNotificationContent) -> Void) {
30 | guard let imageUrl = notification.imageUrl, !imageUrl.isEmpty else {
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationProcessor.swift:29:72: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
5 | @objc(AppAmbitNotificationProcessor)
6 | @objcMembers
7 | public final class AppAmbitNotificationProcessor: NSObject {
| `- note: add @available attribute to enclosing class
8 |
9 | @objc(processRequest:contentHandler:handlePayload:)
:
25 | }
26 |
27 | private static func attachImageIfNeeded(_ notification: AppAmbitNotification,
| `- note: add @available attribute to enclosing static method
28 | content: UNMutableNotificationContent,
29 | contentHandler: @escaping (UNNotificationContent) -> Void) {
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
30 | guard let imageUrl = notification.imageUrl, !imageUrl.isEmpty else {
31 | contentHandler(content)
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/AppAmbitNotificationProcessor.swift:17:63: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
5 | @objc(AppAmbitNotificationProcessor)
6 | @objcMembers
7 | public final class AppAmbitNotificationProcessor: NSObject {
| `- note: add @available attribute to enclosing class
8 |
9 | @objc(processRequest:contentHandler:handlePayload:)
10 | public static func process(
| `- note: add @available attribute to enclosing static method
11 | request: UNNotificationRequest,
12 | contentHandler: @escaping (UNNotificationContent) -> Void,
:
15 | PushLogger.log("Service Extension triggered.")
16 |
17 | guard let content = request.content.mutableCopy() as? UNMutableNotificationContent else {
| |- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
18 | contentHandler(request.content)
19 | return
[7/116] Compiling AppAmbitPushNotificationsExtension PushNotificationAttachments.swift
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/PushNotificationAttachments.swift:8:67: error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
3 |
4 | /// Helper for handling notification attachments.
5 | public enum PushNotificationAttachments {
| `- note: add @available attribute to enclosing enum
6 |
7 | public static func loadImageAttachment(from urlString: String,
| `- note: add @available attribute to enclosing static method
8 | completion: @escaping (UNNotificationAttachment?) -> Void) {
| `- error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
9 | guard let url = URL(string: urlString) else {
10 | completion(nil)
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/PushNotificationAttachments.swift:44:67: error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
3 |
4 | /// Helper for handling notification attachments.
5 | public enum PushNotificationAttachments {
| `- note: add @available attribute to enclosing enum
6 |
7 | public static func loadImageAttachment(from urlString: String,
:
41 | }
42 |
43 | public static func loadImageAttachment(for notification: AppAmbitNotification,
| `- note: add @available attribute to enclosing static method
44 | completion: @escaping (UNNotificationAttachment?) -> Void) {
| `- error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
45 | guard let urlString = notification.imageUrl, !urlString.isEmpty else {
46 | completion(nil)
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/PushNotificationAttachments.swift:28:38: error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
3 |
4 | /// Helper for handling notification attachments.
5 | public enum PushNotificationAttachments {
| `- note: add @available attribute to enclosing enum
6 |
7 | public static func loadImageAttachment(from urlString: String,
| `- note: add @available attribute to enclosing static method
8 | completion: @escaping (UNNotificationAttachment?) -> Void) {
9 | guard let url = URL(string: urlString) else {
:
26 | do {
27 | try FileManager.default.moveItem(at: tempUrl, to: localUrl)
28 | let attachment = try UNNotificationAttachment(
| |- error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
29 | identifier: "image",
30 | url: localUrl,
/Users/admin/builder/spi-builder-workspace/PushExtensionSources/PushNotificationAttachments.swift:17:17: warning: capture of 'completion' with non-sendable type '(UNNotificationAttachment?) -> Void' in a '@Sendable' closure
15 | guard let tempUrl, error == nil else {
16 | NSLog("[AppAmbitPushSDK] Download failed: %@", error?.localizedDescription ?? "Invalid URL")
17 | completion(nil)
| |- warning: capture of 'completion' with non-sendable type '(UNNotificationAttachment?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
18 | return
19 | }
BUILD FAILURE 6.1 macosSpm