Build Information
Failed to build swift-analytics, reference main (b595fd
), with Swift 6.1 for Wasm on 1 Jun 2025 02:46:13 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dankinsoid/swift-analytics.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/dankinsoid/swift-analytics
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at b595fdb docs: Update documentation to reflect parameter type change to Encodable
Cloned https://github.com/dankinsoid/swift-analytics.git
Revision (git rev-parse @):
b595fdbe390a3d3505919f87b3c276012a7fc7f5
SUCCESS checkout https://github.com/dankinsoid/swift-analytics.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/dankinsoid/swift-analytics.git
https://github.com/dankinsoid/swift-analytics.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "swift-analytics",
"name" : "swift-analytics",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SwiftAnalytics",
"targets" : [
"SwiftAnalytics"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftAnalyticsTests",
"module_type" : "SwiftTarget",
"name" : "SwiftAnalyticsTests",
"path" : "Tests/SwiftAnalyticsTests",
"sources" : [
"ParametersValueEncoderDecoderTests.swift",
"SwiftAnalyticsTests.swift"
],
"target_dependencies" : [
"SwiftAnalytics"
],
"type" : "test"
},
{
"c99name" : "SwiftAnalytics",
"module_type" : "SwiftTarget",
"name" : "SwiftAnalytics",
"path" : "Sources/SwiftAnalytics",
"product_memberships" : [
"SwiftAnalytics"
],
"sources" : [
"Analytics.swift",
"AnalyticsHandler.swift",
"AnalyticsSystem.swift",
"AnyCodingKey.swift",
"Locks.swift",
"MockAnalyticsHandler.swift",
"MultiplexAnalyticsHandler.swift",
"NOOPAnalyticsHandler.swift",
"ParametersProvider.swift",
"ParametersValue+JSONString.swift",
"ParametersValueDecoder.swift",
"ParametersValueEncoder.swift",
"WithAnalyticsParameters.swift"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/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 finestructure/spi-images
e1a89dea01a6: Already exists
39bc14e52995: Already exists
cc0382103b05: Already exists
084072dee40a: Already exists
f4e258bad158: Pulling fs layer
f4e258bad158: Verifying Checksum
f4e258bad158: Download complete
f4e258bad158: Pull complete
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Downloaded newer image for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/15] Compiling SwiftAnalytics MultiplexAnalyticsHandler.swift
[4/15] Compiling SwiftAnalytics NOOPAnalyticsHandler.swift
[5/16] Compiling SwiftAnalytics AnalyticsSystem.swift
/host/spi-builder-workspace/Sources/SwiftAnalytics/AnalyticsSystem.swift:8:21: warning: static property '_handler' is not concurrency-safe because non-'Sendable' type 'AnalyticsSystem.HandlerBox' may have shared mutable state; this is an error in the Swift 6 language mode
6 | public enum AnalyticsSystem {
7 |
8 | private static let _handler = HandlerBox(NOOPAnalyticsHandler.instance)
| |- warning: static property '_handler' is not concurrency-safe because non-'Sendable' type 'AnalyticsSystem.HandlerBox' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property '_handler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | /// `bootstrap` is an one-time configuration function which globally selects the desired analytics backend
:
41 | }
42 |
43 | private final class HandlerBox {
| `- note: class 'HandlerBox' does not conform to the 'Sendable' protocol
44 |
45 | private let lock = ReadWriteLock()
[6/16] Compiling SwiftAnalytics AnyCodingKey.swift
/host/spi-builder-workspace/Sources/SwiftAnalytics/AnalyticsSystem.swift:8:21: warning: static property '_handler' is not concurrency-safe because non-'Sendable' type 'AnalyticsSystem.HandlerBox' may have shared mutable state; this is an error in the Swift 6 language mode
6 | public enum AnalyticsSystem {
7 |
8 | private static let _handler = HandlerBox(NOOPAnalyticsHandler.instance)
| |- warning: static property '_handler' is not concurrency-safe because non-'Sendable' type 'AnalyticsSystem.HandlerBox' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property '_handler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | /// `bootstrap` is an one-time configuration function which globally selects the desired analytics backend
:
41 | }
42 |
43 | private final class HandlerBox {
| `- note: class 'HandlerBox' does not conform to the 'Sendable' protocol
44 |
45 | private let lock = ReadWriteLock()
[7/16] Emitting module SwiftAnalytics
/host/spi-builder-workspace/Sources/SwiftAnalytics/AnalyticsSystem.swift:8:21: warning: static property '_handler' is not concurrency-safe because non-'Sendable' type 'AnalyticsSystem.HandlerBox' may have shared mutable state; this is an error in the Swift 6 language mode
6 | public enum AnalyticsSystem {
7 |
8 | private static let _handler = HandlerBox(NOOPAnalyticsHandler.instance)
| |- warning: static property '_handler' is not concurrency-safe because non-'Sendable' type 'AnalyticsSystem.HandlerBox' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property '_handler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
9 |
10 | /// `bootstrap` is an one-time configuration function which globally selects the desired analytics backend
:
41 | }
42 |
43 | private final class HandlerBox {
| `- note: class 'HandlerBox' does not conform to the 'Sendable' protocol
44 |
45 | private let lock = ReadWriteLock()
/host/spi-builder-workspace/Sources/SwiftAnalytics/MockAnalyticsHandler.swift:6:13: warning: stored property 'parameters' of 'Sendable'-conforming class 'MockAnalyticsHandler' is mutable; this is an error in the Swift 6 language mode
4 | public final class MockAnalyticsHandler: AnalyticsHandler {
5 |
6 | public var parameters: Analytics.Parameters
| `- warning: stored property 'parameters' of 'Sendable'-conforming class 'MockAnalyticsHandler' is mutable; this is an error in the Swift 6 language mode
7 | public var events: [Analytics.Event] = []
8 |
/host/spi-builder-workspace/Sources/SwiftAnalytics/ParametersValueEncoder.swift:447:16: warning: static property 'iso8601DateFormatterWithOptions' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
445 |
446 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
447 | static let iso8601DateFormatterWithOptions: ISO8601DateFormatter = {
| |- warning: static property 'iso8601DateFormatterWithOptions' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'iso8601DateFormatterWithOptions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
448 | let formatter = ISO8601DateFormatter()
449 | return formatter
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
2 | open var timeZone: TimeZone! { get set }
3 | open var formatOptions: ISO8601DateFormatter.Options { get set }
[8/16] Compiling SwiftAnalytics Analytics.swift
[9/16] Compiling SwiftAnalytics AnalyticsHandler.swift
[10/16] Compiling SwiftAnalytics Locks.swift
/host/spi-builder-workspace/Sources/SwiftAnalytics/MockAnalyticsHandler.swift:6:13: warning: stored property 'parameters' of 'Sendable'-conforming class 'MockAnalyticsHandler' is mutable; this is an error in the Swift 6 language mode
4 | public final class MockAnalyticsHandler: AnalyticsHandler {
5 |
6 | public var parameters: Analytics.Parameters
| `- warning: stored property 'parameters' of 'Sendable'-conforming class 'MockAnalyticsHandler' is mutable; this is an error in the Swift 6 language mode
7 | public var events: [Analytics.Event] = []
8 |
[11/16] Compiling SwiftAnalytics MockAnalyticsHandler.swift
/host/spi-builder-workspace/Sources/SwiftAnalytics/MockAnalyticsHandler.swift:6:13: warning: stored property 'parameters' of 'Sendable'-conforming class 'MockAnalyticsHandler' is mutable; this is an error in the Swift 6 language mode
4 | public final class MockAnalyticsHandler: AnalyticsHandler {
5 |
6 | public var parameters: Analytics.Parameters
| `- warning: stored property 'parameters' of 'Sendable'-conforming class 'MockAnalyticsHandler' is mutable; this is an error in the Swift 6 language mode
7 | public var events: [Analytics.Event] = []
8 |
[12/16] Compiling SwiftAnalytics ParametersValueEncoder.swift
/host/spi-builder-workspace/Sources/SwiftAnalytics/ParametersValueEncoder.swift:447:16: warning: static property 'iso8601DateFormatterWithOptions' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
445 |
446 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
447 | static let iso8601DateFormatterWithOptions: ISO8601DateFormatter = {
| |- warning: static property 'iso8601DateFormatterWithOptions' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'iso8601DateFormatterWithOptions' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
448 | let formatter = ISO8601DateFormatter()
449 | return formatter
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
2 | open var timeZone: TimeZone! { get set }
3 | open var formatOptions: ISO8601DateFormatter.Options { get set }
/host/spi-builder-workspace/Sources/SwiftAnalytics/ParametersValueEncoder.swift:477:29: error: pattern variable binding cannot appear in an expression
475 | }
476 |
477 | case let .formatted(formatter):
| `- error: pattern variable binding cannot appear in an expression
478 | return .string(formatter.string(from: date))
479 |
[13/16] Compiling SwiftAnalytics ParametersValueDecoder.swift
/host/spi-builder-workspace/Sources/SwiftAnalytics/ParametersValueDecoder.swift:716:29: error: pattern variable binding cannot appear in an expression
714 | }
715 |
716 | case let .formatted(formatter):
| `- error: pattern variable binding cannot appear in an expression
717 | guard case let .string(string) = value else {
718 | throw DecodingError.typeMismatch(Date.self, DecodingError.Context(
[14/16] Compiling SwiftAnalytics ParametersProvider.swift
[15/16] Compiling SwiftAnalytics ParametersValue+JSONString.swift
[16/16] Compiling SwiftAnalytics WithAnalyticsParameters.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/14] Emitting module SwiftAnalytics
[3/15] Compiling SwiftAnalytics ParametersValueEncoder.swift
/host/spi-builder-workspace/Sources/SwiftAnalytics/ParametersValueEncoder.swift:477:29: error: pattern variable binding cannot appear in an expression
475 | }
476 |
477 | case let .formatted(formatter):
| `- error: pattern variable binding cannot appear in an expression
478 | return .string(formatter.string(from: date))
479 |
[4/15] Compiling SwiftAnalytics ParametersValueDecoder.swift
/host/spi-builder-workspace/Sources/SwiftAnalytics/ParametersValueDecoder.swift:716:29: error: pattern variable binding cannot appear in an expression
714 | }
715 |
716 | case let .formatted(formatter):
| `- error: pattern variable binding cannot appear in an expression
717 | guard case let .string(string) = value else {
718 | throw DecodingError.typeMismatch(Date.self, DecodingError.Context(
[5/15] Compiling SwiftAnalytics AnalyticsSystem.swift
[6/15] Compiling SwiftAnalytics AnyCodingKey.swift
[7/15] Compiling SwiftAnalytics Analytics.swift
[8/15] Compiling SwiftAnalytics AnalyticsHandler.swift
[9/15] Compiling SwiftAnalytics MultiplexAnalyticsHandler.swift
[10/15] Compiling SwiftAnalytics NOOPAnalyticsHandler.swift
[11/15] Compiling SwiftAnalytics Locks.swift
[12/15] Compiling SwiftAnalytics MockAnalyticsHandler.swift
[13/15] Compiling SwiftAnalytics ParametersProvider.swift
[14/15] Compiling SwiftAnalytics ParametersValue+JSONString.swift
[15/15] Compiling SwiftAnalytics WithAnalyticsParameters.swift
BUILD FAILURE 6.1 wasm