Build Information
Failed to build klaviyo-swift-sdk, reference 4.2.1 (0c1084
), with Swift 6.1 for macOS (SPM) on 25 Apr 2025 01:13:42 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/klaviyo/klaviyo-swift-sdk.git
Reference: 4.2.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/klaviyo/klaviyo-swift-sdk
* tag 4.2.1 -> FETCH_HEAD
HEAD is now at 0c1084e Merge pull request #319 from klaviyo/bl/bump-down-4.2.1
Cloned https://github.com/klaviyo/klaviyo-swift-sdk.git
Revision (git rev-parse @):
0c1084e52f169decd97cf7de3a1280abcf4922c0
SUCCESS checkout https://github.com/klaviyo/klaviyo-swift-sdk.git at 4.2.1
Fetching https://github.com/Flight-School/AnyCodable
Fetching https://github.com/pointfreeco/swift-case-paths from cache
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay from cache
Fetching https://github.com/pointfreeco/swift-custom-dump from cache
Fetching https://github.com/pointfreeco/combine-schedulers from cache
Fetching https://github.com/pointfreeco/swift-snapshot-testing from cache
Fetched https://github.com/pointfreeco/combine-schedulers from cache (0.46s)
Fetched https://github.com/pointfreeco/swift-case-paths from cache (0.48s)
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (0.48s)
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (0.49s)
Fetched https://github.com/pointfreeco/swift-snapshot-testing from cache (0.56s)
[1/782] Fetching anycodable
Fetched https://github.com/Flight-School/AnyCodable from cache (0.85s)
Computing version for https://github.com/pointfreeco/combine-schedulers
Computed https://github.com/pointfreeco/combine-schedulers at 0.9.1 (2.10s)
Computing version for https://github.com/pointfreeco/swift-case-paths
Computed https://github.com/pointfreeco/swift-case-paths at 0.10.1 (0.66s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 0.6.1 (0.64s)
Computing version for https://github.com/Flight-School/AnyCodable
Computed https://github.com/Flight-School/AnyCodable at 0.6.7 (0.63s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.10.0 (0.64s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 0.6.0 (0.64s)
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/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-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
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/swift-snapshot-testing
Working copy of https://github.com/pointfreeco/swift-snapshot-testing resolved at 1.10.0
========================================
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/12199] Fetching klaviyo-swift-sdk
Fetched https://github.com/klaviyo/klaviyo-swift-sdk.git from cache (1.87s)
Fetching https://github.com/Flight-School/AnyCodable from cache
Fetched https://github.com/Flight-School/AnyCodable from cache (0.44s)
Computing version for https://github.com/Flight-School/AnyCodable
Computed https://github.com/Flight-School/AnyCodable at 0.6.7 (0.50s)
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 4.2.1 (0c1084e)
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.1
Building package at path: $PWD
https://github.com/klaviyo/klaviyo-swift-sdk.git
https://github.com/klaviyo/klaviyo-swift-sdk.git
{
"dependencies" : [
{
"identity" : "swift-snapshot-testing",
"requirement" : {
"range" : [
{
"lower_bound" : "1.10.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/pointfreeco/swift-snapshot-testing"
},
{
"identity" : "anycodable",
"requirement" : {
"range" : [
{
"lower_bound" : "0.6.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Flight-School/AnyCodable"
},
{
"identity" : "swift-custom-dump",
"requirement" : {
"range" : [
{
"lower_bound" : "0.6.1",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/pointfreeco/swift-custom-dump"
},
{
"identity" : "swift-case-paths",
"requirement" : {
"range" : [
{
"lower_bound" : "0.10.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/pointfreeco/swift-case-paths"
},
{
"identity" : "combine-schedulers",
"requirement" : {
"range" : [
{
"lower_bound" : "0.9.1",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/pointfreeco/combine-schedulers"
}
],
"manifest_display_name" : "klaviyo-swift-sdk",
"name" : "klaviyo-swift-sdk",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
}
],
"products" : [
{
"name" : "KlaviyoSwift",
"targets" : [
"KlaviyoSwift"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "KlaviyoForms",
"targets" : [
"KlaviyoForms"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "KlaviyoSwiftExtension",
"targets" : [
"KlaviyoSwiftExtension"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "KlaviyoSwiftTests",
"module_type" : "SwiftTarget",
"name" : "KlaviyoSwiftTests",
"path" : "Tests/KlaviyoSwiftTests",
"product_dependencies" : [
"SnapshotTesting",
"CustomDump",
"CasePaths",
"CombineSchedulers"
],
"sources" : [
"APIRequestErrorHandlingTests.swift",
"AppLifeCycleEventsTests.swift",
"EncodableTests.swift",
"EventTests.swift",
"KlaviyoModelsTest.swift",
"KlaviyoSDKTests.swift",
"KlaviyoStateTests.swift",
"KlaviyoTestUtils.swift",
"StateChangePublisherTests.swift",
"StateManagementEdgeCaseTests.swift",
"StateManagementTests.swift",
"TestData.swift",
"Vendor/ComposableArchitecture/TestStore.swift"
],
"target_dependencies" : [
"KlaviyoSwift",
"KlaviyoCore"
],
"type" : "test"
},
{
"c99name" : "KlaviyoSwiftExtension",
"module_type" : "SwiftTarget",
"name" : "KlaviyoSwiftExtension",
"path" : "Sources/KlaviyoSwiftExtension",
"product_memberships" : [
"KlaviyoSwiftExtension"
],
"sources" : [
"KlaviyoExtension.swift"
],
"type" : "library"
},
{
"c99name" : "KlaviyoSwift",
"module_type" : "SwiftTarget",
"name" : "KlaviyoSwift",
"path" : "Sources/KlaviyoSwift",
"product_dependencies" : [
"AnyCodable"
],
"product_memberships" : [
"KlaviyoSwift",
"KlaviyoForms"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwift/PrivacyInfo.xcprivacy",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"Klaviyo.swift",
"KlaviyoInternal.swift",
"KlaviyoSwiftEnvironment.swift",
"Models/Error.swift",
"Models/Event.swift",
"Models/LifecycleEventsExtension.swift",
"Models/Profile.swift",
"Models/ProfileAPIExtension.swift",
"StateManagement/APIRequestErrorHandling.swift",
"StateManagement/KlaviyoState.swift",
"StateManagement/StateChangePublisher.swift",
"StateManagement/StateManagement.swift",
"Vendor/ComposableArchitecture/Cancellation.swift",
"Vendor/ComposableArchitecture/ConcurrencySupport.swift",
"Vendor/ComposableArchitecture/Create.swift",
"Vendor/ComposableArchitecture/Effect.swift",
"Vendor/ComposableArchitecture/Misc.swift",
"Vendor/ComposableArchitecture/Publisher.swift",
"Vendor/ComposableArchitecture/ReducerProtocol.swift",
"Vendor/ComposableArchitecture/Store.swift"
],
"target_dependencies" : [
"KlaviyoCore"
],
"type" : "library"
},
{
"c99name" : "KlaviyoFormsTests",
"module_type" : "SwiftTarget",
"name" : "KlaviyoFormsTests",
"path" : "Tests/KlaviyoFormsTests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/KlaviyoFormsTests/Assets/IAFUnitTest.html",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"IAFNativeBridgeEventTests.swift",
"IAFWebViewModelPreloadingTests.swift",
"IAFWebViewModelTests.swift",
"Mocks/MockIAFWebViewDelegate.swift",
"Mocks/MockWKScriptMessage.swift"
],
"target_dependencies" : [
"KlaviyoSwift",
"KlaviyoCore",
"KlaviyoForms"
],
"type" : "test"
},
{
"c99name" : "KlaviyoForms",
"module_type" : "SwiftTarget",
"name" : "KlaviyoForms",
"path" : "Sources/KlaviyoForms",
"product_memberships" : [
"KlaviyoForms"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoForms/InAppForms/Assets/InAppFormsTemplate.html",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoForms/KlaviyoWebView/Development Assets/HTML/jstest.html",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoForms/KlaviyoWebView/Development Assets/Scripts/toggleHandler.js",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoForms/KlaviyoWebView/Resources/HTML/klaviyo.html",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoForms/KlaviyoWebView/Resources/Scripts/closeHandler.js",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoForms/KlaviyoWebView/Resources/Scripts/consoleHandler.js",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"InAppForms/IAFPresentationManager.swift",
"InAppForms/IAFWebViewModel.swift",
"InAppForms/Models/IAFNativeBridgeEvent.swift",
"KlaviyoSDK+Forms.swift",
"KlaviyoWebView/Development Assets/PreviewGridViewController.swift",
"KlaviyoWebView/Development Assets/PreviewTabViewController.swift",
"KlaviyoWebView/Development Assets/PreviewWebViewModel.swift",
"KlaviyoWebView/KlaviyoWebViewController.swift",
"KlaviyoWebView/KlaviyoWebViewDelegate.swift",
"KlaviyoWebView/KlaviyoWebViewModeling.swift",
"KlaviyoWebView/PreloadError.swift",
"KlaviyoWebView/WebViewConsoleRelayMessage.swift",
"KlaviyoWebViewOverlayManager.swift",
"Models/WKNavigationEvent.swift",
"Utilities/Logger+Ext.swift",
"Utilities/ResourceLoader.swift",
"Utilities/UIApplication+Ext.swift"
],
"target_dependencies" : [
"KlaviyoSwift"
],
"type" : "library"
},
{
"c99name" : "KlaviyoCoreTests",
"module_type" : "SwiftTarget",
"name" : "KlaviyoCoreTests",
"path" : "Tests/KlaviyoCoreTests",
"product_dependencies" : [
"SnapshotTesting",
"CustomDump",
"CasePaths"
],
"sources" : [
"ArchivalUtilsTests.swift",
"EncodableTests.swift",
"FileUtilsTests.swift",
"KlaviyoAPITests.swift",
"NetworkSessionTests.swift",
"SimpleMockURLProtocol.swift",
"TestUtils.swift"
],
"target_dependencies" : [
"KlaviyoCore"
],
"type" : "test"
},
{
"c99name" : "KlaviyoCore",
"module_type" : "SwiftTarget",
"name" : "KlaviyoCore",
"path" : "Sources/KlaviyoCore",
"product_dependencies" : [
"AnyCodable"
],
"product_memberships" : [
"KlaviyoSwift",
"KlaviyoForms"
],
"sources" : [
"AppContextInfo.swift",
"AppLifeCycleEvents.swift",
"KlaviyoEnvironment.swift",
"Models/APIModels/AggregateEventPayload.swift",
"Models/APIModels/CreateEventPayload.swift",
"Models/APIModels/CreateProfilePayload.swift",
"Models/APIModels/ProfilePayload.swift",
"Models/APIModels/PushTokenPayload.swift",
"Models/APIModels/UnregisterPushTokenPayload.swift",
"Models/KlaviyoAPIError.swift",
"Models/PushBackground.swift",
"Models/PushEnablement.swift",
"Networking/KlaviyoAPI.swift",
"Networking/KlaviyoEndpoint.swift",
"Networking/KlaviyoRequest.swift",
"Networking/NetworkSession.swift",
"Networking/PrivateMethods.swift",
"Networking/RequestMethod.swift",
"Networking/SDKRequestIterator.swift",
"Utils/ArchivalUtils.swift",
"Utils/FileUtils.swift",
"Utils/LoggerClient.swift",
"Utils/Version.swift",
"Vendor/ReachabilitySwift.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/13] Copying PrivacyInfo.xcprivacy
[0/13] Copying closeHandler.js
[0/13] Copying toggleHandler.js
[1/13] Write sources
[2/13] Copying InAppFormsTemplate.html
[4/13] Copying jstest.html
[7/13] Copying consoleHandler.js
[7/13] Write sources
[8/13] Copying klaviyo.html
[9/13] Write sources
[12/13] Write swift-version-2F0A5646E1D333AE.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 | // handle badge setting from the push notification payload
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:52: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`.
:
50 | /// - Parameters:
51 | /// - bestAttemptContent: the best attempt at mutating the APNS payload before attaching it to the push notification
52 | 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
53 | guard let badgeConfigValue = bestAttemptContent.userInfo["badge_config"] as? String else { return }
54 | // retrieve the app group user defaults used to store the count
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:83: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`.
:
80 | /// - bestAttemptContent: the best attempt at mutating the APNS payload before attaching it to the push notification
81 | /// - contentHandler: the closure that needs to be called before the time iOS provides for us to mutate the content
82 | private static func handleRichMedia(
| `- note: add @available attribute to enclosing static method
83 | bestAttemptContent: UNMutableNotificationContent,
| `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
84 | contentHandler: @escaping (UNNotificationContent) -> Void,
85 | fallbackMediaType: String = "jpeg") {
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:84: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`.
:
80 | /// - bestAttemptContent: the best attempt at mutating the APNS payload before attaching it to the push notification
81 | /// - contentHandler: the closure that needs to be called before the time iOS provides for us to mutate the content
82 | private static func handleRichMedia(
| `- note: add @available attribute to enclosing static method
83 | bestAttemptContent: UNMutableNotificationContent,
84 | contentHandler: @escaping (UNNotificationContent) -> Void,
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
85 | fallbackMediaType: String = "jpeg") {
86 | // 1a. get the rich media url from the push notification payload
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:122: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`.
:
119 | }
120 |
121 | public static func handleNotificationServiceExtensionTimeWillExpireRequest(
| `- note: add @available attribute to enclosing static method
122 | request: UNNotificationRequest,
| `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
123 | bestAttemptContent: UNMutableNotificationContent,
124 | contentHandler: @escaping (UNNotificationContent) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:123: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`.
:
119 | }
120 |
121 | public static func handleNotificationServiceExtensionTimeWillExpireRequest(
| `- note: add @available attribute to enclosing static method
122 | request: UNNotificationRequest,
123 | bestAttemptContent: UNMutableNotificationContent,
| `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
124 | contentHandler: @escaping (UNNotificationContent) -> Void) {
125 | contentHandler(bestAttemptContent)
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:124: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`.
:
119 | }
120 |
121 | public static func handleNotificationServiceExtensionTimeWillExpireRequest(
| `- note: add @available attribute to enclosing static method
122 | request: UNNotificationRequest,
123 | bestAttemptContent: UNMutableNotificationContent,
124 | contentHandler: @escaping (UNNotificationContent) -> Void) {
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
125 | contentHandler(bestAttemptContent)
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:166: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`.
:
161 | /// - completion: closure that will be called once the file has been moved and an attachment has been created.
162 | /// Note that in the case of failure during file transfer or creating an attachment this closure will be called with `nil` indicating a failure.
163 | private static func createAttachment(
| `- note: add @available attribute to enclosing static method
164 | localFileURL: URL,
165 | localFilePathWithTypeString: String,
166 | completion: @escaping (UNNotificationAttachment?) -> Void) {
| `- error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
167 | let localFileURLWithType: URL
168 | if #available(iOS 16.0, *) {
[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 | // handle badge setting from the push notification payload
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:52: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`.
:
50 | /// - Parameters:
51 | /// - bestAttemptContent: the best attempt at mutating the APNS payload before attaching it to the push notification
52 | 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
53 | guard let badgeConfigValue = bestAttemptContent.userInfo["badge_config"] as? String else { return }
54 | // retrieve the app group user defaults used to store the count
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:83: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`.
:
80 | /// - bestAttemptContent: the best attempt at mutating the APNS payload before attaching it to the push notification
81 | /// - contentHandler: the closure that needs to be called before the time iOS provides for us to mutate the content
82 | private static func handleRichMedia(
| `- note: add @available attribute to enclosing static method
83 | bestAttemptContent: UNMutableNotificationContent,
| `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
84 | contentHandler: @escaping (UNNotificationContent) -> Void,
85 | fallbackMediaType: String = "jpeg") {
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:84: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`.
:
80 | /// - bestAttemptContent: the best attempt at mutating the APNS payload before attaching it to the push notification
81 | /// - contentHandler: the closure that needs to be called before the time iOS provides for us to mutate the content
82 | private static func handleRichMedia(
| `- note: add @available attribute to enclosing static method
83 | bestAttemptContent: UNMutableNotificationContent,
84 | contentHandler: @escaping (UNNotificationContent) -> Void,
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
85 | fallbackMediaType: String = "jpeg") {
86 | // 1a. get the rich media url from the push notification payload
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:122: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`.
:
119 | }
120 |
121 | public static func handleNotificationServiceExtensionTimeWillExpireRequest(
| `- note: add @available attribute to enclosing static method
122 | request: UNNotificationRequest,
| `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
123 | bestAttemptContent: UNMutableNotificationContent,
124 | contentHandler: @escaping (UNNotificationContent) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:123: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`.
:
119 | }
120 |
121 | public static func handleNotificationServiceExtensionTimeWillExpireRequest(
| `- note: add @available attribute to enclosing static method
122 | request: UNNotificationRequest,
123 | bestAttemptContent: UNMutableNotificationContent,
| `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
124 | contentHandler: @escaping (UNNotificationContent) -> Void) {
125 | contentHandler(bestAttemptContent)
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:124: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`.
:
119 | }
120 |
121 | public static func handleNotificationServiceExtensionTimeWillExpireRequest(
| `- note: add @available attribute to enclosing static method
122 | request: UNNotificationRequest,
123 | bestAttemptContent: UNMutableNotificationContent,
124 | contentHandler: @escaping (UNNotificationContent) -> Void) {
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
125 | contentHandler(bestAttemptContent)
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:166: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`.
:
161 | /// - completion: closure that will be called once the file has been moved and an attachment has been created.
162 | /// Note that in the case of failure during file transfer or creating an attachment this closure will be called with `nil` indicating a failure.
163 | private static func createAttachment(
| `- note: add @available attribute to enclosing static method
164 | localFileURL: URL,
165 | localFilePathWithTypeString: String,
166 | completion: @escaping (UNNotificationAttachment?) -> Void) {
| `- error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
167 | let localFileURLWithType: URL
168 | if #available(iOS 16.0, *) {
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:144:17: warning: capture of 'completion' with non-sendable type '(URL?) -> Void' in a '@Sendable' closure
142 | if let error = error {
143 | print("error when downloading push media = \(error.localizedDescription)")
144 | completion(nil)
| |- warning: capture of 'completion' with non-sendable type '(URL?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
145 | return
146 | }
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:169: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`.
:
161 | /// - completion: closure that will be called once the file has been moved and an attachment has been created.
162 | /// Note that in the case of failure during file transfer or creating an attachment this closure will be called with `nil` indicating a failure.
163 | private static func createAttachment(
| `- note: add @available attribute to enclosing static method
164 | localFileURL: URL,
165 | localFilePathWithTypeString: String,
:
167 | let localFileURLWithType: URL
168 | if #available(iOS 16.0, *) {
169 | localFileURLWithType = URL(filePath: localFilePathWithTypeString)
| |- error: 'init(filePath:directoryHint:relativeTo:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
170 | } else {
171 | localFileURLWithType = URL(fileURLWithPath: localFilePathWithTypeString)
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:181: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`.
:
161 | /// - completion: closure that will be called once the file has been moved and an attachment has been created.
162 | /// Note that in the case of failure during file transfer or creating an attachment this closure will be called with `nil` indicating a failure.
163 | private static func createAttachment(
| `- note: add @available attribute to enclosing static method
164 | localFileURL: URL,
165 | localFilePathWithTypeString: String,
:
179 | }
180 |
181 | guard let attachment = try? UNNotificationAttachment(
| |- error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
182 | identifier: "",
183 | url: localFileURLWithType,
[16/19] Emitting module AnyCodable
[17/19] Compiling AnyCodable AnyCodable.swift
[18/19] Compiling AnyCodable AnyDecodable.swift
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/7] 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 | // handle badge setting from the push notification payload
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:52: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`.
:
50 | /// - Parameters:
51 | /// - bestAttemptContent: the best attempt at mutating the APNS payload before attaching it to the push notification
52 | 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
53 | guard let badgeConfigValue = bestAttemptContent.userInfo["badge_config"] as? String else { return }
54 | // retrieve the app group user defaults used to store the count
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:83: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`.
:
80 | /// - bestAttemptContent: the best attempt at mutating the APNS payload before attaching it to the push notification
81 | /// - contentHandler: the closure that needs to be called before the time iOS provides for us to mutate the content
82 | private static func handleRichMedia(
| `- note: add @available attribute to enclosing static method
83 | bestAttemptContent: UNMutableNotificationContent,
| `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
84 | contentHandler: @escaping (UNNotificationContent) -> Void,
85 | fallbackMediaType: String = "jpeg") {
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:84: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`.
:
80 | /// - bestAttemptContent: the best attempt at mutating the APNS payload before attaching it to the push notification
81 | /// - contentHandler: the closure that needs to be called before the time iOS provides for us to mutate the content
82 | private static func handleRichMedia(
| `- note: add @available attribute to enclosing static method
83 | bestAttemptContent: UNMutableNotificationContent,
84 | contentHandler: @escaping (UNNotificationContent) -> Void,
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
85 | fallbackMediaType: String = "jpeg") {
86 | // 1a. get the rich media url from the push notification payload
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:122: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`.
:
119 | }
120 |
121 | public static func handleNotificationServiceExtensionTimeWillExpireRequest(
| `- note: add @available attribute to enclosing static method
122 | request: UNNotificationRequest,
| `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
123 | bestAttemptContent: UNMutableNotificationContent,
124 | contentHandler: @escaping (UNNotificationContent) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:123: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`.
:
119 | }
120 |
121 | public static func handleNotificationServiceExtensionTimeWillExpireRequest(
| `- note: add @available attribute to enclosing static method
122 | request: UNNotificationRequest,
123 | bestAttemptContent: UNMutableNotificationContent,
| `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
124 | contentHandler: @escaping (UNNotificationContent) -> Void) {
125 | contentHandler(bestAttemptContent)
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:124: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`.
:
119 | }
120 |
121 | public static func handleNotificationServiceExtensionTimeWillExpireRequest(
| `- note: add @available attribute to enclosing static method
122 | request: UNNotificationRequest,
123 | bestAttemptContent: UNMutableNotificationContent,
124 | contentHandler: @escaping (UNNotificationContent) -> Void) {
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
125 | contentHandler(bestAttemptContent)
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:166: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`.
:
161 | /// - completion: closure that will be called once the file has been moved and an attachment has been created.
162 | /// Note that in the case of failure during file transfer or creating an attachment this closure will be called with `nil` indicating a failure.
163 | private static func createAttachment(
| `- note: add @available attribute to enclosing static method
164 | localFileURL: URL,
165 | localFilePathWithTypeString: String,
166 | completion: @escaping (UNNotificationAttachment?) -> Void) {
| `- error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
167 | let localFileURLWithType: URL
168 | if #available(iOS 16.0, *) {
[3/7] 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 | // handle badge setting from the push notification payload
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:52: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`.
:
50 | /// - Parameters:
51 | /// - bestAttemptContent: the best attempt at mutating the APNS payload before attaching it to the push notification
52 | 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
53 | guard let badgeConfigValue = bestAttemptContent.userInfo["badge_config"] as? String else { return }
54 | // retrieve the app group user defaults used to store the count
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:83: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`.
:
80 | /// - bestAttemptContent: the best attempt at mutating the APNS payload before attaching it to the push notification
81 | /// - contentHandler: the closure that needs to be called before the time iOS provides for us to mutate the content
82 | private static func handleRichMedia(
| `- note: add @available attribute to enclosing static method
83 | bestAttemptContent: UNMutableNotificationContent,
| `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
84 | contentHandler: @escaping (UNNotificationContent) -> Void,
85 | fallbackMediaType: String = "jpeg") {
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:84: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`.
:
80 | /// - bestAttemptContent: the best attempt at mutating the APNS payload before attaching it to the push notification
81 | /// - contentHandler: the closure that needs to be called before the time iOS provides for us to mutate the content
82 | private static func handleRichMedia(
| `- note: add @available attribute to enclosing static method
83 | bestAttemptContent: UNMutableNotificationContent,
84 | contentHandler: @escaping (UNNotificationContent) -> Void,
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
85 | fallbackMediaType: String = "jpeg") {
86 | // 1a. get the rich media url from the push notification payload
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:122: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`.
:
119 | }
120 |
121 | public static func handleNotificationServiceExtensionTimeWillExpireRequest(
| `- note: add @available attribute to enclosing static method
122 | request: UNNotificationRequest,
| `- error: 'UNNotificationRequest' is only available in macOS 10.14 or newer
123 | bestAttemptContent: UNMutableNotificationContent,
124 | contentHandler: @escaping (UNNotificationContent) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:123: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`.
:
119 | }
120 |
121 | public static func handleNotificationServiceExtensionTimeWillExpireRequest(
| `- note: add @available attribute to enclosing static method
122 | request: UNNotificationRequest,
123 | bestAttemptContent: UNMutableNotificationContent,
| `- error: 'UNMutableNotificationContent' is only available in macOS 10.14 or newer
124 | contentHandler: @escaping (UNNotificationContent) -> Void) {
125 | contentHandler(bestAttemptContent)
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:124: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`.
:
119 | }
120 |
121 | public static func handleNotificationServiceExtensionTimeWillExpireRequest(
| `- note: add @available attribute to enclosing static method
122 | request: UNNotificationRequest,
123 | bestAttemptContent: UNMutableNotificationContent,
124 | contentHandler: @escaping (UNNotificationContent) -> Void) {
| `- error: 'UNNotificationContent' is only available in macOS 10.14 or newer
125 | contentHandler(bestAttemptContent)
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:166: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`.
:
161 | /// - completion: closure that will be called once the file has been moved and an attachment has been created.
162 | /// Note that in the case of failure during file transfer or creating an attachment this closure will be called with `nil` indicating a failure.
163 | private static func createAttachment(
| `- note: add @available attribute to enclosing static method
164 | localFileURL: URL,
165 | localFilePathWithTypeString: String,
166 | completion: @escaping (UNNotificationAttachment?) -> Void) {
| `- error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
167 | let localFileURLWithType: URL
168 | if #available(iOS 16.0, *) {
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:169: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`.
:
161 | /// - completion: closure that will be called once the file has been moved and an attachment has been created.
162 | /// Note that in the case of failure during file transfer or creating an attachment this closure will be called with `nil` indicating a failure.
163 | private static func createAttachment(
| `- note: add @available attribute to enclosing static method
164 | localFileURL: URL,
165 | localFilePathWithTypeString: String,
:
167 | let localFileURLWithType: URL
168 | if #available(iOS 16.0, *) {
169 | localFileURLWithType = URL(filePath: localFilePathWithTypeString)
| |- error: 'init(filePath:directoryHint:relativeTo:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
170 | } else {
171 | localFileURLWithType = URL(fileURLWithPath: localFilePathWithTypeString)
/Users/admin/builder/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:181: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`.
:
161 | /// - completion: closure that will be called once the file has been moved and an attachment has been created.
162 | /// Note that in the case of failure during file transfer or creating an attachment this closure will be called with `nil` indicating a failure.
163 | private static func createAttachment(
| `- note: add @available attribute to enclosing static method
164 | localFileURL: URL,
165 | localFilePathWithTypeString: String,
:
179 | }
180 |
181 | guard let attachment = try? UNNotificationAttachment(
| |- error: 'UNNotificationAttachment' is only available in macOS 10.14 or newer
| `- note: add 'if #available' version check
182 | identifier: "",
183 | url: localFileURLWithType,
warning: 'spi-builder-workspace': found 19 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/EncodableTests/testTokenPayload.1.json
/Users/admin/builder/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testInvalidStatusCode.1.txt
/Users/admin/builder/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testNetworkError.1.txt
/Users/admin/builder/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithStoreToken.1.txt
/Users/admin/builder/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/NetworkSessionTests/testSessionDataTask.2.txt
/Users/admin/builder/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithStoreToken.2.txt
/Users/admin/builder/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/NetworkSessionTests/testDefaultUserAgent.1.txt
/Users/admin/builder/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/EncodableTests/testProfilePayload.1.json
/Users/admin/builder/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testEncodingError.1.txt
/Users/admin/builder/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/EncodableTests/testUnregisterTokenPayload.1.json
/Users/admin/builder/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithEvent.1.txt
/Users/admin/builder/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/EncodableTests/testKlaviyoRequest.1.json
/Users/admin/builder/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithProfile.2.txt
/Users/admin/builder/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/NetworkSessionTests/testSessionDataTask.1.txt
/Users/admin/builder/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testInvalidURL.1.txt
/Users/admin/builder/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithEvent.2.txt
/Users/admin/builder/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithProfile.1.txt
/Users/admin/builder/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/NetworkSessionTests/testCreateEmphemeralSesionHeaders.1.txt
/Users/admin/builder/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/EncodableTests/testEventPayload.1.json
BUILD FAILURE 6.1 macosSpm