Build Information
Failed to build WeTransfer-Swift-SDK with Swift 5.9 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.9-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/WeTransfer/WeTransfer-Swift-SDK.git
Reference: v1.0.1
Cloned https://github.com/WeTransfer/WeTransfer-Swift-SDK.git into spi-builder-workspace
SUCCESS checkout https://github.com/WeTransfer/WeTransfer-Swift-SDK.git at v1.0.1
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
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.9-latest swift build 2>&1
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/23] Emitting module WeTransfer
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:67:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:58: error: cannot infer contextual base in reference to member 'default'
let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
~^~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:77: error: 'nil' requires a contextual type
let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:97: error: 'nil' requires a contextual type
let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:52:95: error: cannot find type 'URLRequest' in scope
func createRequest<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:57: error: cannot find type 'URLRequest' in scope
func authenticatedRequest(from request: URLRequest) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:42: error: cannot find type 'URLRequest' in scope
func authenticatedRequest(from request: URLRequest) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:57:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
static func parseErrorResponse(_ data: Data?, urlResponse: HTTPURLResponse?) -> Swift.Error? {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousResultOperation.swift:14:26: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
typealias ResultHandler<T> = ((_ result: Result<T>) -> Void)
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousResultOperation.swift:12:40: note: 'T' previously declared here
open class AsynchronousResultOperation<T>: AsynchronousOperation {
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:31:15: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:36:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
required init(session: URLSession) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:31:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:39:69: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
required init(file: File, operationQueue: OperationQueue, session: URLSession) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:102:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:102:47: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:12:91: error: cannot find type 'URLSessionDataDelegate' in scope
final class UploadFilesOperation: ChainedAsynchronousResultOperation<Transfer, Transfer>, URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
[2/26] Compiling WeTransfer AddFiles.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:67:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
^~~~~~~~~~
[3/26] Compiling WeTransfer Authorize.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:67:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
^~~~~~~~~~
[4/26] Compiling WeTransfer CreateTransfer.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:67:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
^~~~~~~~~~
[5/26] Compiling WeTransfer AsynchronousOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousResultOperation.swift:14:26: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
typealias ResultHandler<T> = ((_ result: Result<T>) -> Void)
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousResultOperation.swift:12:40: note: 'T' previously declared here
open class AsynchronousResultOperation<T>: AsynchronousOperation {
^
[6/26] Compiling WeTransfer AsynchronousResultOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousResultOperation.swift:14:26: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
typealias ResultHandler<T> = ((_ result: Result<T>) -> Void)
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousResultOperation.swift:12:40: note: 'T' previously declared here
open class AsynchronousResultOperation<T>: AsynchronousOperation {
^
[7/26] Compiling WeTransfer ChainedAsynchronousResultOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousResultOperation.swift:14:26: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
typealias ResultHandler<T> = ((_ result: Result<T>) -> Void)
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousResultOperation.swift:12:40: note: 'T' previously declared here
open class AsynchronousResultOperation<T>: AsynchronousOperation {
^
[8/26] Compiling WeTransfer AddFilesOperation.swift
[9/26] Compiling WeTransfer CompleteUploadOperation.swift
[10/26] Compiling WeTransfer CreateChunkOperation.swift
[11/26] Compiling WeTransfer Chunk.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:67:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:58: error: cannot infer contextual base in reference to member 'default'
let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
~^~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:77: error: 'nil' requires a contextual type
let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:97: error: 'nil' requires a contextual type
let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:52:95: error: cannot find type 'URLRequest' in scope
func createRequest<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:57:17: error: cannot find 'URLRequest' in scope
var request = URLRequest(endpoint: endpoint, baseURL: baseURL, apiKey: apiKey)
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:57: error: cannot find type 'URLRequest' in scope
func authenticatedRequest(from request: URLRequest) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:42: error: cannot find type 'URLRequest' in scope
func authenticatedRequest(from request: URLRequest) -> URLRequest {
^~~~~~~~~~
[12/26] Compiling WeTransfer File.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:67:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:58: error: cannot infer contextual base in reference to member 'default'
let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
~^~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:77: error: 'nil' requires a contextual type
let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:97: error: 'nil' requires a contextual type
let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:52:95: error: cannot find type 'URLRequest' in scope
func createRequest<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:57:17: error: cannot find 'URLRequest' in scope
var request = URLRequest(endpoint: endpoint, baseURL: baseURL, apiKey: apiKey)
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:57: error: cannot find type 'URLRequest' in scope
func authenticatedRequest(from request: URLRequest) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:42: error: cannot find type 'URLRequest' in scope
func authenticatedRequest(from request: URLRequest) -> URLRequest {
^~~~~~~~~~
[13/26] Compiling WeTransfer Transfer.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:67:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:58: error: cannot infer contextual base in reference to member 'default'
let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
~^~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:77: error: 'nil' requires a contextual type
let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:97: error: 'nil' requires a contextual type
let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:52:95: error: cannot find type 'URLRequest' in scope
func createRequest<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:57:17: error: cannot find 'URLRequest' in scope
var request = URLRequest(endpoint: endpoint, baseURL: baseURL, apiKey: apiKey)
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:57: error: cannot find type 'URLRequest' in scope
func authenticatedRequest(from request: URLRequest) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:42: error: cannot find type 'URLRequest' in scope
func authenticatedRequest(from request: URLRequest) -> URLRequest {
^~~~~~~~~~
[14/26] Compiling WeTransfer APIClient.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:67:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:58: error: cannot infer contextual base in reference to member 'default'
let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
~^~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:77: error: 'nil' requires a contextual type
let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:97: error: 'nil' requires a contextual type
let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:52:95: error: cannot find type 'URLRequest' in scope
func createRequest<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:57:17: error: cannot find 'URLRequest' in scope
var request = URLRequest(endpoint: endpoint, baseURL: baseURL, apiKey: apiKey)
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:57: error: cannot find type 'URLRequest' in scope
func authenticatedRequest(from request: URLRequest) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:42: error: cannot find type 'URLRequest' in scope
func authenticatedRequest(from request: URLRequest) -> URLRequest {
^~~~~~~~~~
[15/26] Compiling WeTransfer Authenticator.swift
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:57: error: cannot find type 'URLRequest' in scope
func authenticatedRequest(from request: URLRequest) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:42: error: cannot find type 'URLRequest' in scope
func authenticatedRequest(from request: URLRequest) -> URLRequest {
^~~~~~~~~~
[16/26] Compiling WeTransfer APIEndpoint.swift
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:57: error: cannot find type 'URLRequest' in scope
func authenticatedRequest(from request: URLRequest) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:42: error: cannot find type 'URLRequest' in scope
func authenticatedRequest(from request: URLRequest) -> URLRequest {
^~~~~~~~~~
[17/26] Compiling WeTransfer Endpoints.swift
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:57: error: cannot find type 'URLRequest' in scope
func authenticatedRequest(from request: URLRequest) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:42: error: cannot find type 'URLRequest' in scope
func authenticatedRequest(from request: URLRequest) -> URLRequest {
^~~~~~~~~~
[18/26] Compiling WeTransfer Request.swift
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:57:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
static func parseErrorResponse(_ data: Data?, urlResponse: HTTPURLResponse?) -> Swift.Error? {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:63:99: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
return RequestError.serverError(errorMessage: errorResponse.errorString, httpCode: urlResponse?.statusCode)
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:67:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:110:19: error: cannot find type 'URLRequest' in scope
let urlRequest: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:52:95: error: cannot find type 'URLRequest' in scope
func createRequest<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:119:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
let task = client.urlSession.dataTask(with: urlRequest, completionHandler: { (data, urlResponse, error) in
~~~~~~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:130:42: error: cannot convert value of type '_' to expected argument type 'Data?'
let serverError = parseErrorResponse(data, urlResponse: urlResponse as? HTTPURLResponse) ?? error
^
[19/26] Compiling WeTransfer Upload.swift
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:57:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
static func parseErrorResponse(_ data: Data?, urlResponse: HTTPURLResponse?) -> Swift.Error? {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:63:99: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
return RequestError.serverError(errorMessage: errorResponse.errorString, httpCode: urlResponse?.statusCode)
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:67:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:110:19: error: cannot find type 'URLRequest' in scope
let urlRequest: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:52:95: error: cannot find type 'URLRequest' in scope
func createRequest<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:119:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
let task = client.urlSession.dataTask(with: urlRequest, completionHandler: { (data, urlResponse, error) in
~~~~~~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:130:42: error: cannot convert value of type '_' to expected argument type 'Data?'
let serverError = parseErrorResponse(data, urlResponse: urlResponse as? HTTPURLResponse) ?? error
^
[20/26] Compiling WeTransfer AsynchronousDependencyResultOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:57:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
static func parseErrorResponse(_ data: Data?, urlResponse: HTTPURLResponse?) -> Swift.Error? {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:63:99: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
return RequestError.serverError(errorMessage: errorResponse.errorString, httpCode: urlResponse?.statusCode)
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:67:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:110:19: error: cannot find type 'URLRequest' in scope
let urlRequest: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:52:95: error: cannot find type 'URLRequest' in scope
func createRequest<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:119:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
let task = client.urlSession.dataTask(with: urlRequest, completionHandler: { (data, urlResponse, error) in
~~~~~~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:130:42: error: cannot convert value of type '_' to expected argument type 'Data?'
let serverError = parseErrorResponse(data, urlResponse: urlResponse as? HTTPURLResponse) ?? error
^
[21/26] Compiling WeTransfer CreateTransferOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:31:15: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:36:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
required init(session: URLSession) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:47:20: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: chunk.uploadURL)
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:49:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:49:83: error: unable to infer type of a closure parameter '_' in the current context
let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:49:86: error: unable to infer type of a closure parameter 'urlResponse' in the current context
let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:49:99: error: unable to infer type of a closure parameter 'error' in the current context
let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:54:86: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if let response = urlResponse as? HTTPURLResponse, !(200...299).contains(response.statusCode) {
~~~~~~~~ ^~~~~~~~~~
[22/26] Compiling WeTransfer Result.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:31:15: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:36:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
required init(session: URLSession) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:47:20: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: chunk.uploadURL)
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:49:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:49:83: error: unable to infer type of a closure parameter '_' in the current context
let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:49:86: error: unable to infer type of a closure parameter 'urlResponse' in the current context
let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:49:99: error: unable to infer type of a closure parameter 'error' in the current context
let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:54:86: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if let response = urlResponse as? HTTPURLResponse, !(200...299).contains(response.statusCode) {
~~~~~~~~ ^~~~~~~~~~
[23/26] Compiling WeTransfer UploadChunkOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:31:15: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:36:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
required init(session: URLSession) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:47:20: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: chunk.uploadURL)
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:49:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:49:83: error: unable to infer type of a closure parameter '_' in the current context
let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:49:86: error: unable to infer type of a closure parameter 'urlResponse' in the current context
let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:49:99: error: unable to infer type of a closure parameter 'error' in the current context
let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:54:86: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if let response = urlResponse as? HTTPURLResponse, !(200...299).contains(response.statusCode) {
~~~~~~~~ ^~~~~~~~~~
[24/26] Compiling WeTransfer UploadFileOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:31:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:39:69: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
required init(file: File, operationQueue: OperationQueue, session: URLSession) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:102:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:102:47: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:12:91: error: cannot find type 'URLSessionDataDelegate' in scope
final class UploadFilesOperation: ChainedAsynchronousResultOperation<Transfer, Transfer>, URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:52:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:52:50: error: cannot infer contextual base in reference to member 'ephemeral'
let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
~^~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:52:92: error: 'nil' requires a contextual type
let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
^
[25/26] Compiling WeTransfer UploadFilesOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:31:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:39:69: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
required init(file: File, operationQueue: OperationQueue, session: URLSession) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:102:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:102:47: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:12:91: error: cannot find type 'URLSessionDataDelegate' in scope
final class UploadFilesOperation: ChainedAsynchronousResultOperation<Transfer, Transfer>, URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:52:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:52:50: error: cannot infer contextual base in reference to member 'ephemeral'
let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
~^~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:52:92: error: 'nil' requires a contextual type
let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
^
[26/26] Compiling WeTransfer WeTransfer.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:31:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private let session: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:39:69: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
required init(file: File, operationQueue: OperationQueue, session: URLSession) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:102:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:102:47: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:12:91: error: cannot find type 'URLSessionDataDelegate' in scope
final class UploadFilesOperation: ChainedAsynchronousResultOperation<Transfer, Transfer>, URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:52:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:52:50: error: cannot infer contextual base in reference to member 'ephemeral'
let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
~^~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:52:92: error: 'nil' requires a contextual type
let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
^
error: fatalError
BUILD FAILURE 5.9 linux
Build Machine: Linux 2