Build Information
Failed to build KwtSMS, reference 0.4.0 (34bd5c), with Swift 6.1 for Wasm on 6 Nov 2026 23:47:20 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/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.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kwtsms/kwtsms-swift.git
Reference: 0.4.0
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/kwtsms/kwtsms-swift
* tag 0.4.0 -> FETCH_HEAD
HEAD is now at 34bd5c9 Release 0.4.0 (and stale coverage test, ASCII hyphens in examples)
Cloned https://github.com/kwtsms/kwtsms-swift.git
Revision (git rev-parse @):
34bd5c9ad67c44c50714e2d15c9cd763a21a5b5a
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/kwtsms/kwtsms-swift.git at 0.4.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/kwtsms/kwtsms-swift.git
https://github.com/kwtsms/kwtsms-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/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:c39884094bf9874b7a6bb32559a257cc0b80a9b15eb9e58adaa15f5bda5e4fb5
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/10] Compiling KwtSMS EnvLoader.swift
[4/10] Compiling KwtSMS Logger.swift
[5/10] Compiling KwtSMS MessageUtils.swift
[6/10] Compiling KwtSMS KwtSMS.swift
/host/spi-builder-workspace/Sources/KwtSMS/KwtSMS.swift:236:38: warning: non-sendable result type '[String : Any]' cannot be sent from nonisolated context in call to global function 'apiRequest(endpoint:payload:logFile:userAgent:)'; this is an error in the Swift 6 language mode
234 | public func verify() async -> VerifyResult {
235 | do {
236 | let response = try await apiRequest(
| `- warning: non-sendable result type '[String : Any]' cannot be sent from nonisolated context in call to global function 'apiRequest(endpoint:payload:logFile:userAgent:)'; this is an error in the Swift 6 language mode
237 | endpoint: "balance",
238 | payload: authPayload,
/host/spi-builder-workspace/Sources/KwtSMS/KwtSMS.swift:349:38: warning: non-sendable result type '[String : Any]' cannot be sent from nonisolated context in call to global function 'apiRequest(endpoint:payload:logFile:userAgent:)'; this is an error in the Swift 6 language mode
347 | payload["mobile"] = validNumbers.joined(separator: ",")
348 |
349 | let response = try await apiRequest(endpoint: "validate", payload: payload, logFile: logFile, userAgent: userAgent)
| `- warning: non-sendable result type '[String : Any]' cannot be sent from nonisolated context in call to global function 'apiRequest(endpoint:payload:logFile:userAgent:)'; this is an error in the Swift 6 language mode
350 | let result = response["result"] as? String ?? ""
351 |
/host/spi-builder-workspace/Sources/KwtSMS/KwtSMS.swift:374:38: warning: non-sendable result type '[String : Any]' cannot be sent from nonisolated context in call to global function 'apiRequest(endpoint:payload:logFile:userAgent:)'; this is an error in the Swift 6 language mode
372 | public func senderIds() async -> SenderIdResult {
373 | do {
374 | let response = try await apiRequest(endpoint: "senderid", payload: authPayload, logFile: logFile, userAgent: userAgent)
| `- warning: non-sendable result type '[String : Any]' cannot be sent from nonisolated context in call to global function 'apiRequest(endpoint:payload:logFile:userAgent:)'; this is an error in the Swift 6 language mode
375 | let result = response["result"] as? String ?? ""
376 |
/host/spi-builder-workspace/Sources/KwtSMS/KwtSMS.swift:402:38: warning: non-sendable result type '[String : Any]' cannot be sent from nonisolated context in call to global function 'apiRequest(endpoint:payload:logFile:userAgent:)'; this is an error in the Swift 6 language mode
400 | public func coverage() async -> CoverageResult {
401 | do {
402 | let response = try await apiRequest(endpoint: "coverage", payload: authPayload, logFile: logFile, userAgent: userAgent)
| `- warning: non-sendable result type '[String : Any]' cannot be sent from nonisolated context in call to global function 'apiRequest(endpoint:payload:logFile:userAgent:)'; this is an error in the Swift 6 language mode
403 | let result = response["result"] as? String ?? ""
404 |
/host/spi-builder-workspace/Sources/KwtSMS/KwtSMS.swift:434:38: warning: non-sendable result type '[String : Any]' cannot be sent from nonisolated context in call to global function 'apiRequest(endpoint:payload:logFile:userAgent:)'; this is an error in the Swift 6 language mode
432 | payload["msgid"] = msgId
433 |
434 | let response = try await apiRequest(endpoint: "status", payload: payload, logFile: logFile, userAgent: userAgent)
| `- warning: non-sendable result type '[String : Any]' cannot be sent from nonisolated context in call to global function 'apiRequest(endpoint:payload:logFile:userAgent:)'; this is an error in the Swift 6 language mode
435 | let result = response["result"] as? String ?? ""
436 |
/host/spi-builder-workspace/Sources/KwtSMS/KwtSMS.swift:476:38: warning: non-sendable result type '[String : Any]' cannot be sent from nonisolated context in call to global function 'apiRequest(endpoint:payload:logFile:userAgent:)'; this is an error in the Swift 6 language mode
474 | payload["msgid"] = msgId
475 |
476 | let response = try await apiRequest(endpoint: "dlr", payload: payload, logFile: logFile, userAgent: userAgent)
| `- warning: non-sendable result type '[String : Any]' cannot be sent from nonisolated context in call to global function 'apiRequest(endpoint:payload:logFile:userAgent:)'; this is an error in the Swift 6 language mode
477 | let result = response["result"] as? String ?? ""
478 |
/host/spi-builder-workspace/Sources/KwtSMS/KwtSMS.swift:572:38: warning: non-sendable result type '[String : Any]' cannot be sent from nonisolated context in call to global function 'apiRequest(endpoint:payload:logFile:userAgent:)'; this is an error in the Swift 6 language mode
570 |
571 | do {
572 | let response = try await apiRequest(endpoint: "send", payload: payload, logFile: logFile, userAgent: userAgent)
| `- warning: non-sendable result type '[String : Any]' cannot be sent from nonisolated context in call to global function 'apiRequest(endpoint:payload:logFile:userAgent:)'; this is an error in the Swift 6 language mode
573 | let result = response["result"] as? String ?? ""
574 |
/host/spi-builder-workspace/Sources/KwtSMS/KwtSMS.swift:236:38: warning: sending 'self.authPayload' risks causing data races; this is an error in the Swift 6 language mode
234 | public func verify() async -> VerifyResult {
235 | do {
236 | let response = try await apiRequest(
| |- warning: sending 'self.authPayload' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.authPayload' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
237 | endpoint: "balance",
238 | payload: authPayload,
/host/spi-builder-workspace/Sources/KwtSMS/KwtSMS.swift:572:38: warning: sending 'payload' risks causing data races; this is an error in the Swift 6 language mode
570 |
571 | do {
572 | let response = try await apiRequest(endpoint: "send", payload: payload, logFile: logFile, userAgent: userAgent)
| |- warning: sending 'payload' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'payload' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
573 | let result = response["result"] as? String ?? ""
574 |
/host/spi-builder-workspace/Sources/KwtSMS/KwtSMS.swift:349:38: warning: sending 'payload' risks causing data races; this is an error in the Swift 6 language mode
347 | payload["mobile"] = validNumbers.joined(separator: ",")
348 |
349 | let response = try await apiRequest(endpoint: "validate", payload: payload, logFile: logFile, userAgent: userAgent)
| |- warning: sending 'payload' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'payload' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
350 | let result = response["result"] as? String ?? ""
351 |
/host/spi-builder-workspace/Sources/KwtSMS/KwtSMS.swift:374:38: warning: sending 'self.authPayload' risks causing data races; this is an error in the Swift 6 language mode
372 | public func senderIds() async -> SenderIdResult {
373 | do {
374 | let response = try await apiRequest(endpoint: "senderid", payload: authPayload, logFile: logFile, userAgent: userAgent)
| |- warning: sending 'self.authPayload' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.authPayload' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
375 | let result = response["result"] as? String ?? ""
376 |
/host/spi-builder-workspace/Sources/KwtSMS/KwtSMS.swift:402:38: warning: sending 'self.authPayload' risks causing data races; this is an error in the Swift 6 language mode
400 | public func coverage() async -> CoverageResult {
401 | do {
402 | let response = try await apiRequest(endpoint: "coverage", payload: authPayload, logFile: logFile, userAgent: userAgent)
| |- warning: sending 'self.authPayload' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.authPayload' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
403 | let result = response["result"] as? String ?? ""
404 |
/host/spi-builder-workspace/Sources/KwtSMS/KwtSMS.swift:434:38: warning: sending 'payload' risks causing data races; this is an error in the Swift 6 language mode
432 | payload["msgid"] = msgId
433 |
434 | let response = try await apiRequest(endpoint: "status", payload: payload, logFile: logFile, userAgent: userAgent)
| |- warning: sending 'payload' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'payload' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
435 | let result = response["result"] as? String ?? ""
436 |
/host/spi-builder-workspace/Sources/KwtSMS/KwtSMS.swift:476:38: warning: sending 'payload' risks causing data races; this is an error in the Swift 6 language mode
474 | payload["msgid"] = msgId
475 |
476 | let response = try await apiRequest(endpoint: "dlr", payload: payload, logFile: logFile, userAgent: userAgent)
| |- warning: sending 'payload' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'payload' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
477 | let result = response["result"] as? String ?? ""
478 |
[7/10] Compiling KwtSMS PhoneUtils.swift
/host/spi-builder-workspace/Sources/KwtSMS/PhoneUtils.swift:24:12: warning: let 'phoneRules' is not concurrency-safe because non-'Sendable' type '[String : PhoneRule]' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | /// Validation rule for a country's phone numbers.
6 | public struct PhoneRule {
| `- note: consider making struct 'PhoneRule' conform to the 'Sendable' protocol
7 | /// Valid local number lengths (digits after country code).
8 | public let localLengths: [Int]
:
22 | /// mobileStartDigits: valid first character(s) of the local number
23 | /// Countries not listed here pass through with generic E.164 validation (7-15 digits).
24 | public let phoneRules: [String: PhoneRule] = [
| |- warning: let 'phoneRules' is not concurrency-safe because non-'Sendable' type '[String : PhoneRule]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'phoneRules' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | // === GCC ===
26 | "965": PhoneRule(localLengths: [8], mobileStartDigits: ["4", "5", "6", "9"]), // Kuwait
[8/10] Compiling KwtSMS Request.swift
/host/spi-builder-workspace/Sources/KwtSMS/Request.swift:73:53: error: cannot find type 'URLRequest' in scope
71 | /// 2026-11-05 14:22 +03: split out so a unit test can check the User-Agent header; it is set on the URLRequest
72 | /// because Linux URLSession may ignore a User-Agent on the session configuration (#939).
73 | func makeAPIRequest(url: URL, userAgent: String) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
74 | var request = URLRequest(url: url)
75 | request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/KwtSMS/Request.swift:87:40: error: cannot find type 'URLRequest' in scope
85 | /// On Apple platforms, URLSession.data(for:) is available natively.
86 | /// On Linux (FoundationNetworking), we bridge the callback-based API to async.
87 | private func performRequest(_ request: URLRequest) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
88 | #if canImport(FoundationNetworking)
89 | return try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/KwtSMS/Request.swift:74:19: error: cannot find 'URLRequest' in scope
72 | /// because Linux URLSession may ignore a User-Agent on the session configuration (#939).
73 | func makeAPIRequest(url: URL, userAgent: String) -> URLRequest {
74 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
75 | request.httpMethod = "POST"
76 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/KwtSMS/Request.swift:101:24: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
99 | }
100 | #else
101 | let result: (Data, URLResponse) = try await URLSession.shared.data(for: request)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 | return result.0
103 | #endif
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/KwtSMS/Request.swift:101:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
99 | }
100 | #else
101 | let result: (Data, URLResponse) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
102 | return result.0
103 | #endif
[9/10] Compiling KwtSMS ApiErrors.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/10] Emitting module KwtSMS
/host/spi-builder-workspace/Sources/KwtSMS/PhoneUtils.swift:24:12: warning: let 'phoneRules' is not concurrency-safe because non-'Sendable' type '[String : PhoneRule]' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | /// Validation rule for a country's phone numbers.
6 | public struct PhoneRule {
| `- note: consider making struct 'PhoneRule' conform to the 'Sendable' protocol
7 | /// Valid local number lengths (digits after country code).
8 | public let localLengths: [Int]
:
22 | /// mobileStartDigits: valid first character(s) of the local number
23 | /// Countries not listed here pass through with generic E.164 validation (7-15 digits).
24 | public let phoneRules: [String: PhoneRule] = [
| |- warning: let 'phoneRules' is not concurrency-safe because non-'Sendable' type '[String : PhoneRule]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'phoneRules' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | // === GCC ===
26 | "965": PhoneRule(localLengths: [8], mobileStartDigits: ["4", "5", "6", "9"]), // Kuwait
/host/spi-builder-workspace/Sources/KwtSMS/Request.swift:73:53: error: cannot find type 'URLRequest' in scope
71 | /// 2026-11-05 14:22 +03: split out so a unit test can check the User-Agent header; it is set on the URLRequest
72 | /// because Linux URLSession may ignore a User-Agent on the session configuration (#939).
73 | func makeAPIRequest(url: URL, userAgent: String) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
74 | var request = URLRequest(url: url)
75 | request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/KwtSMS/Request.swift:87:40: error: cannot find type 'URLRequest' in scope
85 | /// On Apple platforms, URLSession.data(for:) is available natively.
86 | /// On Linux (FoundationNetworking), we bridge the callback-based API to async.
87 | private func performRequest(_ request: URLRequest) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
88 | #if canImport(FoundationNetworking)
89 | return try await withCheckedThrowingContinuation { continuation in
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/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:c39884094bf9874b7a6bb32559a257cc0b80a9b15eb9e58adaa15f5bda5e4fb5
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/9] Compiling KwtSMS Logger.swift
[3/9] Compiling KwtSMS MessageUtils.swift
[4/9] Compiling KwtSMS PhoneUtils.swift
[5/9] Compiling KwtSMS Request.swift
/host/spi-builder-workspace/Sources/KwtSMS/Request.swift:73:53: error: cannot find type 'URLRequest' in scope
71 | /// 2026-11-05 14:22 +03: split out so a unit test can check the User-Agent header; it is set on the URLRequest
72 | /// because Linux URLSession may ignore a User-Agent on the session configuration (#939).
73 | func makeAPIRequest(url: URL, userAgent: String) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
74 | var request = URLRequest(url: url)
75 | request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/KwtSMS/Request.swift:87:40: error: cannot find type 'URLRequest' in scope
85 | /// On Apple platforms, URLSession.data(for:) is available natively.
86 | /// On Linux (FoundationNetworking), we bridge the callback-based API to async.
87 | private func performRequest(_ request: URLRequest) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
88 | #if canImport(FoundationNetworking)
89 | return try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/KwtSMS/Request.swift:74:19: error: cannot find 'URLRequest' in scope
72 | /// because Linux URLSession may ignore a User-Agent on the session configuration (#939).
73 | func makeAPIRequest(url: URL, userAgent: String) -> URLRequest {
74 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
75 | request.httpMethod = "POST"
76 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/KwtSMS/Request.swift:101:24: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
99 | }
100 | #else
101 | let result: (Data, URLResponse) = try await URLSession.shared.data(for: request)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
102 | return result.0
103 | #endif
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/KwtSMS/Request.swift:101:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
99 | }
100 | #else
101 | let result: (Data, URLResponse) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
102 | return result.0
103 | #endif
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/9] Compiling KwtSMS EnvLoader.swift
[7/9] Compiling KwtSMS KwtSMS.swift
[8/9] Compiling KwtSMS ApiErrors.swift
[9/9] Emitting module KwtSMS
/host/spi-builder-workspace/Sources/KwtSMS/Request.swift:73:53: error: cannot find type 'URLRequest' in scope
71 | /// 2026-11-05 14:22 +03: split out so a unit test can check the User-Agent header; it is set on the URLRequest
72 | /// because Linux URLSession may ignore a User-Agent on the session configuration (#939).
73 | func makeAPIRequest(url: URL, userAgent: String) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
74 | var request = URLRequest(url: url)
75 | request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/KwtSMS/Request.swift:87:40: error: cannot find type 'URLRequest' in scope
85 | /// On Apple platforms, URLSession.data(for:) is available natively.
86 | /// On Linux (FoundationNetworking), we bridge the callback-based API to async.
87 | private func performRequest(_ request: URLRequest) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
88 | #if canImport(FoundationNetworking)
89 | return try await withCheckedThrowingContinuation { continuation in
BUILD FAILURE 6.1 wasm