The Swift Package Index logo.Swift Package Index

Build Information

Failed to build NWaysClient, reference 1.1.0 (4bfc53), with Swift 6.1 for Wasm on 10 Nov 2026 17:45:15 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.1-latest swift build --swift-sdk wasm32-unknown-wasi 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: 1.1.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/n-ways/client-swift
 * tag               1.1.0      -> FETCH_HEAD
HEAD is now at 4bfc532 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 @):
4bfc5328ce6e05066c3b90beaaa52bb8dcd83b6d
SUCCESS checkout https://github.com/n-ways/client-swift.git at 1.1.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/n-ways/client-swift.git
https://github.com/n-ways/client-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
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.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:c39884094bf9874b7a6bb32559a257cc0b80a9b15eb9e58adaa15f5bda5e4fb5
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-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
[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: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)
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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:c39884094bf9874b7a6bb32559a257cc0b80a9b15eb9e58adaa15f5bda5e4fb5
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] 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
[3/3] 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: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.1 wasm