Build Information
Failed to build Coinpaprika with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/coinpaprika/coinpaprika-api-swift-client.git
Reference: 2.4.0
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.0 -> FETCH_HEAD
HEAD is now at 898270a Regenerate Xcode Project
Cloned https://github.com/coinpaprika/coinpaprika-api-swift-client.git
Revision (git rev-parse @):
898270a370db9a1231b4af6dceb384a0fe1eea0b
SUCCESS checkout https://github.com/coinpaprika/coinpaprika-api-swift-client.git at 2.4.0
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/coinpaprika/coinpaprika-api-swift-client.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/10] Compiling CoinpaprikaNetworking Result.swift
[6/10] Compiling CoinpaprikaNetworking NetworkSession.swift
/host/spi-builder-workspace/Sources/Networking/NetworkSession.swift:15:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: NetworkSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/Networking/NetworkSession.swift:11:33: error: cannot find type 'URLRequest' in scope
func loadData(with request: URLRequest,
^~~~~~~~~~
/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.
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/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) {
^~~~~~~~~~
[7/10] Compiling CoinpaprikaNetworking Request.swift
/host/spi-builder-workspace/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/Sources/Networking/Request.swift:51:37: error: cannot find type 'URLRequest' in scope
case dynamic(signer: (inout URLRequest) -> Void)
^~~~~~~~~~
/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.
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/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/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/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/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/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/Sources/Networking/Request.swift:88:22: error: cannot find type 'URLRequest' in scope
let request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Networking/NetworkSession.swift:11:33: error: cannot find type 'URLRequest' in scope
func loadData(with request: URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/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/Sources/Networking/Request.swift:139:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Networking/Request.swift:205:39: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
guard let response = response as? HTTPURLResponse else {
~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/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/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/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/Sources/Networking/Request.swift:218:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
switch response.statusCode {
~~~~~~~~ ^~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/10] Compiling CoinpaprikaNetworking CodableModel.swift
[9/10] Compiling CoinpaprikaNetworking Errors.swift
[10/10] Emitting module CoinpaprikaNetworking
/host/spi-builder-workspace/Sources/Networking/NetworkSession.swift:15:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: NetworkSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/Networking/NetworkSession.swift:11:33: error: cannot find type 'URLRequest' in scope
func loadData(with request: URLRequest,
^~~~~~~~~~
/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.
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/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/Sources/Networking/Request.swift:51:37: error: cannot find type 'URLRequest' in scope
case dynamic(signer: (inout URLRequest) -> Void)
^~~~~~~~~~
/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.
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/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/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/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/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/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
^
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/4] Emitting module CoinpaprikaNetworking
/host/spi-builder-workspace/Sources/Networking/NetworkSession.swift:15:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: NetworkSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/Networking/NetworkSession.swift:11:33: error: cannot find type 'URLRequest' in scope
func loadData(with request: URLRequest,
^~~~~~~~~~
/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.
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/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/Sources/Networking/Request.swift:51:37: error: cannot find type 'URLRequest' in scope
case dynamic(signer: (inout URLRequest) -> Void)
^~~~~~~~~~
/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.
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/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/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/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/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/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
^
[3/4] Compiling CoinpaprikaNetworking Request.swift
/host/spi-builder-workspace/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/Sources/Networking/Request.swift:51:37: error: cannot find type 'URLRequest' in scope
case dynamic(signer: (inout URLRequest) -> Void)
^~~~~~~~~~
/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.
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/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/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/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/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/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/Sources/Networking/Request.swift:88:22: error: cannot find type 'URLRequest' in scope
let request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Networking/NetworkSession.swift:11:33: error: cannot find type 'URLRequest' in scope
func loadData(with request: URLRequest,
^~~~~~~~~~
/host/spi-builder-workspace/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/Sources/Networking/Request.swift:139:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Networking/Request.swift:205:39: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
guard let response = response as? HTTPURLResponse else {
~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/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/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/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/Sources/Networking/Request.swift:218:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
switch response.statusCode {
~~~~~~~~ ^~~~~~~~~~
[4/4] Compiling CoinpaprikaNetworking NetworkSession.swift
/host/spi-builder-workspace/Sources/Networking/NetworkSession.swift:15:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: NetworkSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/Networking/NetworkSession.swift:11:33: error: cannot find type 'URLRequest' in scope
func loadData(with request: URLRequest,
^~~~~~~~~~
/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.
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/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) {
^~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux
Build Machine: Linux 2