Build Information
Failed to build CioAnalytics, reference main (b5f805), with Swift 6.1 for Wasm on 2 Apr 2026 13:38:52 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.69.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/customerio/cdp-analytics-swift.git
Reference: main
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/customerio/cdp-analytics-swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at b5f805b Merge pull request #9 from customerio/dx-516
Cloned https://github.com/customerio/cdp-analytics-swift.git
Revision (git rev-parse @):
b5f805b7cd54395ab35bd48d351ee0949ff0a474
SUCCESS checkout https://github.com/customerio/cdp-analytics-swift.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/customerio/cdp-analytics-swift.git
https://github.com/customerio/cdp-analytics-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "sovran-swift",
"requirement" : {
"exact" : [
"1.1.2"
]
},
"type" : "sourceControl",
"url" : "https://github.com/segmentio/sovran-swift.git"
},
{
"identity" : "jsonsafeencoding-swift",
"requirement" : {
"exact" : [
"2.0.0"
]
},
"type" : "sourceControl",
"url" : "https://github.com/segmentio/jsonsafeencoding-swift.git"
}
],
"manifest_display_name" : "CioAnalytics",
"name" : "CioAnalytics",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "7.1"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "CioAnalytics",
"targets" : [
"CioAnalytics"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "CioAnalytics_Tests",
"module_type" : "SwiftTarget",
"name" : "CioAnalytics-Tests",
"path" : "Tests",
"sources" : [
"Segment-Tests/Analytics_Tests.swift",
"Segment-Tests/Atomic_Tests.swift",
"Segment-Tests/CompletionGroup_Tests.swift",
"Segment-Tests/FlushPolicy_Tests.swift",
"Segment-Tests/HTTPClient_Tests.swift",
"Segment-Tests/JSON_Tests.swift",
"Segment-Tests/KeyPath_Tests.swift",
"Segment-Tests/MemoryLeak_Tests.swift",
"Segment-Tests/ObjC_Tests.swift",
"Segment-Tests/Storage_Tests.swift",
"Segment-Tests/StressTests.swift",
"Segment-Tests/Support/TestUtilities.swift",
"Segment-Tests/Telemetry_Tests.swift",
"Segment-Tests/Timeline_Tests.swift",
"Segment-Tests/UserAgentTests.swift",
"Segment-Tests/WindowsVendorSystem_Tests.swift",
"Segment-Tests/XCTestManifests.swift",
"Segment-Tests/iOSLifecycle_Tests.swift"
],
"target_dependencies" : [
"CioAnalytics"
],
"type" : "test"
},
{
"c99name" : "CioAnalytics",
"module_type" : "SwiftTarget",
"name" : "CioAnalytics",
"path" : "Sources/Segment",
"product_dependencies" : [
"Sovran",
"JSONSafeEncoding"
],
"product_memberships" : [
"CioAnalytics"
],
"sources" : [
"Analytics.swift",
"Configuration.swift",
"Deprecations.swift",
"Errors.swift",
"Events.swift",
"ObjC/ObjCAnalytics.swift",
"ObjC/ObjCConfiguration.swift",
"ObjC/ObjCEvents.swift",
"ObjC/ObjCPlugin.swift",
"Plugins.swift",
"Plugins/Context.swift",
"Plugins/DestinationMetadataPlugin.swift",
"Plugins/DeviceToken.swift",
"Plugins/Platforms/Linux/LinuxLifecycleMonitor.swift",
"Plugins/Platforms/Mac/macOSLifecycleEvents.swift",
"Plugins/Platforms/Mac/macOSLifecycleMonitor.swift",
"Plugins/Platforms/Vendors/AppleUtils.swift",
"Plugins/Platforms/Vendors/LinuxUtils.swift",
"Plugins/Platforms/Vendors/VendorSystem.swift",
"Plugins/Platforms/Vendors/WindowsUtils.swift",
"Plugins/Platforms/iOS/iOSDelegation.swift",
"Plugins/Platforms/iOS/iOSLifecycleEvents.swift",
"Plugins/Platforms/iOS/iOSLifecycleMonitor.swift",
"Plugins/Platforms/watchOS/watchOSDelegation.swift",
"Plugins/Platforms/watchOS/watchOSLifecycleEvents.swift",
"Plugins/Platforms/watchOS/watchOSLifecycleMonitor.swift",
"Plugins/SegmentDestination.swift",
"Plugins/StartupQueue.swift",
"Settings.swift",
"Startup.swift",
"State.swift",
"Timeline.swift",
"Types.swift",
"Utilities/Atomic.swift",
"Utilities/CompletionGroup.swift",
"Utilities/JSON.swift",
"Utilities/KeyPath.swift",
"Utilities/Logging.swift",
"Utilities/Networking/HTTPClient.swift",
"Utilities/Networking/HTTPSession+Apple.swift",
"Utilities/Networking/HTTPSession.swift",
"Utilities/Noncodable.swift",
"Utilities/OutputFileStream.swift",
"Utilities/Policies/CountBasedFlushPolicy.swift",
"Utilities/Policies/FlushPolicy.swift",
"Utilities/Policies/IntervalBasedFlushPolicy.swift",
"Utilities/QueueTimer.swift",
"Utilities/Storage/DataStore.swift",
"Utilities/Storage/Storage.swift",
"Utilities/Storage/TransientDB.swift",
"Utilities/Storage/Types/DirectoryStore.swift",
"Utilities/Storage/Types/MemoryStore.swift",
"Utilities/Storage/Utilities/FileHandleExt.swift",
"Utilities/Storage/Utilities/LineStream.swift",
"Utilities/Telemetry.swift",
"Utilities/UserAgent.swift",
"Utilities/Utils.swift",
"Utilities/iso8601.swift",
"Version.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
warning: 'spi-builder-workspace': Invalid Resource 'Segment/Resources': File not found.
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:c3bd0c8eb125dea46564a1eb8b09ee779ba7ae350b1ee58b5e9d6ff6c39cef37
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
Fetching https://github.com/segmentio/sovran-swift.git
Fetching https://github.com/segmentio/jsonsafeencoding-swift.git
[1/77] Fetching jsonsafeencoding-swift
[78/448] Fetching jsonsafeencoding-swift, sovran-swift
Fetched https://github.com/segmentio/jsonsafeencoding-swift.git from cache (0.24s)
Fetched https://github.com/segmentio/sovran-swift.git from cache (0.28s)
Computing version for https://github.com/segmentio/jsonsafeencoding-swift.git
Computed https://github.com/segmentio/jsonsafeencoding-swift.git at 2.0.0 (2.97s)
Computing version for https://github.com/segmentio/sovran-swift.git
Computed https://github.com/segmentio/sovran-swift.git at 1.1.2 (1.01s)
Creating working copy for https://github.com/segmentio/jsonsafeencoding-swift.git
Working copy of https://github.com/segmentio/jsonsafeencoding-swift.git resolved at 2.0.0
Creating working copy for https://github.com/segmentio/sovran-swift.git
Working copy of https://github.com/segmentio/sovran-swift.git resolved at 1.1.2
warning: 'spi-builder-workspace': Invalid Resource 'Segment/Resources': File not found.
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Sources/Segment/Resources/PrivacyInfo.xcprivacy
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/17] Compiling Sovran Version.swift
[6/17] Compiling JSONSafeEncoding Version.swift
[7/17] Compiling JSONSafeEncoding JSONValue.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/17] Emitting module Sovran
/host/spi-builder-workspace/.build/checkouts/sovran-swift/Sources/Sovran/Store.swift:14:32: error: cannot find 'DispatchQueue' in scope
12 | public class Store {
13 | // handles synchronizing state changes thru the system
14 | internal let updateQueue = DispatchQueue(label: "state.update.segment.com")
| `- error: cannot find 'DispatchQueue' in scope
15 | // handles synchronizing subscription adds/removes
16 | internal let syncQueue = DispatchQueue(label: "state.sync.segment.com")
/host/spi-builder-workspace/.build/checkouts/sovran-swift/Sources/Sovran/Store.swift:16:30: error: cannot find 'DispatchQueue' in scope
14 | internal let updateQueue = DispatchQueue(label: "state.update.segment.com")
15 | // handles synchronizing subscription adds/removes
16 | internal let syncQueue = DispatchQueue(label: "state.sync.segment.com")
| `- error: cannot find 'DispatchQueue' in scope
17 | internal var states = [Container]()
18 | internal var subscribers = [Subscription]()
/host/spi-builder-workspace/.build/checkouts/sovran-swift/Sources/Sovran/Store.swift:54:98: error: cannot find type 'DispatchQueue' in scope
52 | */
53 | @discardableResult
54 | public func subscribe<T: State>(_ subscriber: Subscriber, initialState: Bool = false, queue: DispatchQueue = .main, handler: @escaping Handler<T>) -> SubscriptionID {
| `- error: cannot find type 'DispatchQueue' in scope
55 | let subscription = Subscription(owner: subscriber, queue: queue, handler: handler)
56 | syncQueue.sync {
/host/spi-builder-workspace/.build/checkouts/sovran-swift/Sources/Sovran/Store.swift:202:16: error: cannot find type 'DispatchQueue' in scope
200 | internal struct Subscription {
201 | weak var owner: Subscriber? = nil
202 | let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
203 | let handler: Any
204 | let subscriptionID = createNextSubscriptionID()
/host/spi-builder-workspace/.build/checkouts/sovran-swift/Sources/Sovran/Testing.swift:19:19: error: cannot find 'Thread' in scope
17 | // this will work on linux and apple platforms, but not in anything with a UI
18 | // because XCTest doesn't come into the call stack till much later.
19 | let matches = Thread.callStackSymbols.filter { line in
| `- error: cannot find 'Thread' in scope
20 | return line.contains("XCTest") || line.contains("xctest")
21 | }
[9/17] Compiling Sovran Action.swift
[10/17] Compiling Sovran State.swift
[11/17] Compiling Sovran Store.swift
/host/spi-builder-workspace/.build/checkouts/sovran-swift/Sources/Sovran/Store.swift:14:32: error: cannot find 'DispatchQueue' in scope
12 | public class Store {
13 | // handles synchronizing state changes thru the system
14 | internal let updateQueue = DispatchQueue(label: "state.update.segment.com")
| `- error: cannot find 'DispatchQueue' in scope
15 | // handles synchronizing subscription adds/removes
16 | internal let syncQueue = DispatchQueue(label: "state.sync.segment.com")
/host/spi-builder-workspace/.build/checkouts/sovran-swift/Sources/Sovran/Store.swift:16:30: error: cannot find 'DispatchQueue' in scope
14 | internal let updateQueue = DispatchQueue(label: "state.update.segment.com")
15 | // handles synchronizing subscription adds/removes
16 | internal let syncQueue = DispatchQueue(label: "state.sync.segment.com")
| `- error: cannot find 'DispatchQueue' in scope
17 | internal var states = [Container]()
18 | internal var subscribers = [Subscription]()
/host/spi-builder-workspace/.build/checkouts/sovran-swift/Sources/Sovran/Store.swift:54:98: error: cannot find type 'DispatchQueue' in scope
52 | */
53 | @discardableResult
54 | public func subscribe<T: State>(_ subscriber: Subscriber, initialState: Bool = false, queue: DispatchQueue = .main, handler: @escaping Handler<T>) -> SubscriptionID {
| `- error: cannot find type 'DispatchQueue' in scope
55 | let subscription = Subscription(owner: subscriber, queue: queue, handler: handler)
56 | syncQueue.sync {
/host/spi-builder-workspace/.build/checkouts/sovran-swift/Sources/Sovran/Store.swift:202:16: error: cannot find type 'DispatchQueue' in scope
200 | internal struct Subscription {
201 | weak var owner: Subscriber? = nil
202 | let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
203 | let handler: Any
204 | let subscriptionID = createNextSubscriptionID()
[12/17] Compiling Sovran Subscriber.swift
[13/17] Compiling JSONSafeEncoding JSONSafeEncoder.swift
[14/17] Compiling Sovran Testing.swift
/host/spi-builder-workspace/.build/checkouts/sovran-swift/Sources/Sovran/Testing.swift:19:19: error: cannot find 'Thread' in scope
17 | // this will work on linux and apple platforms, but not in anything with a UI
18 | // because XCTest doesn't come into the call stack till much later.
19 | let matches = Thread.callStackSymbols.filter { line in
| `- error: cannot find 'Thread' in scope
20 | return line.contains("XCTest") || line.contains("xctest")
21 | }
/host/spi-builder-workspace/.build/checkouts/sovran-swift/Sources/Sovran/Store.swift:16:30: error: cannot find 'DispatchQueue' in scope
14 | internal let updateQueue = DispatchQueue(label: "state.update.segment.com")
15 | // handles synchronizing subscription adds/removes
16 | internal let syncQueue = DispatchQueue(label: "state.sync.segment.com")
| `- error: cannot find 'DispatchQueue' in scope
17 | internal var states = [Container]()
18 | internal var subscribers = [Subscription]()
/host/spi-builder-workspace/.build/checkouts/sovran-swift/Sources/Sovran/Store.swift:14:32: error: cannot find 'DispatchQueue' in scope
12 | public class Store {
13 | // handles synchronizing state changes thru the system
14 | internal let updateQueue = DispatchQueue(label: "state.update.segment.com")
| `- error: cannot find 'DispatchQueue' in scope
15 | // handles synchronizing subscription adds/removes
16 | internal let syncQueue = DispatchQueue(label: "state.sync.segment.com")
[15/17] Compiling JSONSafeEncoding JSONError.swift
[16/17] Emitting module JSONSafeEncoding
[17/17] Compiling JSONSafeEncoding Extensions.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:c3bd0c8eb125dea46564a1eb8b09ee779ba7ae350b1ee58b5e9d6ff6c39cef37
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
warning: 'spi-builder-workspace': Invalid Resource 'Segment/Resources': File not found.
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Sources/Segment/Resources/PrivacyInfo.xcprivacy
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/14] Compiling Sovran Version.swift
[3/14] Compiling Sovran Action.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/14] Emitting module Sovran
/host/spi-builder-workspace/.build/checkouts/sovran-swift/Sources/Sovran/Store.swift:14:32: error: cannot find 'DispatchQueue' in scope
12 | public class Store {
13 | // handles synchronizing state changes thru the system
14 | internal let updateQueue = DispatchQueue(label: "state.update.segment.com")
| `- error: cannot find 'DispatchQueue' in scope
15 | // handles synchronizing subscription adds/removes
16 | internal let syncQueue = DispatchQueue(label: "state.sync.segment.com")
/host/spi-builder-workspace/.build/checkouts/sovran-swift/Sources/Sovran/Store.swift:16:30: error: cannot find 'DispatchQueue' in scope
14 | internal let updateQueue = DispatchQueue(label: "state.update.segment.com")
15 | // handles synchronizing subscription adds/removes
16 | internal let syncQueue = DispatchQueue(label: "state.sync.segment.com")
| `- error: cannot find 'DispatchQueue' in scope
17 | internal var states = [Container]()
18 | internal var subscribers = [Subscription]()
/host/spi-builder-workspace/.build/checkouts/sovran-swift/Sources/Sovran/Store.swift:54:98: error: cannot find type 'DispatchQueue' in scope
52 | */
53 | @discardableResult
54 | public func subscribe<T: State>(_ subscriber: Subscriber, initialState: Bool = false, queue: DispatchQueue = .main, handler: @escaping Handler<T>) -> SubscriptionID {
| `- error: cannot find type 'DispatchQueue' in scope
55 | let subscription = Subscription(owner: subscriber, queue: queue, handler: handler)
56 | syncQueue.sync {
/host/spi-builder-workspace/.build/checkouts/sovran-swift/Sources/Sovran/Store.swift:202:16: error: cannot find type 'DispatchQueue' in scope
200 | internal struct Subscription {
201 | weak var owner: Subscriber? = nil
202 | let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
203 | let handler: Any
204 | let subscriptionID = createNextSubscriptionID()
/host/spi-builder-workspace/.build/checkouts/sovran-swift/Sources/Sovran/Testing.swift:19:19: error: cannot find 'Thread' in scope
17 | // this will work on linux and apple platforms, but not in anything with a UI
18 | // because XCTest doesn't come into the call stack till much later.
19 | let matches = Thread.callStackSymbols.filter { line in
| `- error: cannot find 'Thread' in scope
20 | return line.contains("XCTest") || line.contains("xctest")
21 | }
[5/14] Compiling Sovran State.swift
[6/14] Compiling Sovran Testing.swift
/host/spi-builder-workspace/.build/checkouts/sovran-swift/Sources/Sovran/Testing.swift:19:19: error: cannot find 'Thread' in scope
17 | // this will work on linux and apple platforms, but not in anything with a UI
18 | // because XCTest doesn't come into the call stack till much later.
19 | let matches = Thread.callStackSymbols.filter { line in
| `- error: cannot find 'Thread' in scope
20 | return line.contains("XCTest") || line.contains("xctest")
21 | }
/host/spi-builder-workspace/.build/checkouts/sovran-swift/Sources/Sovran/Store.swift:16:30: error: cannot find 'DispatchQueue' in scope
14 | internal let updateQueue = DispatchQueue(label: "state.update.segment.com")
15 | // handles synchronizing subscription adds/removes
16 | internal let syncQueue = DispatchQueue(label: "state.sync.segment.com")
| `- error: cannot find 'DispatchQueue' in scope
17 | internal var states = [Container]()
18 | internal var subscribers = [Subscription]()
/host/spi-builder-workspace/.build/checkouts/sovran-swift/Sources/Sovran/Store.swift:14:32: error: cannot find 'DispatchQueue' in scope
12 | public class Store {
13 | // handles synchronizing state changes thru the system
14 | internal let updateQueue = DispatchQueue(label: "state.update.segment.com")
| `- error: cannot find 'DispatchQueue' in scope
15 | // handles synchronizing subscription adds/removes
16 | internal let syncQueue = DispatchQueue(label: "state.sync.segment.com")
[7/14] Compiling Sovran Store.swift
/host/spi-builder-workspace/.build/checkouts/sovran-swift/Sources/Sovran/Store.swift:14:32: error: cannot find 'DispatchQueue' in scope
12 | public class Store {
13 | // handles synchronizing state changes thru the system
14 | internal let updateQueue = DispatchQueue(label: "state.update.segment.com")
| `- error: cannot find 'DispatchQueue' in scope
15 | // handles synchronizing subscription adds/removes
16 | internal let syncQueue = DispatchQueue(label: "state.sync.segment.com")
/host/spi-builder-workspace/.build/checkouts/sovran-swift/Sources/Sovran/Store.swift:16:30: error: cannot find 'DispatchQueue' in scope
14 | internal let updateQueue = DispatchQueue(label: "state.update.segment.com")
15 | // handles synchronizing subscription adds/removes
16 | internal let syncQueue = DispatchQueue(label: "state.sync.segment.com")
| `- error: cannot find 'DispatchQueue' in scope
17 | internal var states = [Container]()
18 | internal var subscribers = [Subscription]()
/host/spi-builder-workspace/.build/checkouts/sovran-swift/Sources/Sovran/Store.swift:54:98: error: cannot find type 'DispatchQueue' in scope
52 | */
53 | @discardableResult
54 | public func subscribe<T: State>(_ subscriber: Subscriber, initialState: Bool = false, queue: DispatchQueue = .main, handler: @escaping Handler<T>) -> SubscriptionID {
| `- error: cannot find type 'DispatchQueue' in scope
55 | let subscription = Subscription(owner: subscriber, queue: queue, handler: handler)
56 | syncQueue.sync {
/host/spi-builder-workspace/.build/checkouts/sovran-swift/Sources/Sovran/Store.swift:202:16: error: cannot find type 'DispatchQueue' in scope
200 | internal struct Subscription {
201 | weak var owner: Subscriber? = nil
202 | let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
203 | let handler: Any
204 | let subscriptionID = createNextSubscriptionID()
[8/14] Compiling Sovran Subscriber.swift
[9/14] Compiling JSONSafeEncoding Version.swift
BUILD FAILURE 6.1 wasm