Build Information
Failed to build WeTransfer-Swift-SDK with Swift 5.9 for Linux.
Build Command
docker run --rm -v "checkouts-4606859-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: master
Cloned https://github.com/WeTransfer/WeTransfer-Swift-SDK.git into spi-builder-workspace
SUCCESS checkout https://github.com/WeTransfer/WeTransfer-Swift-SDK.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
Building package at path: spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-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/28] Emitting module WeTransfer
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:68: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:33: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:41:94: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
required init(container: Transferable, 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:98: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:98: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:118: error: cannot find type 'URLSessionDataDelegate' in scope
final class UploadFilesOperation<Container: Transferable>: ChainedAsynchronousResultOperation<Container, Container>, URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
[2/31] Compiling WeTransfer Transferable.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:68: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 {
^~~~~~~~~~
[3/31] Compiling WeTransfer APIClient.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:68: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 {
^~~~~~~~~~
[4/31] Compiling WeTransfer Authenticator.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:68: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 {
^~~~~~~~~~
[5/31] Compiling WeTransfer APIEndpoint.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:68: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 {
^~~~~~~~~~
[6/31] Compiling WeTransfer Board.swift
[7/31] Compiling WeTransfer Chunk.swift
[8/31] Compiling WeTransfer File.swift
[9/31] Compiling WeTransfer Transfer.swift
[10/31] Compiling WeTransfer UploadFileOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:33: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:41:94: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
required init(container: Transferable, 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:98: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:98: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:118: error: cannot find type 'URLSessionDataDelegate' in scope
final class UploadFilesOperation<Container: Transferable>: ChainedAsynchronousResultOperation<Container, Container>, URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:48: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:48: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:48:92: error: 'nil' requires a contextual type
let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
^
[11/31] Compiling WeTransfer UploadFilesOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:33: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:41:94: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
required init(container: Transferable, 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:98: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:98: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:118: error: cannot find type 'URLSessionDataDelegate' in scope
final class UploadFilesOperation<Container: Transferable>: ChainedAsynchronousResultOperation<Container, Container>, URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:48: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:48: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:48:92: error: 'nil' requires a contextual type
let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
^
[12/31] Compiling WeTransfer WeTransfer.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:33: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:41:94: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
required init(container: Transferable, 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:98: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:98: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:118: error: cannot find type 'URLSessionDataDelegate' in scope
final class UploadFilesOperation<Container: Transferable>: ChainedAsynchronousResultOperation<Container, Container>, URLSessionDataDelegate {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:48: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:48: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:48:92: error: 'nil' requires a contextual type
let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
^
[13/31] Compiling WeTransfer FinalizeTransferOperation.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) {
~~~~~~~~ ^~~~~~~~~~
[14/31] 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) {
~~~~~~~~ ^~~~~~~~~~
[15/31] 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) {
~~~~~~~~ ^~~~~~~~~~
[16/31] Compiling WeTransfer CompleteUploadOperation.swift
[17/31] Compiling WeTransfer CreateBoardOperation.swift
[18/31] Compiling WeTransfer CreateChunkOperation.swift
[19/31] Compiling WeTransfer CreateTransferOperation.swift
[20/31] Compiling WeTransfer CreateTransfer.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:68: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/31] 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:68: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
^
[22/31] 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:68: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
^
[23/31] 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:68: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
^
[24/31] 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 {
^
[25/31] 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 {
^
[26/31] 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 {
^
[27/31] Compiling WeTransfer AddFilesOperation.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 {
^
[28/31] Compiling WeTransfer Endpoints.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:68:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
^~~~~~~~~~
[29/31] Compiling WeTransfer AddFiles.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:68:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
^~~~~~~~~~
[30/31] Compiling WeTransfer Authorize.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:68:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
^~~~~~~~~~
[31/31] Compiling WeTransfer CreateBoard.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:68:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
^~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux
Build Machine: Linux 1