The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build klaviyo-swift-sdk, reference master (0e71fb), with Swift 6.0 for macOS (SPM) on 16 Jun 2025 19:04:47 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/klaviyo/klaviyo-swift-sdk.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/klaviyo/klaviyo-swift-sdk
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 0e71fb7 Merge pull request #363 from klaviyo/bl/workaround-notificationcenter
Cloned https://github.com/klaviyo/klaviyo-swift-sdk.git
Revision (git rev-parse @):
0e71fb70f5798fb2c0de417c1e950140fc17de3d
SUCCESS checkout https://github.com/klaviyo/klaviyo-swift-sdk.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/klaviyo/klaviyo-swift-sdk.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Building for debugging...
[0/13] Copying jstest.html
[0/13] Write sources
[1/13] Copying consoleHandler.js
[1/13] Copying PrivacyInfo.xcprivacy
[1/13] Copying InAppFormsTemplate.html
[1/13] Copying toggleHandler.js
[4/13] Write sources
[5/13] Copying klaviyo.html
[8/13] Copying closeHandler.js
[8/13] Write sources
[12/13] Write swift-version-5BDAB9E9C0126B9D.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,
Fetching https://github.com/pointfreeco/swift-case-paths
Fetching https://github.com/pointfreeco/swift-custom-dump
Fetching https://github.com/pointfreeco/swift-snapshot-testing
Fetching https://github.com/pointfreeco/combine-schedulers
Fetching https://github.com/Flight-School/AnyCodable
[1/4386] Fetching swift-case-paths
[45/5168] Fetching swift-case-paths, anycodable
[271/9749] Fetching swift-case-paths, anycodable, swift-custom-dump
[592/12159] Fetching swift-case-paths, anycodable, swift-custom-dump, combine-schedulers
[12160/25386] Fetching swift-case-paths, anycodable, swift-custom-dump, combine-schedulers, swift-snapshot-testing
Fetched https://github.com/pointfreeco/combine-schedulers from cache (2.99s)
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (3.00s)
Fetched https://github.com/Flight-School/AnyCodable from cache (3.00s)
Fetched https://github.com/pointfreeco/swift-case-paths from cache (3.00s)
Fetched https://github.com/pointfreeco/swift-snapshot-testing from cache (3.00s)
Computing version for https://github.com/pointfreeco/combine-schedulers
Computed https://github.com/pointfreeco/combine-schedulers at 0.11.0 (3.22s)
Fetching https://github.com/pointfreeco/swift-concurrency-extras
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
[1/861] Fetching swift-concurrency-extras
[243/6328] Fetching swift-concurrency-extras, xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/swift-concurrency-extras from cache (0.83s)
[602/5467] Fetching xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (1.35s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 0.9.0 (0.55s)
Computing version for https://github.com/pointfreeco/swift-concurrency-extras
Computed https://github.com/pointfreeco/swift-concurrency-extras at 0.1.2 (0.55s)
Computing version for https://github.com/pointfreeco/swift-case-paths
Computed https://github.com/pointfreeco/swift-case-paths at 0.14.1 (0.59s)
Computing version for https://github.com/Flight-School/AnyCodable
Computed https://github.com/Flight-School/AnyCodable at 0.6.7 (0.56s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 0.11.2 (0.55s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.17.7 (0.55s)
Fetching https://github.com/swiftlang/swift-syntax
[1/70832] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (3.11s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 600.0.1 (0.63s)
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 0.9.0
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 600.0.1
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing
Working copy of https://github.com/pointfreeco/swift-snapshot-testing resolved at 1.17.7
Creating working copy for https://github.com/pointfreeco/swift-concurrency-extras
Working copy of https://github.com/pointfreeco/swift-concurrency-extras resolved at 0.1.2
Creating working copy for https://github.com/pointfreeco/combine-schedulers
Working copy of https://github.com/pointfreeco/combine-schedulers resolved at 0.11.0
Creating working copy for https://github.com/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 0.11.2
Creating working copy for https://github.com/pointfreeco/swift-case-paths
Working copy of https://github.com/pointfreeco/swift-case-paths resolved at 0.14.1
Creating working copy for https://github.com/Flight-School/AnyCodable
Working copy of https://github.com/Flight-School/AnyCodable resolved at 0.6.7
BUILD FAILURE 6.0 macosSpm