The Swift Package Index logo.Swift Package Index

Build Information

Failed to build VIZ, reference master (f892ef), with Swift 6.1 for Android on 31 Jan 2026 22:54:46 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
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 f892ef4 Update platform targets to support Swift Concurrency
Cloned https://github.com/viz-blockchain/viz-swift-lib.git
Revision (git rev-parse @):
f892ef4d3173d448e573a8903ca21624bf90569c
SUCCESS checkout https://github.com/viz-blockchain/viz-swift-lib.git at master
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/viz-blockchain/viz-swift-lib.git
https://github.com/viz-blockchain/viz-swift-lib.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "ordereddictionary",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "4.0.0",
            "upper_bound" : "5.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/lukaskubanek/OrderedDictionary.git"
    },
    {
      "identity" : "secp256k1",
      "requirement" : {
        "branch" : [
          "master"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/greymass/secp256k1.git"
    }
  ],
  "manifest_display_name" : "VIZ",
  "name" : "VIZ",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "VIZ",
      "targets" : [
        "VIZ"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "VIZ",
      "module_type" : "SwiftTarget",
      "name" : "VIZ",
      "path" : "Sources/VIZ",
      "product_dependencies" : [
        "OrderedDictionary",
        "secp256k1gm"
      ],
      "product_memberships" : [
        "VIZ"
      ],
      "sources" : [
        "API.swift",
        "Asset.swift",
        "Authority.swift",
        "Block.swift",
        "ChainId.swift",
        "Client.swift",
        "Extensions/AnyEncodable.swift",
        "Extensions/Data+Base58Encoding.swift",
        "Extensions/Data+RIPEMD160.swift",
        "Extensions/Data+Random.swift",
        "Extensions/Data+SHA2.swift",
        "Extensions/Pointers+Convenience.swift",
        "Hex.swift",
        "Misc.swift",
        "Operation.swift",
        "PrivateKey.swift",
        "PublicKey.swift",
        "Secp256k1.swift",
        "Signature.swift",
        "Transaction.swift",
        "VIZEncoder.swift",
        "VIZURL.swift"
      ],
      "target_dependencies" : [
        "Crypto"
      ],
      "type" : "library"
    },
    {
      "c99name" : "UnitTests",
      "module_type" : "SwiftTarget",
      "name" : "UnitTests",
      "path" : "Tests/UnitTests",
      "sources" : [
        "API.swift",
        "Asset.swift",
        "Base58.swift",
        "Block.swift",
        "ChainIdTests.swift",
        "Client.swift",
        "Common.swift",
        "Operation.swift",
        "PrivateKey.swift",
        "PublicKey.swift",
        "Secp256k1.swift",
        "Sha2.swift",
        "Signature.swift",
        "Transaction.swift",
        "VIZEncoder.swift",
        "VIZURL.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "VIZ"
      ],
      "type" : "test"
    },
    {
      "c99name" : "IntegrationTests",
      "module_type" : "SwiftTarget",
      "name" : "IntegrationTests",
      "path" : "Tests/IntegrationTests",
      "sources" : [
        "API.swift",
        "Performance.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "VIZ"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Crypto",
      "module_type" : "ClangTarget",
      "name" : "Crypto",
      "path" : "Sources/Crypto",
      "product_memberships" : [
        "VIZ"
      ],
      "sources" : [
        "base58.c",
        "memzero.c",
        "ripemd160.c",
        "sha2.c"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:08fa5f1bd27c53c71ebe7c2842e29d52715d90da2c5b8f52513c9039c232613d
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/greymass/secp256k1.git
[1/7003] Fetching secp256k1
Fetched https://github.com/greymass/secp256k1.git from cache (0.98s)
Fetching https://github.com/lukaskubanek/OrderedDictionary.git
[1/1700] Fetching ordereddictionary
Fetched https://github.com/lukaskubanek/OrderedDictionary.git from cache (2.18s)
Computing version for https://github.com/lukaskubanek/OrderedDictionary.git
Computed https://github.com/lukaskubanek/OrderedDictionary.git at 4.0.2 (3.01s)
Creating working copy for https://github.com/lukaskubanek/OrderedDictionary.git
Working copy of https://github.com/lukaskubanek/OrderedDictionary.git resolved at 4.0.2
Creating working copy for https://github.com/greymass/secp256k1.git
Working copy of https://github.com/greymass/secp256k1.git resolved at master (f5babfb)
Building for debugging...
[0/8] Write sources
[2/8] Compiling Crypto base58.c
[3/8] Compiling Crypto ripemd160.c
[4/8] Compiling Crypto sha2.c
[5/8] Compiling Crypto memzero.c
[6/8] Write swift-version-24593BA9C3E375BF.txt
[7/15] Compiling secp256k1.c
[9/15] Compiling OrderedDictionary OrderedDictionary+Description.swift
[10/15] Compiling OrderedDictionary OrderedDictionary.swift
[11/15] Compiling OrderedDictionary OrderedDictionarySlice.swift
[12/15] Compiling OrderedDictionary OrderedDictionary+Codable.swift
[13/15] Compiling OrderedDictionary Dictionary+OrderedDictionary.swift
[14/15] Emitting module OrderedDictionary
[15/15] Compiling OrderedDictionary OrderedDictionary+Deprecated.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
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
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/PrivateKey.swift:11:25: warning: static property 'determenisticSignatures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 |     /// For testing, wether to use a counter or random value for ndata when signing.
11 |     internal static var determenisticSignatures: Bool = false
   |                         |- warning: static property 'determenisticSignatures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                         |- note: convert 'determenisticSignatures' to a 'let' constant to make 'Sendable' shared state immutable
   |                         |- note: add '@MainActor' to make static property 'determenisticSignatures' part of global actor 'MainActor'
   |                         `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 |     /// Create a new private key instance from a byte buffer.
/host/spi-builder-workspace/Sources/VIZ/Secp256k1.swift:40:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Secp256k1' may have shared mutable state; this is an error in the Swift 6 language mode
  7 |
  8 | /// Class representing a libsecp256k1 context.
  9 | internal class Secp256k1 {
    |                `- note: class 'Secp256k1' does not conform to the 'Sendable' protocol
 10 |     struct Flags: OptionSet {
 11 |         let rawValue: Int32
    :
 38 |     /// Shared context is thread-safe and should be used in most cases since creating a new
 39 |     /// context is 100 times more expensive than a signing or verifying operation.
 40 |     static let shared: Secp256k1 = {
    |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Secp256k1' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 41 |         let ctx = Secp256k1(flags: [.sign, .verify])
 42 |         try? ctx.randomize(using: Data.random(32))
[18/39] Compiling VIZ API.swift
[19/39] Compiling VIZ Asset.swift
[20/39] Compiling VIZ Authority.swift
[21/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
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
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
[22/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
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
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
[23/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
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
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
[24/39] Compiling VIZ AnyEncodable.swift
[25/39] Compiling VIZ Data+Base58Encoding.swift
[26/39] Compiling VIZ Data+RIPEMD160.swift
[27/39] Compiling VIZ PrivateKey.swift
/host/spi-builder-workspace/Sources/VIZ/PrivateKey.swift:11:25: warning: static property 'determenisticSignatures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 |     /// For testing, wether to use a counter or random value for ndata when signing.
11 |     internal static var determenisticSignatures: Bool = false
   |                         |- warning: static property 'determenisticSignatures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                         |- note: convert 'determenisticSignatures' to a 'let' constant to make 'Sendable' shared state immutable
   |                         |- note: add '@MainActor' to make static property 'determenisticSignatures' part of global actor 'MainActor'
   |                         `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 |     /// Create a new private key instance from a byte buffer.
/host/spi-builder-workspace/Sources/VIZ/Secp256k1.swift:40:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Secp256k1' may have shared mutable state; this is an error in the Swift 6 language mode
  7 |
  8 | /// Class representing a libsecp256k1 context.
  9 | internal class Secp256k1 {
    |                `- note: class 'Secp256k1' does not conform to the 'Sendable' protocol
 10 |     struct Flags: OptionSet {
 11 |         let rawValue: Int32
    :
 38 |     /// Shared context is thread-safe and should be used in most cases since creating a new
 39 |     /// context is 100 times more expensive than a signing or verifying operation.
 40 |     static let shared: Secp256k1 = {
    |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Secp256k1' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 41 |         let ctx = Secp256k1(flags: [.sign, .verify])
 42 |         try? ctx.randomize(using: Data.random(32))
[28/39] Compiling VIZ PublicKey.swift
/host/spi-builder-workspace/Sources/VIZ/PrivateKey.swift:11:25: warning: static property 'determenisticSignatures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 |     /// For testing, wether to use a counter or random value for ndata when signing.
11 |     internal static var determenisticSignatures: Bool = false
   |                         |- warning: static property 'determenisticSignatures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                         |- note: convert 'determenisticSignatures' to a 'let' constant to make 'Sendable' shared state immutable
   |                         |- note: add '@MainActor' to make static property 'determenisticSignatures' part of global actor 'MainActor'
   |                         `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 |     /// Create a new private key instance from a byte buffer.
/host/spi-builder-workspace/Sources/VIZ/Secp256k1.swift:40:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Secp256k1' may have shared mutable state; this is an error in the Swift 6 language mode
  7 |
  8 | /// Class representing a libsecp256k1 context.
  9 | internal class Secp256k1 {
    |                `- note: class 'Secp256k1' does not conform to the 'Sendable' protocol
 10 |     struct Flags: OptionSet {
 11 |         let rawValue: Int32
    :
 38 |     /// Shared context is thread-safe and should be used in most cases since creating a new
 39 |     /// context is 100 times more expensive than a signing or verifying operation.
 40 |     static let shared: Secp256k1 = {
    |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Secp256k1' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 41 |         let ctx = Secp256k1(flags: [.sign, .verify])
 42 |         try? ctx.randomize(using: Data.random(32))
[29/39] Compiling VIZ Secp256k1.swift
/host/spi-builder-workspace/Sources/VIZ/PrivateKey.swift:11:25: warning: static property 'determenisticSignatures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |
10 |     /// For testing, wether to use a counter or random value for ndata when signing.
11 |     internal static var determenisticSignatures: Bool = false
   |                         |- warning: static property 'determenisticSignatures' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                         |- note: convert 'determenisticSignatures' to a 'let' constant to make 'Sendable' shared state immutable
   |                         |- note: add '@MainActor' to make static property 'determenisticSignatures' part of global actor 'MainActor'
   |                         `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |
13 |     /// Create a new private key instance from a byte buffer.
/host/spi-builder-workspace/Sources/VIZ/Secp256k1.swift:40:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Secp256k1' may have shared mutable state; this is an error in the Swift 6 language mode
  7 |
  8 | /// Class representing a libsecp256k1 context.
  9 | internal class Secp256k1 {
    |                `- note: class 'Secp256k1' does not conform to the 'Sendable' protocol
 10 |     struct Flags: OptionSet {
 11 |         let rawValue: Int32
    :
 38 |     /// Shared context is thread-safe and should be used in most cases since creating a new
 39 |     /// context is 100 times more expensive than a signing or verifying operation.
 40 |     static let shared: Secp256k1 = {
    |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Secp256k1' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 41 |         let ctx = Secp256k1(flags: [.sign, .verify])
 42 |         try? ctx.randomize(using: Data.random(32))
[30/39] Compiling VIZ Signature.swift
[31/39] Compiling VIZ Transaction.swift
[32/39] Compiling VIZ VIZEncoder.swift
[33/39] Compiling VIZ VIZURL.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
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:08fa5f1bd27c53c71ebe7c2842e29d52715d90da2c5b8f52513c9039c232613d
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/8] Compiling OrderedDictionary OrderedDictionary+Codable.swift
[3/8] Compiling OrderedDictionary OrderedDictionary+Deprecated.swift
[4/8] Compiling OrderedDictionary Dictionary+OrderedDictionary.swift
[5/8] Emitting module OrderedDictionary
[6/8] Compiling OrderedDictionary OrderedDictionarySlice.swift
[7/8] Compiling OrderedDictionary OrderedDictionary+Description.swift
[8/8] Compiling OrderedDictionary OrderedDictionary.swift
[10/30] 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
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
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
[11/30] 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
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
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
[12/30] 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
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
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
[13/32] Compiling VIZ Data+Random.swift
[14/32] Compiling VIZ Data+SHA2.swift
[15/32] Compiling VIZ Pointers+Convenience.swift
[16/32] Compiling VIZ AnyEncodable.swift
[17/32] Compiling VIZ Data+Base58Encoding.swift
[18/32] Compiling VIZ Data+RIPEMD160.swift
[19/32] Compiling VIZ Signature.swift
[20/32] Compiling VIZ Transaction.swift
[21/32] Compiling VIZ PrivateKey.swift
[22/32] Compiling VIZ PublicKey.swift
[23/32] Compiling VIZ Secp256k1.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[24/32] Compiling VIZ API.swift
[25/32] Compiling VIZ Asset.swift
[26/32] Compiling VIZ Authority.swift
[27/32] 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
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
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
[28/32] Compiling VIZ VIZEncoder.swift
[29/32] Compiling VIZ VIZURL.swift
[30/32] Compiling VIZ Hex.swift
[31/32] Compiling VIZ Misc.swift
[32/32] Compiling VIZ Operation.swift
BUILD FAILURE 6.1 android