The Swift Package Index logo.Swift Package Index

Build Information

Failed to build VIZ, reference master (daa745), with Swift 6.2 for Android on 13 Oct 2026 09:48:07 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344843-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:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/viz-blockchain/viz-swift-lib.git
Reference: master
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
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at daa7454 Merge pull request #4 from VIZ-Blockchain/feat/prediction-market-ops
Cloned https://github.com/viz-blockchain/viz-swift-lib.git
Revision (git rev-parse @):
daa7454aa9d12a39b12453b5198d61b3b6d577ca
SUCCESS checkout https://github.com/viz-blockchain/viz-swift-lib.git at master
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
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-54344843-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:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:a839c9ce201f1dacc8eb056626ec7ab0a1c6d53d7b77c83feda395f4507c51be
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.2-latest
Fetching https://github.com/greymass/secp256k1.git
[1/7003] Fetching secp256k1
Fetched https://github.com/greymass/secp256k1.git from cache (0.85s)
Fetching https://github.com/lukaskubanek/OrderedDictionary.git
[1/1700] Fetching ordereddictionary
Fetched https://github.com/lukaskubanek/OrderedDictionary.git from cache (0.62s)
Computing version for https://github.com/lukaskubanek/OrderedDictionary.git
Computed https://github.com/lukaskubanek/OrderedDictionary.git at 4.0.2 (0.80s)
Creating working copy for https://github.com/greymass/secp256k1.git
Working copy of https://github.com/greymass/secp256k1.git resolved at f5babfbb95166ac3bca64b09adefc0dcda0b5c52
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] Compiling Crypto ripemd160.c
[5/8] Compiling Crypto sha2.c
[6/8] Write swift-version--11D90AFD9DD3AB2.txt
[7/15] Compiling secp256k1.c
[9/15] Compiling OrderedDictionary OrderedDictionarySlice.swift
[10/15] Emitting module OrderedDictionary
[11/15] Compiling OrderedDictionary OrderedDictionary.swift
[12/15] Compiling OrderedDictionary OrderedDictionary+Codable.swift
[13/15] Compiling OrderedDictionary Dictionary+OrderedDictionary.swift
[14/15] Compiling OrderedDictionary OrderedDictionary+Deprecated.swift
[15/15] Compiling OrderedDictionary OrderedDictionary+Description.swift
[17/37] Compiling VIZ Signature.swift
[18/37] Compiling VIZ Transaction.swift
[19/37] Compiling VIZ Block.swift
/host/spi-builder-workspace/Sources/VIZ/Client.swift:174:28: error: cannot find type 'URLRequest' in scope
172 | /// URLSession adapter, for testability.
173 | public protocol SessionAdapter: Sendable {
174 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
    |                            `- error: cannot find type 'URLRequest' in scope
175 | }
176 |
/host/spi-builder-workspace/Sources/VIZ/Client.swift:174:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
172 | /// URLSession adapter, for testability.
173 | public protocol SessionAdapter: Sendable {
174 |     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.
175 | }
176 |
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:178:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
176 |
177 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
178 | extension URLSession: SessionAdapter {}
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
179 |
180 |
/host/spi-builder-workspace/Sources/VIZ/Client.swift:220:68: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
218 |     /// - Parameter session: The session to use when sending requests to the server.
219 |     @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
220 |     public init(address: URL, session: SessionAdapter = URLSession.shared, fixedId: Int? = nil) {
    |                                                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
221 |         self.address = address
222 |         self.session = session as SessionAdapter
/host/spi-builder-workspace/Sources/VIZ/Client.swift:235:84: error: cannot find type 'URLRequest' in scope
233 |
234 |     /// Return a URLRequest for a JSON-RPC 2.0 request payload.
235 |     internal func urlRequest<T: Request>(for payload: RequestPayload<T>) throws -> URLRequest {
    |                                                                                    `- error: cannot find type 'URLRequest' in scope
236 |         let encoder = Client.JSONEncoder()
237 |         var urlRequest = URLRequest(url: self.address)
/host/spi-builder-workspace/Sources/VIZ/Client.swift:246:102: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
244 |
245 |     /// Resolve a URLSession dataTask to a `Response`.
246 |     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.
247 |         guard let response = response else {
248 |             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:237:26: error: cannot find 'URLRequest' in scope
235 |     internal func urlRequest<T: Request>(for payload: RequestPayload<T>) throws -> URLRequest {
236 |         let encoder = Client.JSONEncoder()
237 |         var urlRequest = URLRequest(url: self.address)
    |                          `- error: cannot find 'URLRequest' in scope
238 |         urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
239 |         urlRequest.setValue("swift-viz/1.0", forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/VIZ/Client.swift:250:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
248 |             throw Error.networkError(message: "No response from server", error: nil)
249 |         }
250 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
251 |             throw Error.networkError(message: "Not a HTTP response", error: nil)
252 |         }
/host/spi-builder-workspace/Sources/VIZ/Client.swift:250:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
248 |             throw Error.networkError(message: "No response from server", error: nil)
249 |         }
250 |         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.
251 |             throw Error.networkError(message: "Not a HTTP response", error: nil)
252 |         }
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:253:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
251 |             throw Error.networkError(message: "Not a HTTP response", error: nil)
252 |         }
253 |         if httpResponse.statusCode != 200 {
    |                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
254 |             throw Error.networkError(message: "Server responded with HTTP \(httpResponse.statusCode)", error: nil)
255 |         }
/host/spi-builder-workspace/Sources/VIZ/Client.swift:254:90: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
252 |         }
253 |         if httpResponse.statusCode != 200 {
254 |             throw Error.networkError(message: "Server responded with HTTP \(httpResponse.statusCode)", error: nil)
    |                                                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
255 |         }
256 |         guard let data = data else {
/host/spi-builder-workspace/Sources/VIZ/Client.swift:291:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
289 |
290 |         let data: Data
291 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
292 |
293 |         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/37] Compiling VIZ ChainId.swift
/host/spi-builder-workspace/Sources/VIZ/Client.swift:174:28: error: cannot find type 'URLRequest' in scope
172 | /// URLSession adapter, for testability.
173 | public protocol SessionAdapter: Sendable {
174 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
    |                            `- error: cannot find type 'URLRequest' in scope
175 | }
176 |
/host/spi-builder-workspace/Sources/VIZ/Client.swift:174:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
172 | /// URLSession adapter, for testability.
173 | public protocol SessionAdapter: Sendable {
174 |     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.
175 | }
176 |
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:178:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
176 |
177 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
178 | extension URLSession: SessionAdapter {}
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
179 |
180 |
/host/spi-builder-workspace/Sources/VIZ/Client.swift:220:68: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
218 |     /// - Parameter session: The session to use when sending requests to the server.
219 |     @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
220 |     public init(address: URL, session: SessionAdapter = URLSession.shared, fixedId: Int? = nil) {
    |                                                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
221 |         self.address = address
222 |         self.session = session as SessionAdapter
/host/spi-builder-workspace/Sources/VIZ/Client.swift:235:84: error: cannot find type 'URLRequest' in scope
233 |
234 |     /// Return a URLRequest for a JSON-RPC 2.0 request payload.
235 |     internal func urlRequest<T: Request>(for payload: RequestPayload<T>) throws -> URLRequest {
    |                                                                                    `- error: cannot find type 'URLRequest' in scope
236 |         let encoder = Client.JSONEncoder()
237 |         var urlRequest = URLRequest(url: self.address)
/host/spi-builder-workspace/Sources/VIZ/Client.swift:246:102: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
244 |
245 |     /// Resolve a URLSession dataTask to a `Response`.
246 |     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.
247 |         guard let response = response else {
248 |             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:237:26: error: cannot find 'URLRequest' in scope
235 |     internal func urlRequest<T: Request>(for payload: RequestPayload<T>) throws -> URLRequest {
236 |         let encoder = Client.JSONEncoder()
237 |         var urlRequest = URLRequest(url: self.address)
    |                          `- error: cannot find 'URLRequest' in scope
238 |         urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
239 |         urlRequest.setValue("swift-viz/1.0", forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/VIZ/Client.swift:250:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
248 |             throw Error.networkError(message: "No response from server", error: nil)
249 |         }
250 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
251 |             throw Error.networkError(message: "Not a HTTP response", error: nil)
252 |         }
/host/spi-builder-workspace/Sources/VIZ/Client.swift:250:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
248 |             throw Error.networkError(message: "No response from server", error: nil)
249 |         }
250 |         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.
251 |             throw Error.networkError(message: "Not a HTTP response", error: nil)
252 |         }
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:253:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
251 |             throw Error.networkError(message: "Not a HTTP response", error: nil)
252 |         }
253 |         if httpResponse.statusCode != 200 {
    |                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
254 |             throw Error.networkError(message: "Server responded with HTTP \(httpResponse.statusCode)", error: nil)
255 |         }
/host/spi-builder-workspace/Sources/VIZ/Client.swift:254:90: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
252 |         }
253 |         if httpResponse.statusCode != 200 {
254 |             throw Error.networkError(message: "Server responded with HTTP \(httpResponse.statusCode)", error: nil)
    |                                                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
255 |         }
256 |         guard let data = data else {
/host/spi-builder-workspace/Sources/VIZ/Client.swift:291:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
289 |
290 |         let data: Data
291 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
292 |
293 |         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/37] Compiling VIZ Client.swift
/host/spi-builder-workspace/Sources/VIZ/Client.swift:174:28: error: cannot find type 'URLRequest' in scope
172 | /// URLSession adapter, for testability.
173 | public protocol SessionAdapter: Sendable {
174 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
    |                            `- error: cannot find type 'URLRequest' in scope
175 | }
176 |
/host/spi-builder-workspace/Sources/VIZ/Client.swift:174:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
172 | /// URLSession adapter, for testability.
173 | public protocol SessionAdapter: Sendable {
174 |     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.
175 | }
176 |
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:178:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
176 |
177 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
178 | extension URLSession: SessionAdapter {}
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
179 |
180 |
/host/spi-builder-workspace/Sources/VIZ/Client.swift:220:68: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
218 |     /// - Parameter session: The session to use when sending requests to the server.
219 |     @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
220 |     public init(address: URL, session: SessionAdapter = URLSession.shared, fixedId: Int? = nil) {
    |                                                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
221 |         self.address = address
222 |         self.session = session as SessionAdapter
/host/spi-builder-workspace/Sources/VIZ/Client.swift:235:84: error: cannot find type 'URLRequest' in scope
233 |
234 |     /// Return a URLRequest for a JSON-RPC 2.0 request payload.
235 |     internal func urlRequest<T: Request>(for payload: RequestPayload<T>) throws -> URLRequest {
    |                                                                                    `- error: cannot find type 'URLRequest' in scope
236 |         let encoder = Client.JSONEncoder()
237 |         var urlRequest = URLRequest(url: self.address)
/host/spi-builder-workspace/Sources/VIZ/Client.swift:246:102: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
244 |
245 |     /// Resolve a URLSession dataTask to a `Response`.
246 |     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.
247 |         guard let response = response else {
248 |             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:237:26: error: cannot find 'URLRequest' in scope
235 |     internal func urlRequest<T: Request>(for payload: RequestPayload<T>) throws -> URLRequest {
236 |         let encoder = Client.JSONEncoder()
237 |         var urlRequest = URLRequest(url: self.address)
    |                          `- error: cannot find 'URLRequest' in scope
238 |         urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
239 |         urlRequest.setValue("swift-viz/1.0", forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/VIZ/Client.swift:250:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
248 |             throw Error.networkError(message: "No response from server", error: nil)
249 |         }
250 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
251 |             throw Error.networkError(message: "Not a HTTP response", error: nil)
252 |         }
/host/spi-builder-workspace/Sources/VIZ/Client.swift:250:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
248 |             throw Error.networkError(message: "No response from server", error: nil)
249 |         }
250 |         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.
251 |             throw Error.networkError(message: "Not a HTTP response", error: nil)
252 |         }
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:253:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
251 |             throw Error.networkError(message: "Not a HTTP response", error: nil)
252 |         }
253 |         if httpResponse.statusCode != 200 {
    |                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
254 |             throw Error.networkError(message: "Server responded with HTTP \(httpResponse.statusCode)", error: nil)
255 |         }
/host/spi-builder-workspace/Sources/VIZ/Client.swift:254:90: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
252 |         }
253 |         if httpResponse.statusCode != 200 {
254 |             throw Error.networkError(message: "Server responded with HTTP \(httpResponse.statusCode)", error: nil)
    |                                                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
255 |         }
256 |         guard let data = data else {
/host/spi-builder-workspace/Sources/VIZ/Client.swift:291:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
289 |
290 |         let data: Data
291 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
292 |
293 |         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>
[22/39] Compiling VIZ PrivateKey.swift
[23/39] Compiling VIZ PublicKey.swift
[24/39] Compiling VIZ Secp256k1.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[25/39] Emitting module VIZ
/host/spi-builder-workspace/Sources/VIZ/Client.swift:174:28: error: cannot find type 'URLRequest' in scope
172 | /// URLSession adapter, for testability.
173 | public protocol SessionAdapter: Sendable {
174 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
    |                            `- error: cannot find type 'URLRequest' in scope
175 | }
176 |
/host/spi-builder-workspace/Sources/VIZ/Client.swift:174:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
172 | /// URLSession adapter, for testability.
173 | public protocol SessionAdapter: Sendable {
174 |     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.
175 | }
176 |
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:178:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
176 |
177 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
178 | extension URLSession: SessionAdapter {}
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
179 |
180 |
/host/spi-builder-workspace/Sources/VIZ/Client.swift:220:68: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
218 |     /// - Parameter session: The session to use when sending requests to the server.
219 |     @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
220 |     public init(address: URL, session: SessionAdapter = URLSession.shared, fixedId: Int? = nil) {
    |                                                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
221 |         self.address = address
222 |         self.session = session as SessionAdapter
/host/spi-builder-workspace/Sources/VIZ/Client.swift:235:84: error: cannot find type 'URLRequest' in scope
233 |
234 |     /// Return a URLRequest for a JSON-RPC 2.0 request payload.
235 |     internal func urlRequest<T: Request>(for payload: RequestPayload<T>) throws -> URLRequest {
    |                                                                                    `- error: cannot find type 'URLRequest' in scope
236 |         let encoder = Client.JSONEncoder()
237 |         var urlRequest = URLRequest(url: self.address)
/host/spi-builder-workspace/Sources/VIZ/Client.swift:246:102: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
244 |
245 |     /// Resolve a URLSession dataTask to a `Response`.
246 |     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.
247 |         guard let response = response else {
248 |             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>
[26/39] Compiling VIZ VIZEncoder.swift
[27/39] Compiling VIZ VIZURL.swift
[28/39] Compiling VIZ AnyEncodable.swift
[29/39] Compiling VIZ Data+Base58Encoding.swift
[30/39] Compiling VIZ Data+RIPEMD160.swift
[31/39] Compiling VIZ Data+Random.swift
[32/39] Compiling VIZ Data+SHA2.swift
[33/39] Compiling VIZ Pointers+Convenience.swift
[34/39] Compiling VIZ API.swift
[35/39] Compiling VIZ Asset.swift
[36/39] Compiling VIZ Authority.swift
[37/39] Compiling VIZ Hex.swift
[38/39] Compiling VIZ Misc.swift
[39/39] Compiling VIZ Operation.swift
BUILD FAILURE 6.2 android