Build Information
Failed to build klaviyo-swift-sdk, reference master (8a2e4d
), with Swift 6.1 for macOS (SPM) on 30 Apr 2025 17:45:41 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.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
Fetching https://github.com/pointfreeco/swift-custom-dump from cache
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay from cache
Fetching https://github.com/Flight-School/AnyCodable
Fetching https://github.com/pointfreeco/swift-snapshot-testing from cache
Fetching https://github.com/pointfreeco/swift-case-paths from cache
Fetching https://github.com/pointfreeco/combine-schedulers from cache
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (0.50s)
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (0.50s)
[1/782] Fetching anycodable
Fetched https://github.com/Flight-School/AnyCodable from cache (0.87s)
Fetched https://github.com/pointfreeco/combine-schedulers from cache (0.87s)
Fetched https://github.com/pointfreeco/swift-snapshot-testing from cache (0.87s)
Fetched https://github.com/pointfreeco/swift-case-paths from cache (0.87s)
Computing version for https://github.com/pointfreeco/combine-schedulers
Computed https://github.com/pointfreeco/combine-schedulers at 0.9.1 (2.08s)
Computing version for https://github.com/pointfreeco/swift-case-paths
Computed https://github.com/pointfreeco/swift-case-paths at 0.10.1 (0.67s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 0.6.1 (0.61s)
Computing version for https://github.com/Flight-School/AnyCodable
Computed https://github.com/Flight-School/AnyCodable at 0.6.7 (0.63s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.10.0 (0.63s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 0.6.0 (0.65s)
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/swift-snapshot-testing
Working copy of https://github.com/pointfreeco/swift-snapshot-testing resolved at 1.10.0
Creating working copy for https://github.com/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 0.6.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/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/combine-schedulers
Working copy of https://github.com/pointfreeco/combine-schedulers resolved at 0.9.1
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "klaviyo-swift-sdk",
"name": "klaviyo-swift-sdk",
"url": "https://github.com/klaviyo/klaviyo-swift-sdk.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/klaviyo-swift-sdk",
"dependencies": [
{
"identity": "anycodable",
"name": "AnyCodable",
"url": "https://github.com/Flight-School/AnyCodable",
"version": "0.6.7",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/AnyCodable",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/klaviyo/klaviyo-swift-sdk.git
[1/12304] Fetching klaviyo-swift-sdk
Fetched https://github.com/klaviyo/klaviyo-swift-sdk.git from cache (2.05s)
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.49s)
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 master (8a2e4de)
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",
"KlaviyoInternalTests.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",
"Models/ProfileData.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",
"KlaviyoWebViewControllerTests.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/IAFLifecycleEvent.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/WebViewConsoleRelayMessage.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",
"UInt64+ExtTests.swift",
"WithTimeoutTests.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/ObjectStateError.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/UInt64+Ext.swift",
"Utils/Version.swift",
"Utils/WithTimeout.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] Write sources
[1/13] Copying toggleHandler.js
[5/13] Copying klaviyo.html
[5/13] Copying PrivacyInfo.xcprivacy
[6/13] Copying InAppFormsTemplate.html
[6/13] Copying consoleHandler.js
[10/13] Copying jstest.html
[11/13] Copying closeHandler.js
[12/13] Write swift-version-2F0A5646E1D333AE.txt
[14/19] Emitting module AnyCodable
[15/19] Compiling AnyCodable AnyDecodable.swift
[16/19] Compiling AnyCodable AnyCodable.swift
[17/19] Compiling AnyCodable AnyEncodable.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[18/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
[19/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:149:17: warning: capture of 'completion' with non-sendable type '(URL?) -> Void' in a '@Sendable' closure
147 | if let error = error {
148 | print("error when downloading push media = \(error.localizedDescription)")
149 | 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'
150 | return
151 | }
/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,
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 | ) {
/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
[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 | ) {
/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,
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__/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/testUnregisterTokenPayload.1.json
/Users/admin/builder/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/NetworkSessionTests/testSessionDataTask.2.txt
/Users/admin/builder/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithEvent.2.txt
/Users/admin/builder/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/EncodableTests/testProfilePayload.1.json
/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
/Users/admin/builder/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testNetworkError.1.txt
/Users/admin/builder/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/EncodableTests/testKlaviyoRequest.1.json
/Users/admin/builder/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/EncodableTests/testTokenPayload.1.json
/Users/admin/builder/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithEvent.1.txt
/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/testEncodingError.1.txt
/Users/admin/builder/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testInvalidStatusCode.1.txt
/Users/admin/builder/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithProfile.1.txt
/Users/admin/builder/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithStoreToken.1.txt
/Users/admin/builder/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testInvalidURL.1.txt
BUILD FAILURE 6.1 macosSpm