The Swift Package Index logo.Swift Package Index

Build Information

Failed to build NWaysClient, reference main (d0c496), with Swift 6.2 for Wasm on 10 Nov 2026 18:02:17 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/n-ways/client-swift.git
Reference: main
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/n-ways/client-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at d0c4961 N-Ways Maps Platform client 1.1.0 (generated from the OpenAPI files)
Cloned https://github.com/n-ways/client-swift.git
Revision (git rev-parse @):
d0c4961bde57abf1f55de465ce6a905663cde99b
SUCCESS checkout https://github.com/n-ways/client-swift.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/n-ways/client-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:ba6864ed1873dc28d63134b1bd648b09c5ec8270a0ae95720b7f96d84a66a058
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-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/4] Emitting module NWaysClient
/host/spi-builder-workspace/Sources/NWaysClient/NWaysClient.swift:4073:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4071 |     public let baseURL: URL
4072 |     public var headers: [String: String]
4073 |     let session: URLSession
     |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4074 |     let decoder = JSONDecoder()
4075 |     let encoder = JSONEncoder()
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/NWaysClient/NWaysClient.swift:4077:124: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4075 |     let encoder = JSONEncoder()
4076 |
4077 |     public init(apiKey: String, baseURL: URL = URL(string: "https://nways.ng")!, headers: [String: String] = [:], session: URLSession = .shared) {
     |                                                                                                                            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4078 |         self.apiKey = apiKey
4079 |         self.baseURL = baseURL
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/NWaysClient/NWaysClient.swift:4077:138: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
4075 |     let encoder = JSONEncoder()
4076 |
4077 |     public init(apiKey: String, baseURL: URL = URL(string: "https://nways.ng")!, headers: [String: String] = [:], session: URLSession = .shared) {
     |                                                                                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
4078 |         self.apiKey = apiKey
4079 |         self.baseURL = baseURL
/host/spi-builder-workspace/Sources/NWaysClient/NWaysClient.swift:4077:138: error: value of type '_' expected to be instance of class or class-constrained type
4075 |     let encoder = JSONEncoder()
4076 |
4077 |     public init(apiKey: String, baseURL: URL = URL(string: "https://nways.ng")!, headers: [String: String] = [:], session: URLSession = .shared) {
     |                                                                                                                                          `- error: value of type '_' expected to be instance of class or class-constrained type
4078 |         self.apiKey = apiKey
4079 |         self.baseURL = baseURL
[4/4] Compiling NWaysClient NWaysClient.swift
/host/spi-builder-workspace/Sources/NWaysClient/NWaysClient.swift:4073:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4071 |     public let baseURL: URL
4072 |     public var headers: [String: String]
4073 |     let session: URLSession
     |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4074 |     let decoder = JSONDecoder()
4075 |     let encoder = JSONEncoder()
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/NWaysClient/NWaysClient.swift:4077:124: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4075 |     let encoder = JSONEncoder()
4076 |
4077 |     public init(apiKey: String, baseURL: URL = URL(string: "https://nways.ng")!, headers: [String: String] = [:], session: URLSession = .shared) {
     |                                                                                                                            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4078 |         self.apiKey = apiKey
4079 |         self.baseURL = baseURL
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/NWaysClient/NWaysClient.swift:4077:138: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
4075 |     let encoder = JSONEncoder()
4076 |
4077 |     public init(apiKey: String, baseURL: URL = URL(string: "https://nways.ng")!, headers: [String: String] = [:], session: URLSession = .shared) {
     |                                                                                                                                          `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
4078 |         self.apiKey = apiKey
4079 |         self.baseURL = baseURL
/host/spi-builder-workspace/Sources/NWaysClient/NWaysClient.swift:4077:138: error: value of type '_' expected to be instance of class or class-constrained type
4075 |     let encoder = JSONEncoder()
4076 |
4077 |     public init(apiKey: String, baseURL: URL = URL(string: "https://nways.ng")!, headers: [String: String] = [:], session: URLSession = .shared) {
     |                                                                                                                                          `- error: value of type '_' expected to be instance of class or class-constrained type
4078 |         self.apiKey = apiKey
4079 |         self.baseURL = baseURL
/host/spi-builder-workspace/Sources/NWaysClient/NWaysClient.swift:4096:19: error: cannot find 'URLRequest' in scope
4094 |         let items = query.compactMap { k, v in v.flatMap { $0.isEmpty ? nil : URLQueryItem(name: k, value: $0) } }.sorted { $0.name < $1.name }
4095 |         if !items.isEmpty { comps.queryItems = items }
4096 |         var req = URLRequest(url: comps.url!)
     |                   `- error: cannot find 'URLRequest' in scope
4097 |         req.httpMethod = method
4098 |         req.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/NWaysClient/NWaysClient.swift:4106:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
4104 |             req.setValue("application/json", forHTTPHeaderField: "Content-Type")
4105 |         }
4106 |         let (data, response) = try await session.data(for: req)
     |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
4107 |         let http = response as? HTTPURLResponse
4108 |         let status = http?.statusCode ?? 0
/host/spi-builder-workspace/Sources/NWaysClient/NWaysClient.swift:4111:37: error: type of expression is ambiguous without a type annotation
4109 |         guard (200..<300).contains(status) else {
4110 |             let obj = (try? JSONSerialization.jsonObject(with: data)) as? [String: Any]
4111 |             let env = obj?["error"] as? [String: Any]
     |                                     `- error: type of expression is ambiguous without a type annotation
4112 |             let reason = env?["reason"] as? String ?? obj?["code"] as? String
4113 |             let message = env?["message"] as? String ?? obj?["error"] as? String ?? "HTTP \(status)"
/host/spi-builder-workspace/Sources/NWaysClient/NWaysClient.swift:4112:52: error: type of expression is ambiguous without a type annotation
4110 |             let obj = (try? JSONSerialization.jsonObject(with: data)) as? [String: Any]
4111 |             let env = obj?["error"] as? [String: Any]
4112 |             let reason = env?["reason"] as? String ?? obj?["code"] as? String
     |                                                    `- error: type of expression is ambiguous without a type annotation
4113 |             let message = env?["message"] as? String ?? obj?["error"] as? String ?? "HTTP \(status)"
4114 |             let retry = (http?.value(forHTTPHeaderField: "Retry-After")).flatMap(Double.init)
/host/spi-builder-workspace/Sources/NWaysClient/NWaysClient.swift:4113:54: error: type of expression is ambiguous without a type annotation
4111 |             let env = obj?["error"] as? [String: Any]
4112 |             let reason = env?["reason"] as? String ?? obj?["code"] as? String
4113 |             let message = env?["message"] as? String ?? obj?["error"] as? String ?? "HTTP \(status)"
     |                                                      `- error: type of expression is ambiguous without a type annotation
4114 |             let retry = (http?.value(forHTTPHeaderField: "Retry-After")).flatMap(Double.init)
4115 |             throw NWaysError(status: status, reason: reason, message: message, retryAfter: retry, body: data)
BUILD FAILURE 6.2 wasm