The Swift Package Index logo.Swift Package Index

Build Information

Failed to build VIZ, reference 0.1.0 (8d2ca3), with Swift 6.3 for Wasm on 17 Apr 2026 23:58:20 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/viz-blockchain/viz-swift-lib.git
Reference: 0.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/viz-blockchain/viz-swift-lib
 * tag               0.1.0      -> FETCH_HEAD
HEAD is now at 8d2ca38 Improve README
Cloned https://github.com/viz-blockchain/viz-swift-lib.git
Revision (git rev-parse @):
8d2ca38e5e58e579a292eb1e2cac032984a58dba
SUCCESS checkout https://github.com/viz-blockchain/viz-swift-lib.git at 0.1.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/viz-blockchain/viz-swift-lib.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/greymass/secp256k1.git
[1/7003] Fetching secp256k1
Fetched https://github.com/greymass/secp256k1.git from cache (0.67s)
Fetching https://github.com/lukaskubanek/OrderedDictionary.git
[1/1700] Fetching ordereddictionary
Fetched https://github.com/lukaskubanek/OrderedDictionary.git from cache (0.94s)
Computing version for https://github.com/lukaskubanek/OrderedDictionary.git
Computed https://github.com/lukaskubanek/OrderedDictionary.git at 4.0.2 (1.41s)
Creating working copy for https://github.com/greymass/secp256k1.git
Working copy of https://github.com/greymass/secp256k1.git resolved at master (f5babfb)
Creating working copy for https://github.com/lukaskubanek/OrderedDictionary.git
Working copy of https://github.com/lukaskubanek/OrderedDictionary.git resolved at 4.0.2
Building for debugging...
[0/8] Write sources
[2/8] Compiling Crypto memzero.c
[3/8] Compiling Crypto base58.c
[4/8] Write swift-version-24593BA9C3E375BF.txt
[5/8] Compiling Crypto sha2.c
[6/15] Compiling Crypto ripemd160.c
[7/15] Compiling secp256k1.c
[9/15] Compiling OrderedDictionary OrderedDictionarySlice.swift
[10/15] Compiling OrderedDictionary OrderedDictionary+Deprecated.swift
[11/15] Emitting module OrderedDictionary
[12/15] Compiling OrderedDictionary Dictionary+OrderedDictionary.swift
[13/15] Compiling OrderedDictionary OrderedDictionary+Description.swift
[14/15] Compiling OrderedDictionary OrderedDictionary.swift
[15/15] Compiling OrderedDictionary OrderedDictionary+Codable.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[17/37] Emitting module VIZ
/host/spi-builder-workspace/Sources/VIZ/Client.swift:165:28: error: cannot find type 'URLRequest' in scope
163 | /// URLSession adapter, for testability.
164 | public protocol SessionAdapter: Sendable {
165 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
    |                            `- error: cannot find type 'URLRequest' in scope
166 | }
167 |
/host/spi-builder-workspace/Sources/VIZ/Client.swift:165:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
163 | /// URLSession adapter, for testability.
164 | public protocol SessionAdapter: Sendable {
165 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
    |                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
166 | }
167 |
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/VIZ/Client.swift:169:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
167 |
168 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
169 | extension URLSession: SessionAdapter {}
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
170 |
171 |
/host/spi-builder-workspace/Sources/VIZ/Client.swift:211:68: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
209 |     /// - Parameter session: The session to use when sending requests to the server.
210 |     @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
211 |     public init(address: URL, session: SessionAdapter = URLSession.shared, fixedId: Int? = nil) {
    |                                                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
212 |         self.address = address
213 |         self.session = session as SessionAdapter
/host/spi-builder-workspace/Sources/VIZ/Client.swift:226:84: error: cannot find type 'URLRequest' in scope
224 |
225 |     /// Return a URLRequest for a JSON-RPC 2.0 request payload.
226 |     internal func urlRequest<T: Request>(for payload: RequestPayload<T>) throws -> URLRequest {
    |                                                                                    `- error: cannot find type 'URLRequest' in scope
227 |         let encoder = Client.JSONEncoder()
228 |         var urlRequest = URLRequest(url: self.address)
/host/spi-builder-workspace/Sources/VIZ/Client.swift:238:102: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
236 |
237 |     /// Resolve a URLSession dataTask to a `Response`.
238 |     internal func resolveResponse<T: Request>(for payload: RequestPayload<T>, data: Data?, response: URLResponse?) throws -> T.Response? {
    |                                                                                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
239 |         guard let response = response else {
240 |             throw Error.networkError(message: "No response from server", error: nil)
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
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[18/39] Compiling VIZ Block.swift
/host/spi-builder-workspace/Sources/VIZ/Client.swift:165:28: error: cannot find type 'URLRequest' in scope
163 | /// URLSession adapter, for testability.
164 | public protocol SessionAdapter: Sendable {
165 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
    |                            `- error: cannot find type 'URLRequest' in scope
166 | }
167 |
/host/spi-builder-workspace/Sources/VIZ/Client.swift:165:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
163 | /// URLSession adapter, for testability.
164 | public protocol SessionAdapter: Sendable {
165 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
    |                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
166 | }
167 |
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/VIZ/Client.swift:169:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
167 |
168 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
169 | extension URLSession: SessionAdapter {}
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
170 |
171 |
/host/spi-builder-workspace/Sources/VIZ/Client.swift:211:68: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
209 |     /// - Parameter session: The session to use when sending requests to the server.
210 |     @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
211 |     public init(address: URL, session: SessionAdapter = URLSession.shared, fixedId: Int? = nil) {
    |                                                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
212 |         self.address = address
213 |         self.session = session as SessionAdapter
/host/spi-builder-workspace/Sources/VIZ/Client.swift:226:84: error: cannot find type 'URLRequest' in scope
224 |
225 |     /// Return a URLRequest for a JSON-RPC 2.0 request payload.
226 |     internal func urlRequest<T: Request>(for payload: RequestPayload<T>) throws -> URLRequest {
    |                                                                                    `- error: cannot find type 'URLRequest' in scope
227 |         let encoder = Client.JSONEncoder()
228 |         var urlRequest = URLRequest(url: self.address)
/host/spi-builder-workspace/Sources/VIZ/Client.swift:238:102: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
236 |
237 |     /// Resolve a URLSession dataTask to a `Response`.
238 |     internal func resolveResponse<T: Request>(for payload: RequestPayload<T>, data: Data?, response: URLResponse?) throws -> T.Response? {
    |                                                                                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
239 |         guard let response = response else {
240 |             throw Error.networkError(message: "No response from server", error: nil)
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/VIZ/Client.swift:228:26: error: cannot find 'URLRequest' in scope
226 |     internal func urlRequest<T: Request>(for payload: RequestPayload<T>) throws -> URLRequest {
227 |         let encoder = Client.JSONEncoder()
228 |         var urlRequest = URLRequest(url: self.address)
    |                          `- error: cannot find 'URLRequest' in scope
229 |         urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
230 |         urlRequest.setValue("swift-viz/1.0", forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/VIZ/Client.swift:242:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
240 |             throw Error.networkError(message: "No response from server", error: nil)
241 |         }
242 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
243 |             throw Error.networkError(message: "Not a HTTP response", error: nil)
244 |         }
/host/spi-builder-workspace/Sources/VIZ/Client.swift:242:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
240 |             throw Error.networkError(message: "No response from server", error: nil)
241 |         }
242 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
243 |             throw Error.networkError(message: "Not a HTTP response", error: nil)
244 |         }
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/VIZ/Client.swift:245:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
243 |             throw Error.networkError(message: "Not a HTTP response", error: nil)
244 |         }
245 |         if httpResponse.statusCode != 200 {
    |                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
246 |             throw Error.networkError(message: "Server responded with HTTP \(httpResponse.statusCode)", error: nil)
247 |         }
/host/spi-builder-workspace/Sources/VIZ/Client.swift:246:90: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
244 |         }
245 |         if httpResponse.statusCode != 200 {
246 |             throw Error.networkError(message: "Server responded with HTTP \(httpResponse.statusCode)", error: nil)
    |                                                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
247 |         }
248 |         guard let data = data else {
/host/spi-builder-workspace/Sources/VIZ/Client.swift:283:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
281 |
282 |         let data: Data
283 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
284 |
285 |         do {
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
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[19/39] Compiling VIZ ChainId.swift
/host/spi-builder-workspace/Sources/VIZ/Client.swift:165:28: error: cannot find type 'URLRequest' in scope
163 | /// URLSession adapter, for testability.
164 | public protocol SessionAdapter: Sendable {
165 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
    |                            `- error: cannot find type 'URLRequest' in scope
166 | }
167 |
/host/spi-builder-workspace/Sources/VIZ/Client.swift:165:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
163 | /// URLSession adapter, for testability.
164 | public protocol SessionAdapter: Sendable {
165 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
    |                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
166 | }
167 |
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/VIZ/Client.swift:169:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
167 |
168 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
169 | extension URLSession: SessionAdapter {}
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
170 |
171 |
/host/spi-builder-workspace/Sources/VIZ/Client.swift:211:68: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
209 |     /// - Parameter session: The session to use when sending requests to the server.
210 |     @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
211 |     public init(address: URL, session: SessionAdapter = URLSession.shared, fixedId: Int? = nil) {
    |                                                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
212 |         self.address = address
213 |         self.session = session as SessionAdapter
/host/spi-builder-workspace/Sources/VIZ/Client.swift:226:84: error: cannot find type 'URLRequest' in scope
224 |
225 |     /// Return a URLRequest for a JSON-RPC 2.0 request payload.
226 |     internal func urlRequest<T: Request>(for payload: RequestPayload<T>) throws -> URLRequest {
    |                                                                                    `- error: cannot find type 'URLRequest' in scope
227 |         let encoder = Client.JSONEncoder()
228 |         var urlRequest = URLRequest(url: self.address)
/host/spi-builder-workspace/Sources/VIZ/Client.swift:238:102: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
236 |
237 |     /// Resolve a URLSession dataTask to a `Response`.
238 |     internal func resolveResponse<T: Request>(for payload: RequestPayload<T>, data: Data?, response: URLResponse?) throws -> T.Response? {
    |                                                                                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
239 |         guard let response = response else {
240 |             throw Error.networkError(message: "No response from server", error: nil)
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/VIZ/Client.swift:228:26: error: cannot find 'URLRequest' in scope
226 |     internal func urlRequest<T: Request>(for payload: RequestPayload<T>) throws -> URLRequest {
227 |         let encoder = Client.JSONEncoder()
228 |         var urlRequest = URLRequest(url: self.address)
    |                          `- error: cannot find 'URLRequest' in scope
229 |         urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
230 |         urlRequest.setValue("swift-viz/1.0", forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/VIZ/Client.swift:242:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
240 |             throw Error.networkError(message: "No response from server", error: nil)
241 |         }
242 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
243 |             throw Error.networkError(message: "Not a HTTP response", error: nil)
244 |         }
/host/spi-builder-workspace/Sources/VIZ/Client.swift:242:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
240 |             throw Error.networkError(message: "No response from server", error: nil)
241 |         }
242 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
243 |             throw Error.networkError(message: "Not a HTTP response", error: nil)
244 |         }
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/VIZ/Client.swift:245:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
243 |             throw Error.networkError(message: "Not a HTTP response", error: nil)
244 |         }
245 |         if httpResponse.statusCode != 200 {
    |                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
246 |             throw Error.networkError(message: "Server responded with HTTP \(httpResponse.statusCode)", error: nil)
247 |         }
/host/spi-builder-workspace/Sources/VIZ/Client.swift:246:90: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
244 |         }
245 |         if httpResponse.statusCode != 200 {
246 |             throw Error.networkError(message: "Server responded with HTTP \(httpResponse.statusCode)", error: nil)
    |                                                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
247 |         }
248 |         guard let data = data else {
/host/spi-builder-workspace/Sources/VIZ/Client.swift:283:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
281 |
282 |         let data: Data
283 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
284 |
285 |         do {
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
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[20/39] Compiling VIZ Client.swift
/host/spi-builder-workspace/Sources/VIZ/Client.swift:165:28: error: cannot find type 'URLRequest' in scope
163 | /// URLSession adapter, for testability.
164 | public protocol SessionAdapter: Sendable {
165 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
    |                            `- error: cannot find type 'URLRequest' in scope
166 | }
167 |
/host/spi-builder-workspace/Sources/VIZ/Client.swift:165:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
163 | /// URLSession adapter, for testability.
164 | public protocol SessionAdapter: Sendable {
165 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
    |                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
166 | }
167 |
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/VIZ/Client.swift:169:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
167 |
168 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
169 | extension URLSession: SessionAdapter {}
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
170 |
171 |
/host/spi-builder-workspace/Sources/VIZ/Client.swift:211:68: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
209 |     /// - Parameter session: The session to use when sending requests to the server.
210 |     @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
211 |     public init(address: URL, session: SessionAdapter = URLSession.shared, fixedId: Int? = nil) {
    |                                                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
212 |         self.address = address
213 |         self.session = session as SessionAdapter
/host/spi-builder-workspace/Sources/VIZ/Client.swift:226:84: error: cannot find type 'URLRequest' in scope
224 |
225 |     /// Return a URLRequest for a JSON-RPC 2.0 request payload.
226 |     internal func urlRequest<T: Request>(for payload: RequestPayload<T>) throws -> URLRequest {
    |                                                                                    `- error: cannot find type 'URLRequest' in scope
227 |         let encoder = Client.JSONEncoder()
228 |         var urlRequest = URLRequest(url: self.address)
/host/spi-builder-workspace/Sources/VIZ/Client.swift:238:102: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
236 |
237 |     /// Resolve a URLSession dataTask to a `Response`.
238 |     internal func resolveResponse<T: Request>(for payload: RequestPayload<T>, data: Data?, response: URLResponse?) throws -> T.Response? {
    |                                                                                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
239 |         guard let response = response else {
240 |             throw Error.networkError(message: "No response from server", error: nil)
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/VIZ/Client.swift:228:26: error: cannot find 'URLRequest' in scope
226 |     internal func urlRequest<T: Request>(for payload: RequestPayload<T>) throws -> URLRequest {
227 |         let encoder = Client.JSONEncoder()
228 |         var urlRequest = URLRequest(url: self.address)
    |                          `- error: cannot find 'URLRequest' in scope
229 |         urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
230 |         urlRequest.setValue("swift-viz/1.0", forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/VIZ/Client.swift:242:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
240 |             throw Error.networkError(message: "No response from server", error: nil)
241 |         }
242 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
243 |             throw Error.networkError(message: "Not a HTTP response", error: nil)
244 |         }
/host/spi-builder-workspace/Sources/VIZ/Client.swift:242:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
240 |             throw Error.networkError(message: "No response from server", error: nil)
241 |         }
242 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
243 |             throw Error.networkError(message: "Not a HTTP response", error: nil)
244 |         }
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/VIZ/Client.swift:245:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
243 |             throw Error.networkError(message: "Not a HTTP response", error: nil)
244 |         }
245 |         if httpResponse.statusCode != 200 {
    |                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
246 |             throw Error.networkError(message: "Server responded with HTTP \(httpResponse.statusCode)", error: nil)
247 |         }
/host/spi-builder-workspace/Sources/VIZ/Client.swift:246:90: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
244 |         }
245 |         if httpResponse.statusCode != 200 {
246 |             throw Error.networkError(message: "Server responded with HTTP \(httpResponse.statusCode)", error: nil)
    |                                                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
247 |         }
248 |         guard let data = data else {
/host/spi-builder-workspace/Sources/VIZ/Client.swift:283:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
281 |
282 |         let data: Data
283 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
284 |
285 |         do {
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
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[21/39] Compiling VIZ AnyEncodable.swift
[22/39] Compiling VIZ Data+Base58Encoding.swift
[23/39] Compiling VIZ Data+RIPEMD160.swift
[24/39] Compiling VIZ PrivateKey.swift
[25/39] Compiling VIZ PublicKey.swift
[26/39] Compiling VIZ Secp256k1.swift
[27/39] Compiling VIZ API.swift
[28/39] Compiling VIZ Asset.swift
[29/39] Compiling VIZ Authority.swift
[30/39] Compiling VIZ VIZEncoder.swift
[31/39] Compiling VIZ VIZURL.swift
[32/39] Compiling VIZ Signature.swift
[33/39] Compiling VIZ Transaction.swift
[34/39] Compiling VIZ Data+Random.swift
[35/39] Compiling VIZ Data+SHA2.swift
[36/39] Compiling VIZ Pointers+Convenience.swift
[37/39] Compiling VIZ Hex.swift
[38/39] Compiling VIZ Misc.swift
[39/39] Compiling VIZ Operation.swift
BUILD FAILURE 6.3 wasm