The Swift Package Index logo.Swift Package Index

Build Information

Failed to build NWaysClient, reference main (d0c496), with Swift 6.3 for Wasm on 10 Nov 2026 18:00:07 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886770-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: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/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.3
Building package at path:  $PWD
https://github.com/n-ways/client-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-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: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
34b5abc84eb4: Pulling fs layer
d3804c542c62: Pulling fs layer
916e3a71bd1f: Pulling fs layer
cb259a83ac3d: Pulling fs layer
e5ad342fd9c7: Pulling fs layer
c1d599776af8: Pulling fs layer
67058f643edd: Pulling fs layer
25d2d94dca3d: Pulling fs layer
e644104cf40f: Pulling fs layer
cac1b8f41416: Pulling fs layer
8f8d4ce2b7fd: Pulling fs layer
916e3a71bd1f: Already exists
e5ad342fd9c7: Already exists
25d2d94dca3d: Already exists
44136fa355b3: Already exists
d3804c542c62: Already exists
cb259a83ac3d: Already exists
c1d599776af8: Already exists
67058f643edd: Already exists
e644104cf40f: Already exists
cac1b8f41416: Already exists
8f8d4ce2b7fd: Download complete
8f8d4ce2b7fd: Pull complete
b9f9144ee82c: Download complete
34b5abc84eb4: Download complete
34b5abc84eb4: Pull complete
Digest: sha256:3045625b85c7b3a40ef7c4e596cfe3f6119a575d9bb01341bbf4a893a5aa001c
Status: Downloaded newer image 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/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: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
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: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
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: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
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: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
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: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
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: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
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.3 wasm