Build Information
Failed to build Spinosis, reference 1.0.1 (74f481), with Swift 6.1 for Wasm on 4 Sep 2026 08:47:55 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344844-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.0.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ekofi/spinosis-ios.git
Reference: 1.0.1
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/ekofi/spinosis-ios
* tag 1.0.1 -> FETCH_HEAD
HEAD is now at 74f4810 Release 1.0.1
Cloned https://github.com/ekofi/spinosis-ios.git
Revision (git rev-parse @):
74f4810b6dfa002eadc800dab13e130681ab9408
SUCCESS checkout https://github.com/ekofi/spinosis-ios.git at 1.0.1
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/ekofi/spinosis-ios.git
https://github.com/ekofi/spinosis-ios.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/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 saguaro1/spi-images
Digest: sha256:290f441d1f5b7bf0dbbe61e8b7514208804cdcb507d57b3c762463ad036298f7
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/4] Emitting module Spinosis
[4/4] Compiling Spinosis Spinosis.swift
/host/spi-builder-workspace/Sources/Spinosis/Spinosis.swift:55:18: warning: non-sendable result type 'SpinosisAssignment' cannot be sent from actor-isolated context in call to instance method 'getAssignment(_:fallback:timeout:)'; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct SpinosisAssignment {
| `- note: consider making struct 'SpinosisAssignment' conform to the 'Sendable' protocol
4 | public var variant: String
5 | public var payload: [String: Any]
:
53 | timeout: TimeInterval? = nil
54 | ) async -> String {
55 | await client.getAssignment(experimentKey, fallback: fallback, timeout: timeout).variant
| `- warning: non-sendable result type 'SpinosisAssignment' cannot be sent from actor-isolated context in call to instance method 'getAssignment(_:fallback:timeout:)'; this is an error in the Swift 6 language mode
56 | }
57 |
/host/spi-builder-workspace/Sources/Spinosis/Spinosis.swift:63:18: warning: non-sendable result type 'SpinosisAssignment' cannot be sent from actor-isolated context in call to instance method 'getAssignment(_:fallback:timeout:)'; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct SpinosisAssignment {
| `- note: consider making struct 'SpinosisAssignment' conform to the 'Sendable' protocol
4 | public var variant: String
5 | public var payload: [String: Any]
:
61 | timeout: TimeInterval? = nil
62 | ) async -> SpinosisAssignment {
63 | await client.getAssignment(experimentKey, fallback: fallback, timeout: timeout)
| `- warning: non-sendable result type 'SpinosisAssignment' cannot be sent from actor-isolated context in call to instance method 'getAssignment(_:fallback:timeout:)'; this is an error in the Swift 6 language mode
64 | }
65 |
/host/spi-builder-workspace/Sources/Spinosis/Spinosis.swift:135:5: warning: result of 'try?' is unused
133 | initialized = true
134 |
135 | try? await post("/api/sdk/identify", body: identityPayload(), timeout: defaultTimeout)
| `- warning: result of 'try?' is unused
136 | }
137 |
/host/spi-builder-workspace/Sources/Spinosis/Spinosis.swift:145:5: warning: result of 'try?' is unused
143 | mergeProperties(properties)
144 | }
145 | try? await post("/api/sdk/identify", body: identityPayload(), timeout: defaultTimeout)
| `- warning: result of 'try?' is unused
146 | }
147 |
/host/spi-builder-workspace/Sources/Spinosis/Spinosis.swift:151:5: warning: result of 'try?' is unused
149 | guard initialized else { return }
150 | mergeProperties(properties)
151 | try? await post("/api/sdk/identify", body: identityPayload(), timeout: defaultTimeout)
| `- warning: result of 'try?' is unused
152 | }
153 |
/host/spi-builder-workspace/Sources/Spinosis/Spinosis.swift:185:5: warning: result of 'try?' is unused
183 | body["eventName"] = eventName
184 | body["properties"] = properties ?? [:]
185 | try? await post("/api/sdk/events", body: body, timeout: defaultTimeout)
| `- warning: result of 'try?' is unused
186 | }
187 |
/host/spi-builder-workspace/Sources/Spinosis/Spinosis.swift:218:7: error: cannot assign to value: 'payloadJSON' is a 'let' constant
214 |
215 | private func cache(_ experimentKey: String, variant: String, payload: [String: Any]) {
216 | let payloadJSON: Data? = nil
| `- note: change 'let' to 'var' to make it mutable
217 | if JSONSerialization.isValidJSONObject(payload) {
218 | payloadJSON = try? JSONSerialization.data(withJSONObject: payload)
| `- error: cannot assign to value: 'payloadJSON' is a 'let' constant
219 | }
220 | assignments[experimentKey] = CachedAssignment(
/host/spi-builder-workspace/Sources/Spinosis/Spinosis.swift:235:19: error: cannot find 'URLRequest' in scope
233 | guard let url = URL(string: "\(apiUrl)\(path)") else { throw URLError(.badURL) }
234 |
235 | var request = URLRequest(url: url, timeoutInterval: timeout)
| `- error: cannot find 'URLRequest' in scope
236 | request.httpMethod = "POST"
237 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Spinosis/Spinosis.swift:241:49: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
239 | request.httpBody = try JSONSerialization.data(withJSONObject: body)
240 |
241 | let (data, response) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
242 | guard let http = response as? HTTPURLResponse, (200 ..< 300).contains(http.statusCode) else {
243 | throw URLError(.badServerResponse)
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:290f441d1f5b7bf0dbbe61e8b7514208804cdcb507d57b3c762463ad036298f7
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/3] Emitting module Spinosis
[3/3] Compiling Spinosis Spinosis.swift
/host/spi-builder-workspace/Sources/Spinosis/Spinosis.swift:135:5: warning: result of 'try?' is unused
133 | initialized = true
134 |
135 | try? await post("/api/sdk/identify", body: identityPayload(), timeout: defaultTimeout)
| `- warning: result of 'try?' is unused
136 | }
137 |
/host/spi-builder-workspace/Sources/Spinosis/Spinosis.swift:145:5: warning: result of 'try?' is unused
143 | mergeProperties(properties)
144 | }
145 | try? await post("/api/sdk/identify", body: identityPayload(), timeout: defaultTimeout)
| `- warning: result of 'try?' is unused
146 | }
147 |
/host/spi-builder-workspace/Sources/Spinosis/Spinosis.swift:151:5: warning: result of 'try?' is unused
149 | guard initialized else { return }
150 | mergeProperties(properties)
151 | try? await post("/api/sdk/identify", body: identityPayload(), timeout: defaultTimeout)
| `- warning: result of 'try?' is unused
152 | }
153 |
/host/spi-builder-workspace/Sources/Spinosis/Spinosis.swift:185:5: warning: result of 'try?' is unused
183 | body["eventName"] = eventName
184 | body["properties"] = properties ?? [:]
185 | try? await post("/api/sdk/events", body: body, timeout: defaultTimeout)
| `- warning: result of 'try?' is unused
186 | }
187 |
/host/spi-builder-workspace/Sources/Spinosis/Spinosis.swift:218:7: error: cannot assign to value: 'payloadJSON' is a 'let' constant
214 |
215 | private func cache(_ experimentKey: String, variant: String, payload: [String: Any]) {
216 | let payloadJSON: Data? = nil
| `- note: change 'let' to 'var' to make it mutable
217 | if JSONSerialization.isValidJSONObject(payload) {
218 | payloadJSON = try? JSONSerialization.data(withJSONObject: payload)
| `- error: cannot assign to value: 'payloadJSON' is a 'let' constant
219 | }
220 | assignments[experimentKey] = CachedAssignment(
/host/spi-builder-workspace/Sources/Spinosis/Spinosis.swift:235:19: error: cannot find 'URLRequest' in scope
233 | guard let url = URL(string: "\(apiUrl)\(path)") else { throw URLError(.badURL) }
234 |
235 | var request = URLRequest(url: url, timeoutInterval: timeout)
| `- error: cannot find 'URLRequest' in scope
236 | request.httpMethod = "POST"
237 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Spinosis/Spinosis.swift:241:49: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
239 | request.httpBody = try JSONSerialization.data(withJSONObject: body)
240 |
241 | let (data, response) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
242 | guard let http = response as? HTTPURLResponse, (200 ..< 300).contains(http.statusCode) else {
243 | throw URLError(.badServerResponse)
BUILD FAILURE 6.1 wasm