Build Information
Failed to build klaviyo-swift-sdk, reference master (8a2e4d
), with Swift 6.0 for macOS (SPM) on 30 Apr 2025 17:40:28 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.61.2
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 8a2e4de Merge pull request #336 from klaviyo/bl/lifecycle-listeners-klaviyoforms
Cloned https://github.com/klaviyo/klaviyo-swift-sdk.git
Revision (git rev-parse @):
8a2e4de9c767f80ccc39029e010c25d0c9e1abba
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 InAppFormsTemplate.html
[0/13] Write sources
[3/13] Copying closeHandler.js
[3/13] Copying consoleHandler.js
[3/13] Copying PrivacyInfo.xcprivacy
[3/13] Write sources
[5/13] Copying jstest.html
[5/13] Copying klaviyo.html
[5/13] Copying toggleHandler.js
[5/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-snapshot-testing
Fetching https://github.com/pointfreeco/combine-schedulers
Fetching https://github.com/pointfreeco/swift-custom-dump
Fetching https://github.com/Flight-School/AnyCodable
Fetching https://github.com/pointfreeco/swift-case-paths
[1/2410] Fetching combine-schedulers
[146/6778] Fetching combine-schedulers, swift-case-paths
[321/7560] Fetching combine-schedulers, swift-case-paths, anycodable
[416/12141] Fetching combine-schedulers, swift-case-paths, anycodable, swift-custom-dump
Fetched https://github.com/Flight-School/AnyCodable from cache (0.84s)
[9071/11359] Fetching combine-schedulers, swift-case-paths, swift-custom-dump
[11360/24518] Fetching combine-schedulers, swift-case-paths, swift-custom-dump, swift-snapshot-testing
Fetched https://github.com/pointfreeco/swift-case-paths from cache (2.57s)
Fetched https://github.com/pointfreeco/combine-schedulers from cache (2.57s)
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (2.57s)
Fetched https://github.com/pointfreeco/swift-snapshot-testing from cache (2.57s)
Computing version for https://github.com/pointfreeco/combine-schedulers
Computed https://github.com/pointfreeco/combine-schedulers at 0.11.0 (3.23s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
Fetching https://github.com/pointfreeco/swift-concurrency-extras
[1/852] Fetching swift-concurrency-extras
[240/6240] Fetching swift-concurrency-extras, xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (1.18s)
Fetched https://github.com/pointfreeco/swift-concurrency-extras from cache (1.18s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 0.9.0 (0.57s)
Computing version for https://github.com/pointfreeco/swift-concurrency-extras
Computed https://github.com/pointfreeco/swift-concurrency-extras at 0.1.2 (0.57s)
Computing version for https://github.com/pointfreeco/swift-case-paths
Computed https://github.com/pointfreeco/swift-case-paths at 0.14.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-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 0.11.2 (0.59s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.17.7 (0.60s)
Fetching https://github.com/swiftlang/swift-syntax
[1/70245] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (3.08s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 600.0.1 (0.68s)
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/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-concurrency-extras
Working copy of https://github.com/pointfreeco/swift-concurrency-extras resolved at 0.1.2
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/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-case-paths
Working copy of https://github.com/pointfreeco/swift-case-paths resolved at 0.14.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.9.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.17.7
BUILD FAILURE 6.0 macosSpm