Build Information
Successful build of KwtSMS, reference 0.4.0 (34bd5c), with Swift 6.1 for Android on 6 Nov 2026 23:47:20 UTC.
Swift 6 data race errors: 1
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344846-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:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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>&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: android
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-54344846-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:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:135e1254b7d09cd140ac29e6c8ef7c4590eae3130738913868216d654d407276
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/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
[4/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
[5/10] Compiling KwtSMS ApiErrors.swift
[6/10] Compiling KwtSMS MessageUtils.swift
[7/10] Compiling KwtSMS Request.swift
[8/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 |
[9/10] Compiling KwtSMS EnvLoader.swift
[10/10] Compiling KwtSMS Logger.swift
Build complete! (5.92s)
Build complete.
{
"default_localization" : "en",
"dependencies" : [
],
"manifest_display_name" : "KwtSMS",
"name" : "KwtSMS",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "tvos",
"version" : "15.0"
},
{
"name" : "watchos",
"version" : "8.0"
}
],
"products" : [
{
"name" : "KwtSMS",
"targets" : [
"KwtSMS"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "KwtSMSTests",
"module_type" : "SwiftTarget",
"name" : "KwtSMSTests",
"path" : "Tests/KwtSMSTests",
"sources" : [
"ApiErrorTests.swift",
"IntegrationTests.swift",
"MessageTests.swift",
"PhoneTests.swift",
"TestNumber.swift",
"UserAgentTests.swift"
],
"target_dependencies" : [
"KwtSMS"
],
"type" : "test"
},
{
"c99name" : "KwtSMS",
"module_type" : "SwiftTarget",
"name" : "KwtSMS",
"path" : "Sources/KwtSMS",
"product_memberships" : [
"KwtSMS"
],
"sources" : [
"ApiErrors.swift",
"EnvLoader.swift",
"KwtSMS.swift",
"Logger.swift",
"MessageUtils.swift",
"PhoneUtils.swift",
"Request.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
android-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:135e1254b7d09cd140ac29e6c8ef7c4590eae3130738913868216d654d407276
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.1-latest
Done.