The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Changelly, reference 1.1.2 (cf12ab), with Swift 6.1 for Wasm on 27 May 2025 11:33:17 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/coinpaprika/changelly-api-swift-client.git
Reference: 1.1.2
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/coinpaprika/changelly-api-swift-client
 * tag               1.1.2      -> FETCH_HEAD
HEAD is now at cf12ab4 [SPM] Add Coinpaprika prefix to Networking and NetworkingMocks modules
Cloned https://github.com/coinpaprika/changelly-api-swift-client.git
Revision (git rev-parse @):
cf12ab46bdc74579cd25838bbd5764f102a2ae05
SUCCESS checkout https://github.com/coinpaprika/changelly-api-swift-client.git at 1.1.2
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/coinpaprika/changelly-api-swift-client.git
https://github.com/coinpaprika/changelly-api-swift-client.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "coinpaprika-api-swift-client",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.3.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/coinpaprika/coinpaprika-api-swift-client.git"
    }
  ],
  "manifest_display_name" : "Changelly",
  "name" : "Changelly",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "macos",
      "version" : "10.12"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    },
    {
      "name" : "watchos",
      "version" : "3.0"
    }
  ],
  "products" : [
    {
      "name" : "Changelly",
      "targets" : [
        "Changelly"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ChangellyTests",
      "module_type" : "SwiftTarget",
      "name" : "ChangellyTests",
      "path" : "Example/Tests",
      "sources" : [
        "RequestsTest.swift"
      ],
      "target_dependencies" : [
        "Changelly"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Changelly",
      "module_type" : "SwiftTarget",
      "name" : "Changelly",
      "path" : "ChangellyAPI/Classes",
      "product_dependencies" : [
        "CoinpaprikaNetworking"
      ],
      "product_memberships" : [
        "Changelly"
      ],
      "sources" : [
        "API.swift",
        "Models/Currency.swift",
        "Models/Transaction.swift",
        "Models/TransactionLog.swift",
        "Request/Credentials.swift",
        "Request/JsonRpcRequest.swift",
        "Request/String+HMAC.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/coinpaprika/coinpaprika-api-swift-client.git
[1/2929] Fetching coinpaprika-api-swift-client
Fetched https://github.com/coinpaprika/coinpaprika-api-swift-client.git from cache (0.39s)
Computing version for https://github.com/coinpaprika/coinpaprika-api-swift-client.git
Computed https://github.com/coinpaprika/coinpaprika-api-swift-client.git at 2.4.0 (1.17s)
Creating working copy for https://github.com/coinpaprika/coinpaprika-api-swift-client.git
Working copy of https://github.com/coinpaprika/coinpaprika-api-swift-client.git resolved at 2.4.0
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/9] Emitting module CoinpaprikaNetworking
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/NetworkSession.swift:11:33: error: cannot find type 'URLRequest' in scope
 9 |
10 | public protocol NetworkSession {
11 |     func loadData(with request: URLRequest,
   |                                 `- error: cannot find type 'URLRequest' in scope
12 |                   completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void)
13 | }
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/NetworkSession.swift:12:56: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | public protocol NetworkSession {
11 |     func loadData(with request: URLRequest,
12 |                   completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void)
   |                                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
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/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/NetworkSession.swift:15:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
13 | }
14 |
15 | extension URLSession: NetworkSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
16 |     public func loadData(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) {
17 |         let task = dataTask(with: request) { (data, response, error) in
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:13:33: error: cannot find type 'DispatchQueue' in scope
 11 | public protocol Requestable {
 12 |     associatedtype Model: Decodable
 13 |     func perform(responseQueue: DispatchQueue?, cachePolicy: URLRequest.CachePolicy?, session: NetworkSession, _ callback: @escaping (Result<Model, Error>) -> Void)
    |                                 `- error: cannot find type 'DispatchQueue' in scope
 14 | }
 15 |
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:13:62: error: cannot find type 'URLRequest' in scope
 11 | public protocol Requestable {
 12 |     associatedtype Model: Decodable
 13 |     func perform(responseQueue: DispatchQueue?, cachePolicy: URLRequest.CachePolicy?, session: NetworkSession, _ callback: @escaping (Result<Model, Error>) -> Void)
    |                                                              `- error: cannot find type 'URLRequest' in scope
 14 | }
 15 |
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:51:37: error: cannot find type 'URLRequest' in scope
 49 |         case bearer(token: String)
 50 |         case custom(headers: [String: String])
 51 |         case dynamic(signer: (inout URLRequest) -> Void)
    |                                     `- error: cannot find type 'URLRequest' in scope
 52 |     }
 53 |
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:56:49: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |     private let authorisation: AuthorisationMethod
 55 |
 56 |     public typealias ErrorParser = (_ response: HTTPURLResponse, _ data: Data) -> Error?
    |                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |     private let errorParser: ErrorParser
 58 |
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/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:83:40: error: cannot find type 'DispatchQueue' in scope
 81 |     ///   - cachePolicy: cache policy that should be used in this request
 82 |     ///   - callback: Completion handler triggered on request success & failure
 83 |     public func perform(responseQueue: DispatchQueue? = nil, cachePolicy: URLRequest.CachePolicy? = nil, session: NetworkSession = URLSession.shared, _ callback: @escaping (Result<Model, Error>) -> Void) {
    |                                        `- error: cannot find type 'DispatchQueue' in scope
 84 |         let onQueue = { (_ block: @escaping () -> Void) -> Void in
 85 |             (responseQueue ?? DispatchQueue.main).async(execute: block)
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:83:75: error: cannot find type 'URLRequest' in scope
 81 |     ///   - cachePolicy: cache policy that should be used in this request
 82 |     ///   - callback: Completion handler triggered on request success & failure
 83 |     public func perform(responseQueue: DispatchQueue? = nil, cachePolicy: URLRequest.CachePolicy? = nil, session: NetworkSession = URLSession.shared, _ callback: @escaping (Result<Model, Error>) -> Void) {
    |                                                                           `- error: cannot find type 'URLRequest' in scope
 84 |         let onQueue = { (_ block: @escaping () -> Void) -> Void in
 85 |             (responseQueue ?? DispatchQueue.main).async(execute: block)
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:83:143: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 81 |     ///   - cachePolicy: cache policy that should be used in this request
 82 |     ///   - callback: Completion handler triggered on request success & failure
 83 |     public func perform(responseQueue: DispatchQueue? = nil, cachePolicy: URLRequest.CachePolicy? = nil, session: NetworkSession = URLSession.shared, _ callback: @escaping (Result<Model, Error>) -> Void) {
    |                                                                                                                                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 84 |         let onQueue = { (_ block: @escaping () -> Void) -> Void in
 85 |             (responseQueue ?? DispatchQueue.main).async(execute: block)
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:138:85: error: cannot find type 'URLRequest' in scope
136 |     }
137 |
138 |     private func buildRequest(cachePolicy: URLRequest.CachePolicy? = nil) throws -> URLRequest {
    |                                                                                     `- error: cannot find type 'URLRequest' in scope
139 |         var request = URLRequest(url: url)
140 |         request.httpMethod = method.rawValue.uppercased()
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:138:44: error: cannot find type 'URLRequest' in scope
136 |     }
137 |
138 |     private func buildRequest(cachePolicy: URLRequest.CachePolicy? = nil) throws -> URLRequest {
    |                                            `- error: cannot find type 'URLRequest' in scope
139 |         var request = URLRequest(url: url)
140 |         request.httpMethod = method.rawValue.uppercased()
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:204:59: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
202 |     }
203 |
204 |     private func findFailureReason(data: Data?, response: URLResponse?) -> Error {
    |                                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
205 |         guard let response = response as? HTTPURLResponse else {
206 |             return ResponseError.emptyResponse(url: 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
[5/9] Compiling CoinpaprikaNetworking Result.swift
[6/9] Compiling CoinpaprikaNetworking NetworkSession.swift
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/NetworkSession.swift:11:33: error: cannot find type 'URLRequest' in scope
 9 |
10 | public protocol NetworkSession {
11 |     func loadData(with request: URLRequest,
   |                                 `- error: cannot find type 'URLRequest' in scope
12 |                   completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void)
13 | }
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/NetworkSession.swift:12:56: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | public protocol NetworkSession {
11 |     func loadData(with request: URLRequest,
12 |                   completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void)
   |                                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
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/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/NetworkSession.swift:15:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
13 | }
14 |
15 | extension URLSession: NetworkSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
16 |     public func loadData(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) {
17 |         let task = dataTask(with: request) { (data, response, error) in
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/NetworkSession.swift:16:40: error: cannot find type 'URLRequest' in scope
14 |
15 | extension URLSession: NetworkSession {
16 |     public func loadData(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) {
   |                                        `- error: cannot find type 'URLRequest' in scope
17 |         let task = dataTask(with: request) { (data, response, error) in
18 |             completionHandler(data, response, error)
[7/9] Compiling CoinpaprikaNetworking Request.swift
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:13:33: error: cannot find type 'DispatchQueue' in scope
 11 | public protocol Requestable {
 12 |     associatedtype Model: Decodable
 13 |     func perform(responseQueue: DispatchQueue?, cachePolicy: URLRequest.CachePolicy?, session: NetworkSession, _ callback: @escaping (Result<Model, Error>) -> Void)
    |                                 `- error: cannot find type 'DispatchQueue' in scope
 14 | }
 15 |
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:13:62: error: cannot find type 'URLRequest' in scope
 11 | public protocol Requestable {
 12 |     associatedtype Model: Decodable
 13 |     func perform(responseQueue: DispatchQueue?, cachePolicy: URLRequest.CachePolicy?, session: NetworkSession, _ callback: @escaping (Result<Model, Error>) -> Void)
    |                                                              `- error: cannot find type 'URLRequest' in scope
 14 | }
 15 |
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:51:37: error: cannot find type 'URLRequest' in scope
 49 |         case bearer(token: String)
 50 |         case custom(headers: [String: String])
 51 |         case dynamic(signer: (inout URLRequest) -> Void)
    |                                     `- error: cannot find type 'URLRequest' in scope
 52 |     }
 53 |
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:56:49: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |     private let authorisation: AuthorisationMethod
 55 |
 56 |     public typealias ErrorParser = (_ response: HTTPURLResponse, _ data: Data) -> Error?
    |                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |     private let errorParser: ErrorParser
 58 |
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/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:83:40: error: cannot find type 'DispatchQueue' in scope
 81 |     ///   - cachePolicy: cache policy that should be used in this request
 82 |     ///   - callback: Completion handler triggered on request success & failure
 83 |     public func perform(responseQueue: DispatchQueue? = nil, cachePolicy: URLRequest.CachePolicy? = nil, session: NetworkSession = URLSession.shared, _ callback: @escaping (Result<Model, Error>) -> Void) {
    |                                        `- error: cannot find type 'DispatchQueue' in scope
 84 |         let onQueue = { (_ block: @escaping () -> Void) -> Void in
 85 |             (responseQueue ?? DispatchQueue.main).async(execute: block)
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:83:75: error: cannot find type 'URLRequest' in scope
 81 |     ///   - cachePolicy: cache policy that should be used in this request
 82 |     ///   - callback: Completion handler triggered on request success & failure
 83 |     public func perform(responseQueue: DispatchQueue? = nil, cachePolicy: URLRequest.CachePolicy? = nil, session: NetworkSession = URLSession.shared, _ callback: @escaping (Result<Model, Error>) -> Void) {
    |                                                                           `- error: cannot find type 'URLRequest' in scope
 84 |         let onQueue = { (_ block: @escaping () -> Void) -> Void in
 85 |             (responseQueue ?? DispatchQueue.main).async(execute: block)
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:83:143: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 81 |     ///   - cachePolicy: cache policy that should be used in this request
 82 |     ///   - callback: Completion handler triggered on request success & failure
 83 |     public func perform(responseQueue: DispatchQueue? = nil, cachePolicy: URLRequest.CachePolicy? = nil, session: NetworkSession = URLSession.shared, _ callback: @escaping (Result<Model, Error>) -> Void) {
    |                                                                                                                                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 84 |         let onQueue = { (_ block: @escaping () -> Void) -> Void in
 85 |             (responseQueue ?? DispatchQueue.main).async(execute: block)
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:138:85: error: cannot find type 'URLRequest' in scope
136 |     }
137 |
138 |     private func buildRequest(cachePolicy: URLRequest.CachePolicy? = nil) throws -> URLRequest {
    |                                                                                     `- error: cannot find type 'URLRequest' in scope
139 |         var request = URLRequest(url: url)
140 |         request.httpMethod = method.rawValue.uppercased()
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:138:44: error: cannot find type 'URLRequest' in scope
136 |     }
137 |
138 |     private func buildRequest(cachePolicy: URLRequest.CachePolicy? = nil) throws -> URLRequest {
    |                                            `- error: cannot find type 'URLRequest' in scope
139 |         var request = URLRequest(url: url)
140 |         request.httpMethod = method.rawValue.uppercased()
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:204:59: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
202 |     }
203 |
204 |     private func findFailureReason(data: Data?, response: URLResponse?) -> Error {
    |                                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
205 |         guard let response = response as? HTTPURLResponse else {
206 |             return ResponseError.emptyResponse(url: 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/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:85:31: error: cannot find 'DispatchQueue' in scope
 83 |     public func perform(responseQueue: DispatchQueue? = nil, cachePolicy: URLRequest.CachePolicy? = nil, session: NetworkSession = URLSession.shared, _ callback: @escaping (Result<Model, Error>) -> Void) {
 84 |         let onQueue = { (_ block: @escaping () -> Void) -> Void in
 85 |             (responseQueue ?? DispatchQueue.main).async(execute: block)
    |                               `- error: cannot find 'DispatchQueue' in scope
 86 |         }
 87 |
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:88:22: error: cannot find type 'URLRequest' in scope
 86 |         }
 87 |
 88 |         let request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 89 |
 90 |         do {
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/NetworkSession.swift:11:33: error: cannot find type 'URLRequest' in scope
 9 |
10 | public protocol NetworkSession {
11 |     func loadData(with request: URLRequest,
   |                                 `- error: cannot find type 'URLRequest' in scope
12 |                   completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void)
13 | }
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:139:23: error: cannot find 'URLRequest' in scope
137 |
138 |     private func buildRequest(cachePolicy: URLRequest.CachePolicy? = nil) throws -> URLRequest {
139 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
140 |         request.httpMethod = method.rawValue.uppercased()
141 |
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:205:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
203 |
204 |     private func findFailureReason(data: Data?, response: URLResponse?) -> Error {
205 |         guard let response = response as? HTTPURLResponse else {
    |                                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 |             return ResponseError.emptyResponse(url: nil)
207 |         }
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/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:213:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
211 |         }
212 |
213 |         return ResponseError.serverError(httpCode: response.statusCode, url: response.url)
    |                                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
214 |     }
215 |
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:213:87: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
211 |         }
212 |
213 |         return ResponseError.serverError(httpCode: response.statusCode, url: response.url)
    |                                                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
214 |     }
215 |
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:218:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
216 |     public static func defaultErrorParser() -> ErrorParser {
217 |         return { (response, data) in
218 |             switch response.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
219 |               case 429:
220 |                   return ResponseError.requestsLimitExceeded(url: response.url)
[8/9] Compiling CoinpaprikaNetworking Errors.swift
[9/9] Compiling CoinpaprikaNetworking CodableModel.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/7] Compiling CoinpaprikaNetworking Result.swift
[3/7] Compiling CoinpaprikaNetworking CodableModel.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/7] Emitting module CoinpaprikaNetworking
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/NetworkSession.swift:11:33: error: cannot find type 'URLRequest' in scope
 9 |
10 | public protocol NetworkSession {
11 |     func loadData(with request: URLRequest,
   |                                 `- error: cannot find type 'URLRequest' in scope
12 |                   completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void)
13 | }
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/NetworkSession.swift:12:56: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | public protocol NetworkSession {
11 |     func loadData(with request: URLRequest,
12 |                   completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void)
   |                                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
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/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/NetworkSession.swift:15:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
13 | }
14 |
15 | extension URLSession: NetworkSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
16 |     public func loadData(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) {
17 |         let task = dataTask(with: request) { (data, response, error) in
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:13:33: error: cannot find type 'DispatchQueue' in scope
 11 | public protocol Requestable {
 12 |     associatedtype Model: Decodable
 13 |     func perform(responseQueue: DispatchQueue?, cachePolicy: URLRequest.CachePolicy?, session: NetworkSession, _ callback: @escaping (Result<Model, Error>) -> Void)
    |                                 `- error: cannot find type 'DispatchQueue' in scope
 14 | }
 15 |
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:13:62: error: cannot find type 'URLRequest' in scope
 11 | public protocol Requestable {
 12 |     associatedtype Model: Decodable
 13 |     func perform(responseQueue: DispatchQueue?, cachePolicy: URLRequest.CachePolicy?, session: NetworkSession, _ callback: @escaping (Result<Model, Error>) -> Void)
    |                                                              `- error: cannot find type 'URLRequest' in scope
 14 | }
 15 |
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:51:37: error: cannot find type 'URLRequest' in scope
 49 |         case bearer(token: String)
 50 |         case custom(headers: [String: String])
 51 |         case dynamic(signer: (inout URLRequest) -> Void)
    |                                     `- error: cannot find type 'URLRequest' in scope
 52 |     }
 53 |
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:56:49: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |     private let authorisation: AuthorisationMethod
 55 |
 56 |     public typealias ErrorParser = (_ response: HTTPURLResponse, _ data: Data) -> Error?
    |                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |     private let errorParser: ErrorParser
 58 |
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/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:83:40: error: cannot find type 'DispatchQueue' in scope
 81 |     ///   - cachePolicy: cache policy that should be used in this request
 82 |     ///   - callback: Completion handler triggered on request success & failure
 83 |     public func perform(responseQueue: DispatchQueue? = nil, cachePolicy: URLRequest.CachePolicy? = nil, session: NetworkSession = URLSession.shared, _ callback: @escaping (Result<Model, Error>) -> Void) {
    |                                        `- error: cannot find type 'DispatchQueue' in scope
 84 |         let onQueue = { (_ block: @escaping () -> Void) -> Void in
 85 |             (responseQueue ?? DispatchQueue.main).async(execute: block)
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:83:75: error: cannot find type 'URLRequest' in scope
 81 |     ///   - cachePolicy: cache policy that should be used in this request
 82 |     ///   - callback: Completion handler triggered on request success & failure
 83 |     public func perform(responseQueue: DispatchQueue? = nil, cachePolicy: URLRequest.CachePolicy? = nil, session: NetworkSession = URLSession.shared, _ callback: @escaping (Result<Model, Error>) -> Void) {
    |                                                                           `- error: cannot find type 'URLRequest' in scope
 84 |         let onQueue = { (_ block: @escaping () -> Void) -> Void in
 85 |             (responseQueue ?? DispatchQueue.main).async(execute: block)
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:83:143: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 81 |     ///   - cachePolicy: cache policy that should be used in this request
 82 |     ///   - callback: Completion handler triggered on request success & failure
 83 |     public func perform(responseQueue: DispatchQueue? = nil, cachePolicy: URLRequest.CachePolicy? = nil, session: NetworkSession = URLSession.shared, _ callback: @escaping (Result<Model, Error>) -> Void) {
    |                                                                                                                                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 84 |         let onQueue = { (_ block: @escaping () -> Void) -> Void in
 85 |             (responseQueue ?? DispatchQueue.main).async(execute: block)
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:138:85: error: cannot find type 'URLRequest' in scope
136 |     }
137 |
138 |     private func buildRequest(cachePolicy: URLRequest.CachePolicy? = nil) throws -> URLRequest {
    |                                                                                     `- error: cannot find type 'URLRequest' in scope
139 |         var request = URLRequest(url: url)
140 |         request.httpMethod = method.rawValue.uppercased()
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:138:44: error: cannot find type 'URLRequest' in scope
136 |     }
137 |
138 |     private func buildRequest(cachePolicy: URLRequest.CachePolicy? = nil) throws -> URLRequest {
    |                                            `- error: cannot find type 'URLRequest' in scope
139 |         var request = URLRequest(url: url)
140 |         request.httpMethod = method.rawValue.uppercased()
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:204:59: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
202 |     }
203 |
204 |     private func findFailureReason(data: Data?, response: URLResponse?) -> Error {
    |                                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
205 |         guard let response = response as? HTTPURLResponse else {
206 |             return ResponseError.emptyResponse(url: 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
[5/7] Compiling CoinpaprikaNetworking NetworkSession.swift
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/NetworkSession.swift:11:33: error: cannot find type 'URLRequest' in scope
 9 |
10 | public protocol NetworkSession {
11 |     func loadData(with request: URLRequest,
   |                                 `- error: cannot find type 'URLRequest' in scope
12 |                   completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void)
13 | }
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/NetworkSession.swift:12:56: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | public protocol NetworkSession {
11 |     func loadData(with request: URLRequest,
12 |                   completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void)
   |                                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
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/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/NetworkSession.swift:15:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
13 | }
14 |
15 | extension URLSession: NetworkSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
16 |     public func loadData(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) {
17 |         let task = dataTask(with: request) { (data, response, error) in
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/NetworkSession.swift:16:40: error: cannot find type 'URLRequest' in scope
14 |
15 | extension URLSession: NetworkSession {
16 |     public func loadData(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) {
   |                                        `- error: cannot find type 'URLRequest' in scope
17 |         let task = dataTask(with: request) { (data, response, error) in
18 |             completionHandler(data, response, error)
[6/7] Compiling CoinpaprikaNetworking Errors.swift
[7/7] Compiling CoinpaprikaNetworking Request.swift
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:13:33: error: cannot find type 'DispatchQueue' in scope
 11 | public protocol Requestable {
 12 |     associatedtype Model: Decodable
 13 |     func perform(responseQueue: DispatchQueue?, cachePolicy: URLRequest.CachePolicy?, session: NetworkSession, _ callback: @escaping (Result<Model, Error>) -> Void)
    |                                 `- error: cannot find type 'DispatchQueue' in scope
 14 | }
 15 |
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:13:62: error: cannot find type 'URLRequest' in scope
 11 | public protocol Requestable {
 12 |     associatedtype Model: Decodable
 13 |     func perform(responseQueue: DispatchQueue?, cachePolicy: URLRequest.CachePolicy?, session: NetworkSession, _ callback: @escaping (Result<Model, Error>) -> Void)
    |                                                              `- error: cannot find type 'URLRequest' in scope
 14 | }
 15 |
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:51:37: error: cannot find type 'URLRequest' in scope
 49 |         case bearer(token: String)
 50 |         case custom(headers: [String: String])
 51 |         case dynamic(signer: (inout URLRequest) -> Void)
    |                                     `- error: cannot find type 'URLRequest' in scope
 52 |     }
 53 |
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:56:49: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |     private let authorisation: AuthorisationMethod
 55 |
 56 |     public typealias ErrorParser = (_ response: HTTPURLResponse, _ data: Data) -> Error?
    |                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 57 |     private let errorParser: ErrorParser
 58 |
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/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:83:40: error: cannot find type 'DispatchQueue' in scope
 81 |     ///   - cachePolicy: cache policy that should be used in this request
 82 |     ///   - callback: Completion handler triggered on request success & failure
 83 |     public func perform(responseQueue: DispatchQueue? = nil, cachePolicy: URLRequest.CachePolicy? = nil, session: NetworkSession = URLSession.shared, _ callback: @escaping (Result<Model, Error>) -> Void) {
    |                                        `- error: cannot find type 'DispatchQueue' in scope
 84 |         let onQueue = { (_ block: @escaping () -> Void) -> Void in
 85 |             (responseQueue ?? DispatchQueue.main).async(execute: block)
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:83:75: error: cannot find type 'URLRequest' in scope
 81 |     ///   - cachePolicy: cache policy that should be used in this request
 82 |     ///   - callback: Completion handler triggered on request success & failure
 83 |     public func perform(responseQueue: DispatchQueue? = nil, cachePolicy: URLRequest.CachePolicy? = nil, session: NetworkSession = URLSession.shared, _ callback: @escaping (Result<Model, Error>) -> Void) {
    |                                                                           `- error: cannot find type 'URLRequest' in scope
 84 |         let onQueue = { (_ block: @escaping () -> Void) -> Void in
 85 |             (responseQueue ?? DispatchQueue.main).async(execute: block)
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:83:143: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 81 |     ///   - cachePolicy: cache policy that should be used in this request
 82 |     ///   - callback: Completion handler triggered on request success & failure
 83 |     public func perform(responseQueue: DispatchQueue? = nil, cachePolicy: URLRequest.CachePolicy? = nil, session: NetworkSession = URLSession.shared, _ callback: @escaping (Result<Model, Error>) -> Void) {
    |                                                                                                                                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 84 |         let onQueue = { (_ block: @escaping () -> Void) -> Void in
 85 |             (responseQueue ?? DispatchQueue.main).async(execute: block)
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:138:85: error: cannot find type 'URLRequest' in scope
136 |     }
137 |
138 |     private func buildRequest(cachePolicy: URLRequest.CachePolicy? = nil) throws -> URLRequest {
    |                                                                                     `- error: cannot find type 'URLRequest' in scope
139 |         var request = URLRequest(url: url)
140 |         request.httpMethod = method.rawValue.uppercased()
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:138:44: error: cannot find type 'URLRequest' in scope
136 |     }
137 |
138 |     private func buildRequest(cachePolicy: URLRequest.CachePolicy? = nil) throws -> URLRequest {
    |                                            `- error: cannot find type 'URLRequest' in scope
139 |         var request = URLRequest(url: url)
140 |         request.httpMethod = method.rawValue.uppercased()
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:204:59: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
202 |     }
203 |
204 |     private func findFailureReason(data: Data?, response: URLResponse?) -> Error {
    |                                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
205 |         guard let response = response as? HTTPURLResponse else {
206 |             return ResponseError.emptyResponse(url: 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/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:85:31: error: cannot find 'DispatchQueue' in scope
 83 |     public func perform(responseQueue: DispatchQueue? = nil, cachePolicy: URLRequest.CachePolicy? = nil, session: NetworkSession = URLSession.shared, _ callback: @escaping (Result<Model, Error>) -> Void) {
 84 |         let onQueue = { (_ block: @escaping () -> Void) -> Void in
 85 |             (responseQueue ?? DispatchQueue.main).async(execute: block)
    |                               `- error: cannot find 'DispatchQueue' in scope
 86 |         }
 87 |
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:88:22: error: cannot find type 'URLRequest' in scope
 86 |         }
 87 |
 88 |         let request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 89 |
 90 |         do {
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/NetworkSession.swift:11:33: error: cannot find type 'URLRequest' in scope
 9 |
10 | public protocol NetworkSession {
11 |     func loadData(with request: URLRequest,
   |                                 `- error: cannot find type 'URLRequest' in scope
12 |                   completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void)
13 | }
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:139:23: error: cannot find 'URLRequest' in scope
137 |
138 |     private func buildRequest(cachePolicy: URLRequest.CachePolicy? = nil) throws -> URLRequest {
139 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
140 |         request.httpMethod = method.rawValue.uppercased()
141 |
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:205:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
203 |
204 |     private func findFailureReason(data: Data?, response: URLResponse?) -> Error {
205 |         guard let response = response as? HTTPURLResponse else {
    |                                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 |             return ResponseError.emptyResponse(url: nil)
207 |         }
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/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:213:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
211 |         }
212 |
213 |         return ResponseError.serverError(httpCode: response.statusCode, url: response.url)
    |                                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
214 |     }
215 |
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:213:87: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
211 |         }
212 |
213 |         return ResponseError.serverError(httpCode: response.statusCode, url: response.url)
    |                                                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
214 |     }
215 |
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:218:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
216 |     public static func defaultErrorParser() -> ErrorParser {
217 |         return { (response, data) in
218 |             switch response.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
219 |               case 429:
220 |                   return ResponseError.requestsLimitExceeded(url: response.url)
BUILD FAILURE 6.1 wasm