The Swift Package Index logo.Swift Package Index

Build Information

Failed to build KwtSMS, reference 0.4.0 (34bd5c), with Swift 6.3 for Wasm on 6 Nov 2026 23:47:16 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344846-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.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1

Build 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.3
Building package at path:  $PWD
https://github.com/kwtsms/kwtsms-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344846-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.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:3045625b85c7b3a40ef7c4e596cfe3f6119a575d9bb01341bbf4a893a5aa001c
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/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
[4/10] Compiling KwtSMS ApiErrors.swift
[5/10] Compiling KwtSMS MessageUtils.swift
[6/10] Compiling KwtSMS Logger.swift
[7/10] Compiling KwtSMS PhoneUtils.swift
[8/10] Compiling KwtSMS EnvLoader.swift
[9/10] Compiling KwtSMS KwtSMS.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/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.3 wasm