The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Coinpaprika, reference 2.4.1 (f10a72), with Swift 6.3 for Linux on 22 Oct 2026 03:24:10 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886769-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:linux-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/coinpaprika/coinpaprika-api-swift-client.git
Reference: 2.4.1
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/coinpaprika-api-swift-client
 * tag               2.4.1      -> FETCH_HEAD
HEAD is now at f10a728 Refuse unsafe ids in request paths (#24)
Cloned https://github.com/coinpaprika/coinpaprika-api-swift-client.git
Revision (git rev-parse @):
f10a728b7fad5fb0ebefa39a2dfeaaf3740666fe
SUCCESS checkout https://github.com/coinpaprika/coinpaprika-api-swift-client.git at 2.4.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.3
Building package at path:  $PWD
https://github.com/coinpaprika/coinpaprika-api-swift-client.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:linux-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
linux-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:1b75f3338690e1611bd07d393b988f1cb6c72bd2655b61306c710afc67bb9c44
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:linux-6.3-latest
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/11] Compiling CoinpaprikaNetworking Result.swift
[6/11] Compiling CoinpaprikaNetworking Request.swift
/host/spi-builder-workspace/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/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/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/Sources/Networking/Request.swift:88:75: error: cannot find type 'URLRequest' in scope
 86 |     ///   - cachePolicy: cache policy that should be used in this request
 87 |     ///   - callback: Completion handler triggered on request success & failure
 88 |     public func perform(responseQueue: DispatchQueue? = nil, cachePolicy: URLRequest.CachePolicy? = nil, session: NetworkSession = CoinpaprikaSession.shared, _ callback: @escaping (Result<Model, Error>) -> Void) {
    |                                                                           `- error: cannot find type 'URLRequest' in scope
 89 |         let onQueue = { (_ block: @escaping () -> Void) -> Void in
 90 |             (responseQueue ?? DispatchQueue.main).async(execute: block)
/host/spi-builder-workspace/Sources/Networking/Request.swift:143:85: error: cannot find type 'URLRequest' in scope
141 |     }
142 |
143 |     private func buildRequest(cachePolicy: URLRequest.CachePolicy? = nil) throws -> URLRequest {
    |                                                                                     `- error: cannot find type 'URLRequest' in scope
144 |         if let pathError = pathError {
145 |             throw pathError
/host/spi-builder-workspace/Sources/Networking/Request.swift:143:44: error: cannot find type 'URLRequest' in scope
141 |     }
142 |
143 |     private func buildRequest(cachePolicy: URLRequest.CachePolicy? = nil) throws -> URLRequest {
    |                                            `- error: cannot find type 'URLRequest' in scope
144 |         if let pathError = pathError {
145 |             throw pathError
/host/spi-builder-workspace/Sources/Networking/Request.swift:213:59: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 |     }
212 |
213 |     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.
214 |         guard let response = response as? HTTPURLResponse else {
215 |             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/Sources/Networking/Request.swift:90:66: warning: passing non-Sendable parameter 'block' to function expecting a '@Sendable' closure
 87 |     ///   - callback: Completion handler triggered on request success & failure
 88 |     public func perform(responseQueue: DispatchQueue? = nil, cachePolicy: URLRequest.CachePolicy? = nil, session: NetworkSession = CoinpaprikaSession.shared, _ callback: @escaping (Result<Model, Error>) -> Void) {
 89 |         let onQueue = { (_ block: @escaping () -> Void) -> Void in
    |                            `- note: parameter 'block' is implicitly non-Sendable
 90 |             (responseQueue ?? DispatchQueue.main).async(execute: block)
    |                                                                  `- warning: passing non-Sendable parameter 'block' to function expecting a '@Sendable' closure
 91 |         }
 92 |
/host/spi-builder-workspace/Sources/Networking/Request.swift:93:22: error: cannot find type 'URLRequest' in scope
 91 |         }
 92 |
 93 |         let request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
 94 |
 95 |         do {
/host/spi-builder-workspace/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/Sources/Networking/Request.swift:148:23: error: cannot find 'URLRequest' in scope
146 |         }
147 |
148 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
149 |         request.httpMethod = method.rawValue.uppercased()
150 |
/host/spi-builder-workspace/Sources/Networking/Request.swift:214:39: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
212 |
213 |     private func findFailureReason(data: Data?, response: URLResponse?) -> Error {
214 |         guard let response = response as? HTTPURLResponse else {
    |                                       `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
215 |             return ResponseError.emptyResponse(url: nil)
216 |         }
/host/spi-builder-workspace/Sources/Networking/Request.swift:214:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
212 |
213 |     private func findFailureReason(data: Data?, response: URLResponse?) -> Error {
214 |         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.
215 |             return ResponseError.emptyResponse(url: nil)
216 |         }
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/Networking/Request.swift:222:61: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
220 |         }
221 |
222 |         return ResponseError.serverError(httpCode: response.statusCode, url: response.url)
    |                                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
223 |     }
224 |
/host/spi-builder-workspace/Sources/Networking/Request.swift:222:87: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
220 |         }
221 |
222 |         return ResponseError.serverError(httpCode: response.statusCode, url: response.url)
    |                                                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
223 |     }
224 |
/host/spi-builder-workspace/Sources/Networking/Request.swift:227:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
225 |     public static func defaultErrorParser() -> ErrorParser {
226 |         return { (response, data) in
227 |             switch response.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
228 |               case 402:
229 |                   return ResponseError.quotaExceeded(url: response.url)
[7/11] Compiling CoinpaprikaNetworking Errors.swift
[8/11] Compiling CoinpaprikaNetworking NetworkSession.swift
/host/spi-builder-workspace/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/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/Sources/Networking/NetworkSession.swift:15:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
13 | }
14 |
15 | extension URLSession: NetworkSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
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/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)
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/11] Compiling CoinpaprikaNetworking CodableModel.swift
[10/11] Emitting module CoinpaprikaNetworking
/host/spi-builder-workspace/Sources/Networking/CoinpaprikaSession.swift:43:59: error: value of type '_' expected to be instance of class or class-constrained type
 41 |     /// Creates a new session. In most cases use `CoinpaprikaSession.shared` instead.
 42 |     /// - Parameter configuration: URLSession configuration; defaults to `.default`.
 43 |     public init(configuration: URLSessionConfiguration = .default) {
    |                                                           `- error: value of type '_' expected to be instance of class or class-constrained type
 44 |         let delegate = RedirectRewriter()
 45 |         self.session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
/host/spi-builder-workspace/Sources/Networking/CoinpaprikaSession.swift:43:59: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 41 |     /// Creates a new session. In most cases use `CoinpaprikaSession.shared` instead.
 42 |     /// - Parameter configuration: URLSession configuration; defaults to `.default`.
 43 |     public init(configuration: URLSessionConfiguration = .default) {
    |                                                           `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 44 |         let delegate = RedirectRewriter()
 45 |         self.session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
/host/spi-builder-workspace/Sources/Networking/CoinpaprikaSession.swift:39:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |     public static let shared = CoinpaprikaSession()
 38 |
 39 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |
 41 |     /// Creates a new session. In most cases use `CoinpaprikaSession.shared` instead.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Networking/CoinpaprikaSession.swift:43:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |     /// Creates a new session. In most cases use `CoinpaprikaSession.shared` instead.
 42 |     /// - Parameter configuration: URLSession configuration; defaults to `.default`.
 43 |     public init(configuration: URLSessionConfiguration = .default) {
    |                                `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         let delegate = RedirectRewriter()
 45 |         self.session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Networking/CoinpaprikaSession.swift:48:40: error: cannot find type 'URLRequest' in scope
 46 |     }
 47 |
 48 |     public func loadData(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) {
    |                                        `- error: cannot find type 'URLRequest' in scope
 49 |         let task = session.dataTask(with: request) { data, response, error in
 50 |             completionHandler(data, response, error)
/host/spi-builder-workspace/Sources/Networking/CoinpaprikaSession.swift:48:89: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 46 |     }
 47 |
 48 |     public func loadData(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) {
    |                                                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 49 |         let task = session.dataTask(with: request) { data, response, error in
 50 |             completionHandler(data, response, error)
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/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/Sources/Networking/CoinpaprikaSession.swift:69:41: error: cannot find type 'URLSessionTaskDelegate' in scope
 67 | /// crosses to a non-coinpaprika host mid-chain short-circuits the
 68 | /// `isCoinpaprikaHost` guard and headers stay stripped.
 69 | final class RedirectRewriter: NSObject, URLSessionTaskDelegate {
    |                                         `- error: cannot find type 'URLSessionTaskDelegate' in scope
 70 |
 71 |     /// Headers re-attached from the original request when the redirect target
/host/spi-builder-workspace/Sources/Networking/CoinpaprikaSession.swift:82:33: error: cannot find type 'URLRequest' in scope
 80 |                     task: URLSessionTask,
 81 |                     willPerformHTTPRedirection response: HTTPURLResponse,
 82 |                     newRequest: URLRequest,
    |                                 `- error: cannot find type 'URLRequest' in scope
 83 |                     completionHandler: @escaping (URLRequest?) -> Void) {
 84 |         completionHandler(rewrite(newRequest, originalRequest: task.originalRequest))
/host/spi-builder-workspace/Sources/Networking/CoinpaprikaSession.swift:83:51: error: cannot find type 'URLRequest' in scope
 81 |                     willPerformHTTPRedirection response: HTTPURLResponse,
 82 |                     newRequest: URLRequest,
 83 |                     completionHandler: @escaping (URLRequest?) -> Void) {
    |                                                   `- error: cannot find type 'URLRequest' in scope
 84 |         completionHandler(rewrite(newRequest, originalRequest: task.originalRequest))
 85 |     }
/host/spi-builder-workspace/Sources/Networking/CoinpaprikaSession.swift:79:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 77 |     static let preservedHeaders = ["Authorization", "Accept", "User-Agent"]
 78 |
 79 |     func urlSession(_ session: URLSession,
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 80 |                     task: URLSessionTask,
 81 |                     willPerformHTTPRedirection response: HTTPURLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Networking/CoinpaprikaSession.swift:80:27: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |
 79 |     func urlSession(_ session: URLSession,
 80 |                     task: URLSessionTask,
    |                           `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |                     willPerformHTTPRedirection response: HTTPURLResponse,
 82 |                     newRequest: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Networking/CoinpaprikaSession.swift:81:58: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |     func urlSession(_ session: URLSession,
 80 |                     task: URLSessionTask,
 81 |                     willPerformHTTPRedirection response: HTTPURLResponse,
    |                                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |                     newRequest: URLRequest,
 83 |                     completionHandler: @escaping (URLRequest?) -> Void) {
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/Networking/CoinpaprikaSession.swift:97:80: error: cannot find type 'URLRequest' in scope
 95 |     ///
 96 |     /// Non-coinpaprika hosts pass through unchanged.
 97 |     func rewrite(_ request: URLRequest, originalRequest: URLRequest? = nil) -> URLRequest {
    |                                                                                `- error: cannot find type 'URLRequest' in scope
 98 |         var rewritten = request
 99 |
/host/spi-builder-workspace/Sources/Networking/CoinpaprikaSession.swift:97:29: error: cannot find type 'URLRequest' in scope
 95 |     ///
 96 |     /// Non-coinpaprika hosts pass through unchanged.
 97 |     func rewrite(_ request: URLRequest, originalRequest: URLRequest? = nil) -> URLRequest {
    |                             `- error: cannot find type 'URLRequest' in scope
 98 |         var rewritten = request
 99 |
/host/spi-builder-workspace/Sources/Networking/CoinpaprikaSession.swift:97:58: error: cannot find type 'URLRequest' in scope
 95 |     ///
 96 |     /// Non-coinpaprika hosts pass through unchanged.
 97 |     func rewrite(_ request: URLRequest, originalRequest: URLRequest? = nil) -> URLRequest {
    |                                                          `- error: cannot find type 'URLRequest' in scope
 98 |         var rewritten = request
 99 |
/host/spi-builder-workspace/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/Sources/Networking/NetworkSession.swift:15:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
13 | }
14 |
15 | extension URLSession: NetworkSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
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/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/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/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/Sources/Networking/Request.swift:88:75: error: cannot find type 'URLRequest' in scope
 86 |     ///   - cachePolicy: cache policy that should be used in this request
 87 |     ///   - callback: Completion handler triggered on request success & failure
 88 |     public func perform(responseQueue: DispatchQueue? = nil, cachePolicy: URLRequest.CachePolicy? = nil, session: NetworkSession = CoinpaprikaSession.shared, _ callback: @escaping (Result<Model, Error>) -> Void) {
    |                                                                           `- error: cannot find type 'URLRequest' in scope
 89 |         let onQueue = { (_ block: @escaping () -> Void) -> Void in
 90 |             (responseQueue ?? DispatchQueue.main).async(execute: block)
/host/spi-builder-workspace/Sources/Networking/Request.swift:143:85: error: cannot find type 'URLRequest' in scope
141 |     }
142 |
143 |     private func buildRequest(cachePolicy: URLRequest.CachePolicy? = nil) throws -> URLRequest {
    |                                                                                     `- error: cannot find type 'URLRequest' in scope
144 |         if let pathError = pathError {
145 |             throw pathError
/host/spi-builder-workspace/Sources/Networking/Request.swift:143:44: error: cannot find type 'URLRequest' in scope
141 |     }
142 |
143 |     private func buildRequest(cachePolicy: URLRequest.CachePolicy? = nil) throws -> URLRequest {
    |                                            `- error: cannot find type 'URLRequest' in scope
144 |         if let pathError = pathError {
145 |             throw pathError
/host/spi-builder-workspace/Sources/Networking/Request.swift:213:59: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 |     }
212 |
213 |     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.
214 |         guard let response = response as? HTTPURLResponse else {
215 |             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
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[11/11] Compiling CoinpaprikaNetworking CoinpaprikaSession.swift
/host/spi-builder-workspace/Sources/Networking/CoinpaprikaSession.swift:43:59: error: value of type '_' expected to be instance of class or class-constrained type
 41 |     /// Creates a new session. In most cases use `CoinpaprikaSession.shared` instead.
 42 |     /// - Parameter configuration: URLSession configuration; defaults to `.default`.
 43 |     public init(configuration: URLSessionConfiguration = .default) {
    |                                                           `- error: value of type '_' expected to be instance of class or class-constrained type
 44 |         let delegate = RedirectRewriter()
 45 |         self.session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
/host/spi-builder-workspace/Sources/Networking/CoinpaprikaSession.swift:43:59: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 41 |     /// Creates a new session. In most cases use `CoinpaprikaSession.shared` instead.
 42 |     /// - Parameter configuration: URLSession configuration; defaults to `.default`.
 43 |     public init(configuration: URLSessionConfiguration = .default) {
    |                                                           `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 44 |         let delegate = RedirectRewriter()
 45 |         self.session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
/host/spi-builder-workspace/Sources/Networking/CoinpaprikaSession.swift:39:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |     public static let shared = CoinpaprikaSession()
 38 |
 39 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |
 41 |     /// Creates a new session. In most cases use `CoinpaprikaSession.shared` instead.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Networking/CoinpaprikaSession.swift:43:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |     /// Creates a new session. In most cases use `CoinpaprikaSession.shared` instead.
 42 |     /// - Parameter configuration: URLSession configuration; defaults to `.default`.
 43 |     public init(configuration: URLSessionConfiguration = .default) {
    |                                `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         let delegate = RedirectRewriter()
 45 |         self.session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Networking/CoinpaprikaSession.swift:48:40: error: cannot find type 'URLRequest' in scope
 46 |     }
 47 |
 48 |     public func loadData(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) {
    |                                        `- error: cannot find type 'URLRequest' in scope
 49 |         let task = session.dataTask(with: request) { data, response, error in
 50 |             completionHandler(data, response, error)
/host/spi-builder-workspace/Sources/Networking/CoinpaprikaSession.swift:48:89: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 46 |     }
 47 |
 48 |     public func loadData(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) {
    |                                                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 49 |         let task = session.dataTask(with: request) { data, response, error in
 50 |             completionHandler(data, response, error)
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/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/Sources/Networking/CoinpaprikaSession.swift:69:41: error: cannot find type 'URLSessionTaskDelegate' in scope
 67 | /// crosses to a non-coinpaprika host mid-chain short-circuits the
 68 | /// `isCoinpaprikaHost` guard and headers stay stripped.
 69 | final class RedirectRewriter: NSObject, URLSessionTaskDelegate {
    |                                         `- error: cannot find type 'URLSessionTaskDelegate' in scope
 70 |
 71 |     /// Headers re-attached from the original request when the redirect target
/host/spi-builder-workspace/Sources/Networking/CoinpaprikaSession.swift:82:33: error: cannot find type 'URLRequest' in scope
 80 |                     task: URLSessionTask,
 81 |                     willPerformHTTPRedirection response: HTTPURLResponse,
 82 |                     newRequest: URLRequest,
    |                                 `- error: cannot find type 'URLRequest' in scope
 83 |                     completionHandler: @escaping (URLRequest?) -> Void) {
 84 |         completionHandler(rewrite(newRequest, originalRequest: task.originalRequest))
/host/spi-builder-workspace/Sources/Networking/CoinpaprikaSession.swift:83:51: error: cannot find type 'URLRequest' in scope
 81 |                     willPerformHTTPRedirection response: HTTPURLResponse,
 82 |                     newRequest: URLRequest,
 83 |                     completionHandler: @escaping (URLRequest?) -> Void) {
    |                                                   `- error: cannot find type 'URLRequest' in scope
 84 |         completionHandler(rewrite(newRequest, originalRequest: task.originalRequest))
 85 |     }
/host/spi-builder-workspace/Sources/Networking/CoinpaprikaSession.swift:79:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 77 |     static let preservedHeaders = ["Authorization", "Accept", "User-Agent"]
 78 |
 79 |     func urlSession(_ session: URLSession,
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 80 |                     task: URLSessionTask,
 81 |                     willPerformHTTPRedirection response: HTTPURLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Networking/CoinpaprikaSession.swift:80:27: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |
 79 |     func urlSession(_ session: URLSession,
 80 |                     task: URLSessionTask,
    |                           `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |                     willPerformHTTPRedirection response: HTTPURLResponse,
 82 |                     newRequest: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Networking/CoinpaprikaSession.swift:81:58: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |     func urlSession(_ session: URLSession,
 80 |                     task: URLSessionTask,
 81 |                     willPerformHTTPRedirection response: HTTPURLResponse,
    |                                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |                     newRequest: URLRequest,
 83 |                     completionHandler: @escaping (URLRequest?) -> Void) {
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/Networking/CoinpaprikaSession.swift:97:80: error: cannot find type 'URLRequest' in scope
 95 |     ///
 96 |     /// Non-coinpaprika hosts pass through unchanged.
 97 |     func rewrite(_ request: URLRequest, originalRequest: URLRequest? = nil) -> URLRequest {
    |                                                                                `- error: cannot find type 'URLRequest' in scope
 98 |         var rewritten = request
 99 |
/host/spi-builder-workspace/Sources/Networking/CoinpaprikaSession.swift:97:29: error: cannot find type 'URLRequest' in scope
 95 |     ///
 96 |     /// Non-coinpaprika hosts pass through unchanged.
 97 |     func rewrite(_ request: URLRequest, originalRequest: URLRequest? = nil) -> URLRequest {
    |                             `- error: cannot find type 'URLRequest' in scope
 98 |         var rewritten = request
 99 |
/host/spi-builder-workspace/Sources/Networking/CoinpaprikaSession.swift:97:58: error: cannot find type 'URLRequest' in scope
 95 |     ///
 96 |     /// Non-coinpaprika hosts pass through unchanged.
 97 |     func rewrite(_ request: URLRequest, originalRequest: URLRequest? = nil) -> URLRequest {
    |                                                          `- error: cannot find type 'URLRequest' in scope
 98 |         var rewritten = request
 99 |
/host/spi-builder-workspace/Sources/Networking/CoinpaprikaSession.swift:45:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 43 |     public init(configuration: URLSessionConfiguration = .default) {
 44 |         let delegate = RedirectRewriter()
 45 |         self.session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 46 |     }
 47 |
/host/spi-builder-workspace/Sources/Networking/CoinpaprikaSession.swift:45:100: error: 'nil' requires a contextual type
 43 |     public init(configuration: URLSessionConfiguration = .default) {
 44 |         let delegate = RedirectRewriter()
 45 |         self.session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
    |                                                                                                    `- error: 'nil' requires a contextual type
 46 |     }
 47 |
/host/spi-builder-workspace/Sources/Networking/CoinpaprikaSession.swift:49:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 47 |
 48 |     public func loadData(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) {
 49 |         let task = session.dataTask(with: request) { data, response, error in
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 50 |             completionHandler(data, response, error)
 51 |         }
/host/spi-builder-workspace/Sources/Networking/CoinpaprikaSession.swift:84:69: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 82 |                     newRequest: URLRequest,
 83 |                     completionHandler: @escaping (URLRequest?) -> Void) {
 84 |         completionHandler(rewrite(newRequest, originalRequest: task.originalRequest))
    |                                                                     `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 85 |     }
 86 |
BUILD FAILURE 6.3 linux