Build Information
Failed to build klaviyo-swift-sdk, reference 5.1.1 (321f48), with Swift 6.2 for macOS (SPM) on 12 Nov 2025 23:34:36 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/klaviyo/klaviyo-swift-sdk.git
Reference: 5.1.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/klaviyo/klaviyo-swift-sdk
* tag 5.1.1 -> FETCH_HEAD
HEAD is now at 321f481 Release 5.1.1 (#446)
Cloned https://github.com/klaviyo/klaviyo-swift-sdk.git
Revision (git rev-parse @):
321f481c0afaf1a6efac3c15df1d632bca0ebb19
SUCCESS checkout https://github.com/klaviyo/klaviyo-swift-sdk.git at 5.1.1
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
Fetching https://github.com/pointfreeco/swift-custom-dump
Fetching https://github.com/Flight-School/AnyCodable
Fetching https://github.com/pointfreeco/swift-snapshot-testing
Fetching https://github.com/pointfreeco/swift-case-paths
Fetching https://github.com/pointfreeco/combine-schedulers
[1/2538] Fetching combine-schedulers
[128/7139] Fetching combine-schedulers, swift-custom-dump
[267/7921] Fetching combine-schedulers, swift-custom-dump, anycodable
[1898/12442] Fetching combine-schedulers, swift-custom-dump, anycodable, swift-case-paths
[2220/17997] Fetching combine-schedulers, swift-custom-dump, anycodable, swift-case-paths, xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/combine-schedulers from cache (1.06s)
[12015/15459] Fetching swift-custom-dump, anycodable, swift-case-paths, xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (1.08s)
Fetched https://github.com/pointfreeco/swift-case-paths from cache (1.08s)
[2949/6337] Fetching anycodable, xctest-dynamic-overlay
[6338/21936] Fetching anycodable, xctest-dynamic-overlay, swift-snapshot-testing
Fetched https://github.com/pointfreeco/swift-snapshot-testing from cache (3.07s)
Fetched https://github.com/Flight-School/AnyCodable from cache (3.07s)
Computing version for https://github.com/pointfreeco/combine-schedulers
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (3.07s)
Computed https://github.com/pointfreeco/combine-schedulers at 0.9.1 (5.87s)
Computing version for https://github.com/pointfreeco/swift-case-paths
Computed https://github.com/pointfreeco/swift-case-paths at 0.10.1 (0.63s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 0.6.1 (0.61s)
Computing version for https://github.com/Flight-School/AnyCodable
Computed https://github.com/Flight-School/AnyCodable at 0.6.7 (0.60s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.10.0 (0.60s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 0.6.0 (0.60s)
Creating working copy for https://github.com/Flight-School/AnyCodable
Working copy of https://github.com/Flight-School/AnyCodable resolved at 0.6.7
Creating working copy for https://github.com/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 0.6.1
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 0.6.0
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing
Working copy of https://github.com/pointfreeco/swift-snapshot-testing resolved at 1.10.0
Creating working copy for https://github.com/pointfreeco/swift-case-paths
Working copy of https://github.com/pointfreeco/swift-case-paths resolved at 0.10.1
Creating working copy for https://github.com/pointfreeco/combine-schedulers
Working copy of https://github.com/pointfreeco/combine-schedulers resolved at 0.9.1
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "klaviyo-swift-sdk",
"name": "klaviyo-swift-sdk",
"url": "https://github.com/klaviyo/klaviyo-swift-sdk.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/klaviyo-swift-sdk",
"dependencies": [
{
"identity": "anycodable",
"name": "AnyCodable",
"url": "https://github.com/Flight-School/AnyCodable",
"version": "0.6.7",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/AnyCodable",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/klaviyo/klaviyo-swift-sdk.git
[1/16938] Fetching klaviyo-swift-sdk
Fetched https://github.com/klaviyo/klaviyo-swift-sdk.git from cache (2.11s)
Fetching https://github.com/Flight-School/AnyCodable from cache
Fetched https://github.com/Flight-School/AnyCodable from cache (0.42s)
Computing version for https://github.com/Flight-School/AnyCodable
Computed https://github.com/Flight-School/AnyCodable at 0.6.7 (0.48s)
Creating working copy for https://github.com/klaviyo/klaviyo-swift-sdk.git
Working copy of https://github.com/klaviyo/klaviyo-swift-sdk.git resolved at 5.1.1 (321f481)
Creating working copy for https://github.com/Flight-School/AnyCodable
Working copy of https://github.com/Flight-School/AnyCodable resolved at 0.6.7
warning: '.resolve-product-dependencies': dependency 'klaviyo-swift-sdk' is not used by any target
Found 1 product dependencies
- AnyCodable
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/klaviyo/klaviyo-swift-sdk.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0.app xcrun swift build --arch arm64
Building for debugging...
[0/13] Write sources
[5/13] Copying klaviyo.html
[6/13] Copying toggleHandler.js
[6/13] Copying PrivacyInfo.xcprivacy
[7/13] Copying InAppFormsTemplate.html
[7/13] Copying consoleHandler.js
[7/13] Copying closeHandler.js
[9/13] Copying jstest.html
[12/13] Write swift-version-49B95AFC49DCD68C.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[14/19] Emitting module KlaviyoSwiftExtension
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:39:18: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
24 | }
25 |
26 | public enum KlaviyoExtensionSDK {
| `- note: add '@available' attribute to enclosing enum
27 | /// Call this method when you receive a rich push notification in the notification service extension.
28 | /// This method should be called from within `didReceive(_:withContentHandler:)` method of `UNNotificationServiceExtension`.
:
36 | /// - bestAttemptContent: this is also received in `didReceive(_:withContentHandler:)` and is the best attempt at mutating the APNS payload before attaching it to the push notification
37 | /// - contentHandler: this is also received in `didReceive(_:withContentHandler:)` and is the closure that needs to be called before the time iOS provides for us to mutate the content. This closure will be called with the `bestAttemptContent` once the image is downloaded and attached.
38 | public static func handleNotificationServiceDidReceivedRequest(
| `- note: add '@available' attribute to enclosing static method
39 | request: UNNotificationRequest,
| `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
40 | bestAttemptContent: UNMutableNotificationContent,
41 | contentHandler: @escaping (UNNotificationContent) -> Void,
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:40:29: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
24 | }
25 |
26 | public enum KlaviyoExtensionSDK {
| `- note: add '@available' attribute to enclosing enum
27 | /// Call this method when you receive a rich push notification in the notification service extension.
28 | /// This method should be called from within `didReceive(_:withContentHandler:)` method of `UNNotificationServiceExtension`.
:
36 | /// - bestAttemptContent: this is also received in `didReceive(_:withContentHandler:)` and is the best attempt at mutating the APNS payload before attaching it to the push notification
37 | /// - contentHandler: this is also received in `didReceive(_:withContentHandler:)` and is the closure that needs to be called before the time iOS provides for us to mutate the content. This closure will be called with the `bestAttemptContent` once the image is downloaded and attached.
38 | public static func handleNotificationServiceDidReceivedRequest(
| `- note: add '@available' attribute to enclosing static method
39 | request: UNNotificationRequest,
40 | bestAttemptContent: UNMutableNotificationContent,
| `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
41 | contentHandler: @escaping (UNNotificationContent) -> Void,
42 | fallbackMediaType: String = "jpeg"
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:41:36: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
24 | }
25 |
26 | public enum KlaviyoExtensionSDK {
| `- note: add '@available' attribute to enclosing enum
27 | /// Call this method when you receive a rich push notification in the notification service extension.
28 | /// This method should be called from within `didReceive(_:withContentHandler:)` method of `UNNotificationServiceExtension`.
:
36 | /// - bestAttemptContent: this is also received in `didReceive(_:withContentHandler:)` and is the best attempt at mutating the APNS payload before attaching it to the push notification
37 | /// - contentHandler: this is also received in `didReceive(_:withContentHandler:)` and is the closure that needs to be called before the time iOS provides for us to mutate the content. This closure will be called with the `bestAttemptContent` once the image is downloaded and attached.
38 | public static func handleNotificationServiceDidReceivedRequest(
| `- note: add '@available' attribute to enclosing static method
39 | request: UNNotificationRequest,
40 | bestAttemptContent: UNMutableNotificationContent,
41 | contentHandler: @escaping (UNNotificationContent) -> Void,
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
42 | fallbackMediaType: String = "jpeg"
43 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:53:57: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
24 | }
25 |
26 | public enum KlaviyoExtensionSDK {
| `- note: add '@available' attribute to enclosing enum
27 | /// Call this method when you receive a rich push notification in the notification service extension.
28 | /// This method should be called from within `didReceive(_:withContentHandler:)` method of `UNNotificationServiceExtension`.
:
51 | /// - Parameters:
52 | /// - bestAttemptContent: the best attempt at mutating the APNS payload before attaching it to the push notification
53 | private static func handleBadge(bestAttemptContent: UNMutableNotificationContent) {
| | `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
54 | guard let badgeConfigValue = bestAttemptContent.userInfo["badge_config"] as? String else { return }
55 | // retrieve the app group user defaults used to store the count
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:84:29: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
24 | }
25 |
26 | public enum KlaviyoExtensionSDK {
| `- note: add '@available' attribute to enclosing enum
27 | /// Call this method when you receive a rich push notification in the notification service extension.
28 | /// This method should be called from within `didReceive(_:withContentHandler:)` method of `UNNotificationServiceExtension`.
:
81 | /// - bestAttemptContent: the best attempt at mutating the APNS payload before attaching it to the push notification
82 | /// - contentHandler: the closure that needs to be called before the time iOS provides for us to mutate the content
83 | private static func handleRichMedia(
| `- note: add '@available' attribute to enclosing static method
84 | bestAttemptContent: UNMutableNotificationContent,
| `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
85 | contentHandler: @escaping (UNNotificationContent) -> Void,
86 | fallbackMediaType: String = "jpeg"
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:85:36: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
24 | }
25 |
26 | public enum KlaviyoExtensionSDK {
| `- note: add '@available' attribute to enclosing enum
27 | /// Call this method when you receive a rich push notification in the notification service extension.
28 | /// This method should be called from within `didReceive(_:withContentHandler:)` method of `UNNotificationServiceExtension`.
:
81 | /// - bestAttemptContent: the best attempt at mutating the APNS payload before attaching it to the push notification
82 | /// - contentHandler: the closure that needs to be called before the time iOS provides for us to mutate the content
83 | private static func handleRichMedia(
| `- note: add '@available' attribute to enclosing static method
84 | bestAttemptContent: UNMutableNotificationContent,
85 | contentHandler: @escaping (UNNotificationContent) -> Void,
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
86 | fallbackMediaType: String = "jpeg"
87 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:125:18: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
24 | }
25 |
26 | public enum KlaviyoExtensionSDK {
| `- note: add '@available' attribute to enclosing enum
27 | /// Call this method when you receive a rich push notification in the notification service extension.
28 | /// This method should be called from within `didReceive(_:withContentHandler:)` method of `UNNotificationServiceExtension`.
:
122 | }
123 |
124 | public static func handleNotificationServiceExtensionTimeWillExpireRequest(
| `- note: add '@available' attribute to enclosing static method
125 | request: UNNotificationRequest,
| `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
126 | bestAttemptContent: UNMutableNotificationContent,
127 | contentHandler: @escaping (UNNotificationContent) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:126:29: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
24 | }
25 |
26 | public enum KlaviyoExtensionSDK {
| `- note: add '@available' attribute to enclosing enum
27 | /// Call this method when you receive a rich push notification in the notification service extension.
28 | /// This method should be called from within `didReceive(_:withContentHandler:)` method of `UNNotificationServiceExtension`.
:
122 | }
123 |
124 | public static func handleNotificationServiceExtensionTimeWillExpireRequest(
| `- note: add '@available' attribute to enclosing static method
125 | request: UNNotificationRequest,
126 | bestAttemptContent: UNMutableNotificationContent,
| `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
127 | contentHandler: @escaping (UNNotificationContent) -> Void
128 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:127:36: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
24 | }
25 |
26 | public enum KlaviyoExtensionSDK {
| `- note: add '@available' attribute to enclosing enum
27 | /// Call this method when you receive a rich push notification in the notification service extension.
28 | /// This method should be called from within `didReceive(_:withContentHandler:)` method of `UNNotificationServiceExtension`.
:
122 | }
123 |
124 | public static func handleNotificationServiceExtensionTimeWillExpireRequest(
| `- note: add '@available' attribute to enclosing static method
125 | request: UNNotificationRequest,
126 | bestAttemptContent: UNMutableNotificationContent,
127 | contentHandler: @escaping (UNNotificationContent) -> Void
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
128 | ) {
129 | contentHandler(bestAttemptContent)
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:171:32: error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
24 | }
25 |
26 | public enum KlaviyoExtensionSDK {
| `- note: add '@available' attribute to enclosing enum
27 | /// Call this method when you receive a rich push notification in the notification service extension.
28 | /// This method should be called from within `didReceive(_:withContentHandler:)` method of `UNNotificationServiceExtension`.
:
166 | /// - completion: closure that will be called once the file has been moved and an attachment has been created.
167 | /// Note that in the case of failure during file transfer or creating an attachment this closure will be called with `nil` indicating a failure.
168 | private static func createAttachment(
| `- note: add '@available' attribute to enclosing static method
169 | localFileURL: URL,
170 | localFilePathWithTypeString: String,
171 | completion: @escaping (UNNotificationAttachment?) -> Void
| `- error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
172 | ) {
173 | let localFileURLWithType: URL
[15/19] Compiling KlaviyoSwiftExtension KlaviyoExtension.swift
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:39:18: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
24 | }
25 |
26 | public enum KlaviyoExtensionSDK {
| `- note: add '@available' attribute to enclosing enum
27 | /// Call this method when you receive a rich push notification in the notification service extension.
28 | /// This method should be called from within `didReceive(_:withContentHandler:)` method of `UNNotificationServiceExtension`.
:
36 | /// - bestAttemptContent: this is also received in `didReceive(_:withContentHandler:)` and is the best attempt at mutating the APNS payload before attaching it to the push notification
37 | /// - contentHandler: this is also received in `didReceive(_:withContentHandler:)` and is the closure that needs to be called before the time iOS provides for us to mutate the content. This closure will be called with the `bestAttemptContent` once the image is downloaded and attached.
38 | public static func handleNotificationServiceDidReceivedRequest(
| `- note: add '@available' attribute to enclosing static method
39 | request: UNNotificationRequest,
| `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
40 | bestAttemptContent: UNMutableNotificationContent,
41 | contentHandler: @escaping (UNNotificationContent) -> Void,
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:40:29: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
24 | }
25 |
26 | public enum KlaviyoExtensionSDK {
| `- note: add '@available' attribute to enclosing enum
27 | /// Call this method when you receive a rich push notification in the notification service extension.
28 | /// This method should be called from within `didReceive(_:withContentHandler:)` method of `UNNotificationServiceExtension`.
:
36 | /// - bestAttemptContent: this is also received in `didReceive(_:withContentHandler:)` and is the best attempt at mutating the APNS payload before attaching it to the push notification
37 | /// - contentHandler: this is also received in `didReceive(_:withContentHandler:)` and is the closure that needs to be called before the time iOS provides for us to mutate the content. This closure will be called with the `bestAttemptContent` once the image is downloaded and attached.
38 | public static func handleNotificationServiceDidReceivedRequest(
| `- note: add '@available' attribute to enclosing static method
39 | request: UNNotificationRequest,
40 | bestAttemptContent: UNMutableNotificationContent,
| `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
41 | contentHandler: @escaping (UNNotificationContent) -> Void,
42 | fallbackMediaType: String = "jpeg"
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:41:36: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
24 | }
25 |
26 | public enum KlaviyoExtensionSDK {
| `- note: add '@available' attribute to enclosing enum
27 | /// Call this method when you receive a rich push notification in the notification service extension.
28 | /// This method should be called from within `didReceive(_:withContentHandler:)` method of `UNNotificationServiceExtension`.
:
36 | /// - bestAttemptContent: this is also received in `didReceive(_:withContentHandler:)` and is the best attempt at mutating the APNS payload before attaching it to the push notification
37 | /// - contentHandler: this is also received in `didReceive(_:withContentHandler:)` and is the closure that needs to be called before the time iOS provides for us to mutate the content. This closure will be called with the `bestAttemptContent` once the image is downloaded and attached.
38 | public static func handleNotificationServiceDidReceivedRequest(
| `- note: add '@available' attribute to enclosing static method
39 | request: UNNotificationRequest,
40 | bestAttemptContent: UNMutableNotificationContent,
41 | contentHandler: @escaping (UNNotificationContent) -> Void,
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
42 | fallbackMediaType: String = "jpeg"
43 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:53:57: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
24 | }
25 |
26 | public enum KlaviyoExtensionSDK {
| `- note: add '@available' attribute to enclosing enum
27 | /// Call this method when you receive a rich push notification in the notification service extension.
28 | /// This method should be called from within `didReceive(_:withContentHandler:)` method of `UNNotificationServiceExtension`.
:
51 | /// - Parameters:
52 | /// - bestAttemptContent: the best attempt at mutating the APNS payload before attaching it to the push notification
53 | private static func handleBadge(bestAttemptContent: UNMutableNotificationContent) {
| | `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
| `- note: add '@available' attribute to enclosing static method
54 | guard let badgeConfigValue = bestAttemptContent.userInfo["badge_config"] as? String else { return }
55 | // retrieve the app group user defaults used to store the count
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:84:29: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
24 | }
25 |
26 | public enum KlaviyoExtensionSDK {
| `- note: add '@available' attribute to enclosing enum
27 | /// Call this method when you receive a rich push notification in the notification service extension.
28 | /// This method should be called from within `didReceive(_:withContentHandler:)` method of `UNNotificationServiceExtension`.
:
81 | /// - bestAttemptContent: the best attempt at mutating the APNS payload before attaching it to the push notification
82 | /// - contentHandler: the closure that needs to be called before the time iOS provides for us to mutate the content
83 | private static func handleRichMedia(
| `- note: add '@available' attribute to enclosing static method
84 | bestAttemptContent: UNMutableNotificationContent,
| `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
85 | contentHandler: @escaping (UNNotificationContent) -> Void,
86 | fallbackMediaType: String = "jpeg"
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:85:36: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
24 | }
25 |
26 | public enum KlaviyoExtensionSDK {
| `- note: add '@available' attribute to enclosing enum
27 | /// Call this method when you receive a rich push notification in the notification service extension.
28 | /// This method should be called from within `didReceive(_:withContentHandler:)` method of `UNNotificationServiceExtension`.
:
81 | /// - bestAttemptContent: the best attempt at mutating the APNS payload before attaching it to the push notification
82 | /// - contentHandler: the closure that needs to be called before the time iOS provides for us to mutate the content
83 | private static func handleRichMedia(
| `- note: add '@available' attribute to enclosing static method
84 | bestAttemptContent: UNMutableNotificationContent,
85 | contentHandler: @escaping (UNNotificationContent) -> Void,
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
86 | fallbackMediaType: String = "jpeg"
87 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:125:18: error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
24 | }
25 |
26 | public enum KlaviyoExtensionSDK {
| `- note: add '@available' attribute to enclosing enum
27 | /// Call this method when you receive a rich push notification in the notification service extension.
28 | /// This method should be called from within `didReceive(_:withContentHandler:)` method of `UNNotificationServiceExtension`.
:
122 | }
123 |
124 | public static func handleNotificationServiceExtensionTimeWillExpireRequest(
| `- note: add '@available' attribute to enclosing static method
125 | request: UNNotificationRequest,
| `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
126 | bestAttemptContent: UNMutableNotificationContent,
127 | contentHandler: @escaping (UNNotificationContent) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:126:29: error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
24 | }
25 |
26 | public enum KlaviyoExtensionSDK {
| `- note: add '@available' attribute to enclosing enum
27 | /// Call this method when you receive a rich push notification in the notification service extension.
28 | /// This method should be called from within `didReceive(_:withContentHandler:)` method of `UNNotificationServiceExtension`.
:
122 | }
123 |
124 | public static func handleNotificationServiceExtensionTimeWillExpireRequest(
| `- note: add '@available' attribute to enclosing static method
125 | request: UNNotificationRequest,
126 | bestAttemptContent: UNMutableNotificationContent,
| `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
127 | contentHandler: @escaping (UNNotificationContent) -> Void
128 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:127:36: error: 'UNNotificationContent' is only available in macOS 10.14 or newer
24 | }
25 |
26 | public enum KlaviyoExtensionSDK {
| `- note: add '@available' attribute to enclosing enum
27 | /// Call this method when you receive a rich push notification in the notification service extension.
28 | /// This method should be called from within `didReceive(_:withContentHandler:)` method of `UNNotificationServiceExtension`.
:
122 | }
123 |
124 | public static func handleNotificationServiceExtensionTimeWillExpireRequest(
| `- note: add '@available' attribute to enclosing static method
125 | request: UNNotificationRequest,
126 | bestAttemptContent: UNMutableNotificationContent,
127 | contentHandler: @escaping (UNNotificationContent) -> Void
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
128 | ) {
129 | contentHandler(bestAttemptContent)
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:171:32: error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
24 | }
25 |
26 | public enum KlaviyoExtensionSDK {
| `- note: add '@available' attribute to enclosing enum
27 | /// Call this method when you receive a rich push notification in the notification service extension.
28 | /// This method should be called from within `didReceive(_:withContentHandler:)` method of `UNNotificationServiceExtension`.
:
166 | /// - completion: closure that will be called once the file has been moved and an attachment has been created.
167 | /// Note that in the case of failure during file transfer or creating an attachment this closure will be called with `nil` indicating a failure.
168 | private static func createAttachment(
| `- note: add '@available' attribute to enclosing static method
169 | localFileURL: URL,
170 | localFilePathWithTypeString: String,
171 | completion: @escaping (UNNotificationAttachment?) -> Void
| `- error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
172 | ) {
173 | let localFileURLWithType: URL
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:175:36: error: 'init(filePath:directoryHint:relativeTo:)' is only available in macOS 13.0 or newer
24 | }
25 |
26 | public enum KlaviyoExtensionSDK {
| `- note: add '@available' attribute to enclosing enum
27 | /// Call this method when you receive a rich push notification in the notification service extension.
28 | /// This method should be called from within `didReceive(_:withContentHandler:)` method of `UNNotificationServiceExtension`.
:
166 | /// - completion: closure that will be called once the file has been moved and an attachment has been created.
167 | /// Note that in the case of failure during file transfer or creating an attachment this closure will be called with `nil` indicating a failure.
168 | private static func createAttachment(
| `- note: add '@available' attribute to enclosing static method
169 | localFileURL: URL,
170 | localFilePathWithTypeString: String,
:
173 | let localFileURLWithType: URL
174 | if #available(iOS 16.0, *) {
175 | localFileURLWithType = URL(filePath: localFilePathWithTypeString)
| |- error: 'init(filePath:directoryHint:relativeTo:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
176 | } else {
177 | localFileURLWithType = URL(fileURLWithPath: localFilePathWithTypeString)
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:187:37: error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
24 | }
25 |
26 | public enum KlaviyoExtensionSDK {
| `- note: add '@available' attribute to enclosing enum
27 | /// Call this method when you receive a rich push notification in the notification service extension.
28 | /// This method should be called from within `didReceive(_:withContentHandler:)` method of `UNNotificationServiceExtension`.
:
166 | /// - completion: closure that will be called once the file has been moved and an attachment has been created.
167 | /// Note that in the case of failure during file transfer or creating an attachment this closure will be called with `nil` indicating a failure.
168 | private static func createAttachment(
| `- note: add '@available' attribute to enclosing static method
169 | localFileURL: URL,
170 | localFilePathWithTypeString: String,
:
185 | }
186 |
187 | guard let attachment = try? UNNotificationAttachment(
| |- error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
188 | identifier: "",
189 | url: localFileURLWithType,
[16/19] Emitting module AnyCodable
BUILD FAILURE 6.2 macosSpm