Build Information
Failed to build CoinSwitch with Swift 5.8 for Linux.
Build Command
docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.16.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/coinpaprika/coinswitch-api-swift-client.git
Reference: master
Cloned https://github.com/coinpaprika/coinswitch-api-swift-client.git into spi-builder-workspace
SUCCESS checkout https://github.com/coinpaprika/coinswitch-api-swift-client.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 5.8
Building package at path: spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1
Fetching https://github.com/coinpaprika/coinpaprika-api-swift-client.git
[1/2920] Fetching coinpaprika-api-swift-client
Fetched https://github.com/coinpaprika/coinpaprika-api-swift-client.git (0.41s)
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 (0.36s)
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...
[1/6] Compiling CoinpaprikaNetworking Result.swift
[2/6] Compiling CoinpaprikaNetworking NetworkSession.swift
/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
extension URLSession: NetworkSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/NetworkSession.swift:11:33: error: cannot find type 'URLRequest' in scope
func loadData(with request: URLRequest,
^~~~~~~~~~
/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.
completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/NetworkSession.swift:16:40: error: cannot find type 'URLRequest' in scope
public func loadData(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) {
^~~~~~~~~~
[3/6] Compiling CoinpaprikaNetworking Request.swift
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:13:62: error: cannot find type 'URLRequest' in scope
func perform(responseQueue: DispatchQueue?, cachePolicy: URLRequest.CachePolicy?, session: NetworkSession, _ callback: @escaping (Result<Model, Error>) -> Void)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:51:37: error: cannot find type 'URLRequest' in scope
case dynamic(signer: (inout URLRequest) -> Void)
^~~~~~~~~~
/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.
public typealias ErrorParser = (_ response: HTTPURLResponse, _ data: Data) -> Error?
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:83:75: error: cannot find type 'URLRequest' in scope
public func perform(responseQueue: DispatchQueue? = nil, cachePolicy: URLRequest.CachePolicy? = nil, session: NetworkSession = URLSession.shared, _ callback: @escaping (Result<Model, Error>) -> Void) {
^~~~~~~~~~
/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'
public func perform(responseQueue: DispatchQueue? = nil, cachePolicy: URLRequest.CachePolicy? = nil, session: NetworkSession = URLSession.shared, _ callback: @escaping (Result<Model, Error>) -> Void) {
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:138:85: error: cannot find type 'URLRequest' in scope
private func buildRequest(cachePolicy: URLRequest.CachePolicy? = nil) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:138:44: error: cannot find type 'URLRequest' in scope
private func buildRequest(cachePolicy: URLRequest.CachePolicy? = nil) throws -> URLRequest {
^~~~~~~~~~
/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.
private func findFailureReason(data: Data?, response: URLResponse?) -> Error {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:88:22: error: cannot find type 'URLRequest' in scope
let request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/NetworkSession.swift:11:33: error: cannot find type 'URLRequest' in scope
func loadData(with request: URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:110:109: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
guard let httpResponse = urlResponse as? HTTPURLResponse, (200..<300).contains(httpResponse.statusCode) else {
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:139:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/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.
guard let response = response as? HTTPURLResponse else {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/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'
return ResponseError.serverError(httpCode: response.statusCode, url: response.url)
~~~~~~~~ ^~~~~~~~~~
/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'
return ResponseError.serverError(httpCode: response.statusCode, url: response.url)
~~~~~~~~ ^~~
/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'
switch response.statusCode {
~~~~~~~~ ^~~~~~~~~~
[4/6] Compiling CoinpaprikaNetworking CodableModel.swift
[5/6] Compiling CoinpaprikaNetworking Errors.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/6] Emitting module CoinpaprikaNetworking
/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
extension URLSession: NetworkSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/NetworkSession.swift:11:33: error: cannot find type 'URLRequest' in scope
func loadData(with request: URLRequest,
^~~~~~~~~~
/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.
completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:13:62: error: cannot find type 'URLRequest' in scope
func perform(responseQueue: DispatchQueue?, cachePolicy: URLRequest.CachePolicy?, session: NetworkSession, _ callback: @escaping (Result<Model, Error>) -> Void)
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:51:37: error: cannot find type 'URLRequest' in scope
case dynamic(signer: (inout URLRequest) -> Void)
^~~~~~~~~~
/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.
public typealias ErrorParser = (_ response: HTTPURLResponse, _ data: Data) -> Error?
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:83:75: error: cannot find type 'URLRequest' in scope
public func perform(responseQueue: DispatchQueue? = nil, cachePolicy: URLRequest.CachePolicy? = nil, session: NetworkSession = URLSession.shared, _ callback: @escaping (Result<Model, Error>) -> Void) {
^~~~~~~~~~
/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'
public func perform(responseQueue: DispatchQueue? = nil, cachePolicy: URLRequest.CachePolicy? = nil, session: NetworkSession = URLSession.shared, _ callback: @escaping (Result<Model, Error>) -> Void) {
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:138:85: error: cannot find type 'URLRequest' in scope
private func buildRequest(cachePolicy: URLRequest.CachePolicy? = nil) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/coinpaprika-api-swift-client/Sources/Networking/Request.swift:138:44: error: cannot find type 'URLRequest' in scope
private func buildRequest(cachePolicy: URLRequest.CachePolicy? = nil) throws -> URLRequest {
^~~~~~~~~~
/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.
private func findFailureReason(data: Data?, response: URLResponse?) -> Error {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
BUILD FAILURE 5.8 linux
Build Machine: Linux 2