The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SmsGora, reference v1.0.1 (d31e0c), with Swift 6.3 for Wasm on 13 Nov 2026 12:32:16 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.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/TekservixHQ/smsgora-swift.git
Reference: v1.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/TekservixHQ/smsgora-swift
 * tag               v1.0.1     -> FETCH_HEAD
HEAD is now at d31e0c3 Mark JSONValue as Sendable
Cloned https://github.com/TekservixHQ/smsgora-swift.git
Revision (git rev-parse @):
d31e0c3384785e263f3a7c6e6601694abfd1ba63
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/TekservixHQ/smsgora-swift.git at v1.0.1
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/TekservixHQ/smsgora-swift.git
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.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:404d9f92dde919fe554c9d5fda9b03708bc2858ae850b6a992d65e289f55b404
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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/6] Compiling SmsGora HMAC.swift
[4/6] Compiling SmsGora JSONValue.swift
[5/6] Emitting module SmsGora
/host/spi-builder-workspace/Sources/SmsGora/SmsGoraClient.swift:8:38: error: cannot find type 'URLRequest' in scope
  6 | /// Sends a request and returns the raw body and response. Swap it out in tests
  7 | /// or to add your own logging, retries or proxy.
  8 | public typealias SmsGoraTransport = (URLRequest) async throws -> (Data, HTTPURLResponse)
    |                                      `- error: cannot find type 'URLRequest' in scope
  9 |
 10 | /// Thrown when the API answers with an error.
/host/spi-builder-workspace/Sources/SmsGora/SmsGoraClient.swift:68:55: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |
 67 |     /// Default transport built on URLSession (works on Apple platforms and Linux).
 68 |     public static func urlSessionTransport(_ session: URLSession) -> SmsGoraTransport {
    |                                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         return { request in
 70 |             try await withCheckedThrowingContinuation { continuation in
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SmsGora/SmsGoraClient.swift:248:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
246 |     }
247 |
248 |     private func header(_ response: HTTPURLResponse, _ name: String) -> String? {
    |                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
249 |         for (key, value) in response.allHeaderFields {
250 |             if let k = key as? String, k.caseInsensitiveCompare(name) == .orderedSame { return "\(value)" }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
[6/6] Compiling SmsGora SmsGoraClient.swift
/host/spi-builder-workspace/Sources/SmsGora/SmsGoraClient.swift:8:38: error: cannot find type 'URLRequest' in scope
  6 | /// Sends a request and returns the raw body and response. Swap it out in tests
  7 | /// or to add your own logging, retries or proxy.
  8 | public typealias SmsGoraTransport = (URLRequest) async throws -> (Data, HTTPURLResponse)
    |                                      `- error: cannot find type 'URLRequest' in scope
  9 |
 10 | /// Thrown when the API answers with an error.
/host/spi-builder-workspace/Sources/SmsGora/SmsGoraClient.swift:68:55: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |
 67 |     /// Default transport built on URLSession (works on Apple platforms and Linux).
 68 |     public static func urlSessionTransport(_ session: URLSession) -> SmsGoraTransport {
    |                                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |         return { request in
 70 |             try await withCheckedThrowingContinuation { continuation in
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SmsGora/SmsGoraClient.swift:248:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
246 |     }
247 |
248 |     private func header(_ response: HTTPURLResponse, _ name: String) -> String? {
    |                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
249 |         for (key, value) in response.allHeaderFields {
250 |             if let k = key as? String, k.caseInsensitiveCompare(name) == .orderedSame { return "\(value)" }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SmsGora/SmsGoraClient.swift:64:74: error: cannot infer contextual base in reference to member 'shared'
 62 |         self.baseURL = url
 63 |         self.timeout = timeout
 64 |         self.transport = transport ?? SmsGoraClient.urlSessionTransport(.shared)
    |                                                                          `- error: cannot infer contextual base in reference to member 'shared'
 65 |     }
 66 |
/host/spi-builder-workspace/Sources/SmsGora/SmsGoraClient.swift:70:23: error: generic parameter 'T' could not be inferred
 68 |     public static func urlSessionTransport(_ session: URLSession) -> SmsGoraTransport {
 69 |         return { request in
 70 |             try await withCheckedThrowingContinuation { continuation in
    |                       `- error: generic parameter 'T' could not be inferred
 71 |                 let task = session.dataTask(with: request) { data, response, error in
 72 |                     if let error = error {
_Concurrency.withCheckedThrowingContinuation:3:24: note: in call to function 'withCheckedThrowingContinuation(isolation:function:_:)'
1 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
2 | @backDeployed(before: macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0)
3 | @inlinable public func withCheckedThrowingContinuation<T>(isolation: isolated (any Actor)? = #isolation, function: String = #function, _ body: (CheckedContinuation<T, any Error>) -> Void) async throws -> sending T
  |                        `- note: in call to function 'withCheckedThrowingContinuation(isolation:function:_:)'
/host/spi-builder-workspace/Sources/SmsGora/SmsGoraClient.swift:71:36: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 69 |         return { request in
 70 |             try await withCheckedThrowingContinuation { continuation in
 71 |                 let task = session.dataTask(with: request) { data, response, error in
    |                                    `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 72 |                     if let error = error {
 73 |                         continuation.resume(throwing: error)
/host/spi-builder-workspace/Sources/SmsGora/SmsGoraClient.swift:93:19: error: cannot find 'URLRequest' in scope
 91 |             throw SmsGoraError(status: 0, message: "Invalid URL: \(baseURL + path)", errors: nil, body: nil, retryAfter: nil)
 92 |         }
 93 |         var req = URLRequest(url: url, timeoutInterval: timeout)
    |                   `- error: cannot find 'URLRequest' in scope
 94 |         req.httpMethod = method.uppercased()
 95 |         req.setValue(apiKey, forHTTPHeaderField: "x-api-key")
/host/spi-builder-workspace/Sources/SmsGora/SmsGoraClient.swift:249:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
247 |
248 |     private func header(_ response: HTTPURLResponse, _ name: String) -> String? {
249 |         for (key, value) in response.allHeaderFields {
    |                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
250 |             if let k = key as? String, k.caseInsensitiveCompare(name) == .orderedSame { return "\(value)" }
251 |         }
BUILD FAILURE 6.3 wasm