The Swift Package Index logo.Swift Package Index

Build Information

Failed to build WeTransfer-Swift-SDK with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-1":/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/WeTransfer/WeTransfer-Swift-SDK.git
Reference: master
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/WeTransfer/WeTransfer-Swift-SDK
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 544be2c Update README.md
Submodule path 'Submodules/WeTransfer-iOS-CI': checked out '93c505b35871f453c2de159e963eb86ed781c21e'
Submodule 'Submodules/WeTransfer-iOS-CI' (https://github.com/WeTransfer/WeTransfer-iOS-CI.git) registered for path 'Submodules/WeTransfer-iOS-CI'
Cloning into '/host/spi-builder-workspace/Submodules/WeTransfer-iOS-CI'...
Cloned https://github.com/WeTransfer/WeTransfer-Swift-SDK.git
Revision (git rev-parse @):
544be2c72378431cf2ea5ef115d9386127cdf73c
SUCCESS checkout https://github.com/WeTransfer/WeTransfer-Swift-SDK.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/WeTransfer/WeTransfer-Swift-SDK.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/30] 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 {
                                                                                                                     ^~~~~~~~~~~~~~~~~~~~~~
[4/33] Compiling WeTransfer Board.swift
[5/33] Compiling WeTransfer Chunk.swift
[6/33] Compiling WeTransfer File.swift
[7/33] Compiling WeTransfer Transfer.swift
[8/33] 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 {
                                                ^~~~~~~~~~
[9/33] 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 {
                                                ^~~~~~~~~~
[10/33] 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 {
                                                ^~~~~~~~~~
[11/33] 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 {
                                                ^~~~~~~~~~
[12/33] 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
                                                                     ^
[13/33] 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
                                                                     ^
[14/33] 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
                                                                     ^
[15/33] 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
                                                                     ^
[16/33] Compiling WeTransfer Endpoints.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:68:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
                      ^~~~~~~~~~
[17/33] Compiling WeTransfer AddFiles.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:68:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
                      ^~~~~~~~~~
[18/33] Compiling WeTransfer Authorize.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:68:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
                      ^~~~~~~~~~
[19/33] Compiling WeTransfer CreateBoard.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:68:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
                      ^~~~~~~~~~
[20/33] 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 {
                                       ^
[21/33] 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 {
                                       ^
[22/33] 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 {
                                       ^
[23/33] 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 {
                                       ^
[24/33] 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)
                                                                                                         ^
[25/33] 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)
                                                                                                         ^
[26/33] 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)
                                                                                                         ^
[27/33] Compiling WeTransfer CompleteUploadOperation.swift
[28/33] Compiling WeTransfer CreateBoardOperation.swift
[29/33] Compiling WeTransfer CreateChunkOperation.swift
[30/33] Compiling WeTransfer CreateTransferOperation.swift
[31/33] 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: cannot infer type of closure parameter '_' without a type annotation
                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: cannot infer type of closure parameter 'urlResponse' without a type annotation
                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: cannot infer type of closure parameter 'error' without a type annotation
                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) {
                                                                                                 ~~~~~~~~ ^~~~~~~~~~
[32/33] 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: cannot infer type of closure parameter '_' without a type annotation
                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: cannot infer type of closure parameter 'urlResponse' without a type annotation
                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: cannot infer type of closure parameter 'error' without a type annotation
                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) {
                                                                                                 ~~~~~~~~ ^~~~~~~~~~
[33/33] 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: cannot infer type of closure parameter '_' without a type annotation
                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: cannot infer type of closure parameter 'urlResponse' without a type annotation
                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: cannot infer type of closure parameter 'error' without a type annotation
                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) {
                                                                                                 ~~~~~~~~ ^~~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/18] 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: cannot infer type of closure parameter '_' without a type annotation
                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: cannot infer type of closure parameter 'urlResponse' without a type annotation
                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: cannot infer type of closure parameter 'error' without a type annotation
                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) {
                                                                                                 ~~~~~~~~ ^~~~~~~~~~
/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
                 ^
[3/18] Compiling WeTransfer UploadFileOperation.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: cannot infer type of closure parameter '_' without a type annotation
                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: cannot infer type of closure parameter 'urlResponse' without a type annotation
                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: cannot infer type of closure parameter 'error' without a type annotation
                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) {
                                                                                                 ~~~~~~~~ ^~~~~~~~~~
/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
                 ^
[4/20] Compiling WeTransfer Upload.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:68:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
                      ^~~~~~~~~~
[5/20] Compiling WeTransfer AsynchronousDependencyResultOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:68:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
                      ^~~~~~~~~~
[6/20] Compiling WeTransfer FinalizeTransferOperation.swift
[7/20] Compiling WeTransfer Result.swift
[8/22] 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 {
                                                ^~~~~~~~~~
[9/22] 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 {
                                                ^~~~~~~~~~
[10/22] 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 {
                                                ^~~~~~~~~~
[11/23] Compiling WeTransfer UploadFilesOperation.swift
/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/23] Compiling WeTransfer WeTransfer.swift
/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/24] Compiling WeTransfer AddFilesOperation.swift
[14/25] Compiling WeTransfer ChainedAsynchronousResultOperation.swift
[15/25] 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 {
                                       ^
[16/27] Compiling WeTransfer CreateBoardOperation.swift
[17/27] Compiling WeTransfer CompleteUploadOperation.swift
[18/27] Compiling WeTransfer CreateTransferOperation.swift
[19/27] Compiling WeTransfer CreateChunkOperation.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[20/27] 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 {
                                                                                                                     ^~~~~~~~~~~~~~~~~~~~~~
[21/27] Compiling WeTransfer Authorize.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:68:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
                      ^~~~~~~~~~
[22/27] Compiling WeTransfer CreateBoard.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:68:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
                      ^~~~~~~~~~
[23/27] 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
                                                                     ^
[24/27] 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
                                                                     ^
[25/27] Compiling WeTransfer APIEndpoint.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:68:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
                      ^~~~~~~~~~
[26/27] Compiling WeTransfer Endpoints.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:68:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
                      ^~~~~~~~~~
[27/27] Compiling WeTransfer AddFiles.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.10 linux

Build Machine: Linux 1