Build Information
Failed to build klaviyo-swift-sdk, reference master (8a2e4d
), with Swift 6.1 for Linux on 30 Apr 2025 17:34:44 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
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 /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/klaviyo/klaviyo-swift-sdk
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 8a2e4de Merge pull request #336 from klaviyo/bl/lifecycle-listeners-klaviyoforms
Cloned https://github.com/klaviyo/klaviyo-swift-sdk.git
Revision (git rev-parse @):
8a2e4de9c767f80ccc39029e010c25d0c9e1abba
SUCCESS checkout https://github.com/klaviyo/klaviyo-swift-sdk.git at master
========================================
Build
========================================
Selected platform: linux
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
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"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" : "/host/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" : "/host/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" : "/host/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" : "/host/spi-builder-workspace/Sources/KlaviyoForms/InAppForms/Assets/InAppFormsTemplate.html",
"rule" : {
"process" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Sources/KlaviyoForms/KlaviyoWebView/Development Assets/HTML/jstest.html",
"rule" : {
"process" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Sources/KlaviyoForms/KlaviyoWebView/Development Assets/Scripts/toggleHandler.js",
"rule" : {
"process" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Sources/KlaviyoForms/KlaviyoWebView/Resources/HTML/klaviyo.html",
"rule" : {
"process" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Sources/KlaviyoForms/KlaviyoWebView/Resources/Scripts/closeHandler.js",
"rule" : {
"process" : {
}
}
},
{
"path" : "/host/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 ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/Flight-School/AnyCodable
Fetching https://github.com/pointfreeco/swift-custom-dump
Fetching https://github.com/pointfreeco/combine-schedulers
Fetching https://github.com/pointfreeco/swift-snapshot-testing
Fetching https://github.com/pointfreeco/swift-case-paths
[1/4581] Fetching swift-custom-dump
[47/5363] Fetching swift-custom-dump, anycodable
[2330/7773] Fetching swift-custom-dump, anycodable, combine-schedulers
[2874/12141] Fetching swift-custom-dump, anycodable, combine-schedulers, swift-case-paths
Fetched https://github.com/Flight-School/AnyCodable from cache (0.33s)
[1/13159] Fetching swift-snapshot-testing
Fetched https://github.com/pointfreeco/combine-schedulers from cache (0.43s)
Fetched https://github.com/pointfreeco/swift-case-paths from cache (2.02s)
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (2.02s)
Fetched https://github.com/pointfreeco/swift-snapshot-testing from cache (2.10s)
Computing version for https://github.com/pointfreeco/combine-schedulers
Computed https://github.com/pointfreeco/combine-schedulers at 0.11.0 (5.35s)
Fetching https://github.com/pointfreeco/swift-concurrency-extras
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
[1/852] Fetching swift-concurrency-extras
[853/6240] Fetching swift-concurrency-extras, xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/swift-concurrency-extras from cache (1.40s)
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (1.41s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 0.9.0 (2.20s)
Computing version for https://github.com/pointfreeco/swift-concurrency-extras
Computed https://github.com/pointfreeco/swift-concurrency-extras at 0.1.2 (0.98s)
Computing version for https://github.com/pointfreeco/swift-case-paths
Computed https://github.com/pointfreeco/swift-case-paths at 0.14.1 (1.21s)
Computing version for https://github.com/Flight-School/AnyCodable
Computed https://github.com/Flight-School/AnyCodable at 0.6.7 (0.69s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 0.11.2 (0.68s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.17.7 (0.92s)
Fetching https://github.com/swiftlang/swift-syntax
[1/70245] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (5.31s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 600.0.1 (6.23s)
Creating working copy for https://github.com/pointfreeco/combine-schedulers
Working copy of https://github.com/pointfreeco/combine-schedulers resolved at 0.11.0
Creating working copy for https://github.com/pointfreeco/swift-concurrency-extras
Working copy of https://github.com/pointfreeco/swift-concurrency-extras resolved at 0.1.2
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing
Working copy of https://github.com/pointfreeco/swift-snapshot-testing resolved at 1.17.7
Creating working copy for https://github.com/pointfreeco/swift-case-paths
Working copy of https://github.com/pointfreeco/swift-case-paths resolved at 0.14.1
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 0.9.0
Creating working copy for https://github.com/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 0.11.2
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/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 600.0.1
Building for debugging...
[0/13] Copying jstest.html
[0/13] Write sources
[0/13] Copying InAppFormsTemplate.html
[0/13] Write sources
[7/13] Copying PrivacyInfo.xcprivacy
[7/13] Copying toggleHandler.js
[7/13] Copying klaviyo.html
[7/13] Copying consoleHandler.js
[7/13] Copying closeHandler.js
[12/13] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[14/19] Emitting module KlaviyoSwiftExtension
/host/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:8:8: error: no such module 'UserNotifications'
6 | //
7 | import Foundation
8 | import UserNotifications
| `- error: no such module 'UserNotifications'
9 |
10 | private enum KlaviyoBadgeConfig {
[15/19] Compiling KlaviyoSwiftExtension KlaviyoExtension.swift
/host/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:8:8: error: no such module 'UserNotifications'
6 | //
7 | import Foundation
8 | import UserNotifications
| `- error: no such module 'UserNotifications'
9 |
10 | private enum KlaviyoBadgeConfig {
[16/19] Compiling AnyCodable AnyEncodable.swift
[17/19] Compiling AnyCodable AnyDecodable.swift
[18/19] Emitting module AnyCodable
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
warning: 'spi-builder-workspace': found 19 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/EncodableTests/testUnregisterTokenPayload.1.json
/host/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithProfile.1.txt
/host/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/NetworkSessionTests/testSessionDataTask.1.txt
/host/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testEncodingError.1.txt
/host/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/EncodableTests/testTokenPayload.1.json
/host/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testInvalidStatusCode.1.txt
/host/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/EncodableTests/testKlaviyoRequest.1.json
/host/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testNetworkError.1.txt
/host/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/EncodableTests/testProfilePayload.1.json
/host/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testInvalidURL.1.txt
/host/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithEvent.1.txt
/host/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/EncodableTests/testEventPayload.1.json
/host/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithEvent.2.txt
/host/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithStoreToken.1.txt
/host/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithProfile.2.txt
/host/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/KlaviyoAPITests/testSuccessfulResponseWithStoreToken.2.txt
/host/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/NetworkSessionTests/testCreateEmphemeralSesionHeaders.1.txt
/host/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/NetworkSessionTests/testSessionDataTask.2.txt
/host/spi-builder-workspace/Tests/KlaviyoCoreTests/__Snapshots__/NetworkSessionTests/testDefaultUserAgent.1.txt
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/7] Compiling KlaviyoSwiftExtension KlaviyoExtension.swift
/host/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:8:8: error: no such module 'UserNotifications'
6 | //
7 | import Foundation
8 | import UserNotifications
| `- error: no such module 'UserNotifications'
9 |
10 | private enum KlaviyoBadgeConfig {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/7] Emitting module KlaviyoSwiftExtension
/host/spi-builder-workspace/Sources/KlaviyoSwiftExtension/KlaviyoExtension.swift:8:8: error: no such module 'UserNotifications'
6 | //
7 | import Foundation
8 | import UserNotifications
| `- error: no such module 'UserNotifications'
9 |
10 | private enum KlaviyoBadgeConfig {
BUILD FAILURE 6.1 linux