The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

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

Build Command

bash -c docker run --rm -v "checkouts-4609320-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: v1.0.1
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
 * tag               v1.0.1     -> FETCH_HEAD
HEAD is now at 73fe433 Fixed guideline and visual errors in Package.swift
Submodule path 'Submodules/WeTransfer-iOS-CI': checked out 'de7710f6f26ea4268fe35d4373ebdb22663dc7eb'
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 @):
73fe433656ac446851cb9cf145a147a630fc3d62
SUCCESS checkout https://github.com/WeTransfer/WeTransfer-Swift-SDK.git at v1.0.1
========================================
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-4609320-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/25] Emitting module WeTransfer
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:67:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
                      ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                        ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                                     ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:58: error: cannot infer contextual base in reference to member 'default'
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                                                               ~^~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:77: error: 'nil' requires a contextual type
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                                                                                   ^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:97: error: 'nil' requires a contextual type
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                                                                                                       ^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:52:95: error: cannot find type 'URLRequest' in scope
        func createRequest<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil) throws -> URLRequest {
                                                                                                     ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:57: error: cannot find type 'URLRequest' in scope
        func authenticatedRequest(from request: URLRequest) -> URLRequest {
                                                               ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:42: error: cannot find type 'URLRequest' in scope
        func authenticatedRequest(from request: URLRequest) -> URLRequest {
                                                ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:57:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        static func parseErrorResponse(_ data: Data?, urlResponse: HTTPURLResponse?) -> Swift.Error? {
                                                                   ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousResultOperation.swift:14:26: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
        typealias ResultHandler<T> = ((_ result: Result<T>) -> Void)
                                ^
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousResultOperation.swift:12:40: note: 'T' previously declared here
open class AsynchronousResultOperation<T>: AsynchronousOperation {
                                       ^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:31:15: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        let session: URLSession
                     ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:36:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        required init(session: URLSession) {
                               ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:31:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        private let session: URLSession
                             ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:39:69: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        required init(file: File, operationQueue: OperationQueue, session: URLSession) {
                                                                           ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:102:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
                                   ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:102:47: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
                                                     ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:12:91: error: cannot find type 'URLSessionDataDelegate' in scope
final class UploadFilesOperation: ChainedAsynchronousResultOperation<Transfer, Transfer>, URLSessionDataDelegate {
                                                                                          ^~~~~~~~~~~~~~~~~~~~~~
[4/28] Compiling WeTransfer AddFiles.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:67:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
                      ^~~~~~~~~~
[5/28] Compiling WeTransfer Authorize.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:67:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
                      ^~~~~~~~~~
[6/28] Compiling WeTransfer CreateTransfer.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:67:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
                      ^~~~~~~~~~
[7/28] Compiling WeTransfer Chunk.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:67:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
                      ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                        ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                                     ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:58: error: cannot infer contextual base in reference to member 'default'
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                                                               ~^~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:77: error: 'nil' requires a contextual type
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                                                                                   ^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:97: error: 'nil' requires a contextual type
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                                                                                                       ^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:52:95: error: cannot find type 'URLRequest' in scope
        func createRequest<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil) throws -> URLRequest {
                                                                                                     ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:57:17: error: cannot find 'URLRequest' in scope
                var request = URLRequest(endpoint: endpoint, baseURL: baseURL, apiKey: apiKey)
                              ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:57: error: cannot find type 'URLRequest' in scope
        func authenticatedRequest(from request: URLRequest) -> URLRequest {
                                                               ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:42: error: cannot find type 'URLRequest' in scope
        func authenticatedRequest(from request: URLRequest) -> URLRequest {
                                                ^~~~~~~~~~
[8/28] Compiling WeTransfer File.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:67:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
                      ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                        ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                                     ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:58: error: cannot infer contextual base in reference to member 'default'
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                                                               ~^~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:77: error: 'nil' requires a contextual type
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                                                                                   ^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:97: error: 'nil' requires a contextual type
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                                                                                                       ^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:52:95: error: cannot find type 'URLRequest' in scope
        func createRequest<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil) throws -> URLRequest {
                                                                                                     ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:57:17: error: cannot find 'URLRequest' in scope
                var request = URLRequest(endpoint: endpoint, baseURL: baseURL, apiKey: apiKey)
                              ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:57: error: cannot find type 'URLRequest' in scope
        func authenticatedRequest(from request: URLRequest) -> URLRequest {
                                                               ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:42: error: cannot find type 'URLRequest' in scope
        func authenticatedRequest(from request: URLRequest) -> URLRequest {
                                                ^~~~~~~~~~
[9/28] Compiling WeTransfer Transfer.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:67:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
                      ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                        ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                                     ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:58: error: cannot infer contextual base in reference to member 'default'
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                                                               ~^~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:77: error: 'nil' requires a contextual type
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                                                                                   ^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:97: error: 'nil' requires a contextual type
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                                                                                                       ^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:52:95: error: cannot find type 'URLRequest' in scope
        func createRequest<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil) throws -> URLRequest {
                                                                                                     ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:57:17: error: cannot find 'URLRequest' in scope
                var request = URLRequest(endpoint: endpoint, baseURL: baseURL, apiKey: apiKey)
                              ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:57: error: cannot find type 'URLRequest' in scope
        func authenticatedRequest(from request: URLRequest) -> URLRequest {
                                                               ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:42: error: cannot find type 'URLRequest' in scope
        func authenticatedRequest(from request: URLRequest) -> URLRequest {
                                                ^~~~~~~~~~
[10/28] Compiling WeTransfer APIClient.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:67:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
                      ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                        ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                                     ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:58: error: cannot infer contextual base in reference to member 'default'
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                                                               ~^~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:77: error: 'nil' requires a contextual type
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                                                                                   ^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:97: error: 'nil' requires a contextual type
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                                                                                                       ^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:52:95: error: cannot find type 'URLRequest' in scope
        func createRequest<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil) throws -> URLRequest {
                                                                                                     ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:57:17: error: cannot find 'URLRequest' in scope
                var request = URLRequest(endpoint: endpoint, baseURL: baseURL, apiKey: apiKey)
                              ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:57: error: cannot find type 'URLRequest' in scope
        func authenticatedRequest(from request: URLRequest) -> URLRequest {
                                                               ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:42: error: cannot find type 'URLRequest' in scope
        func authenticatedRequest(from request: URLRequest) -> URLRequest {
                                                ^~~~~~~~~~
[11/28] 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 {
                                       ^
[12/28] 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 {
                                       ^
[13/28] 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 {
                                       ^
[14/28] Compiling WeTransfer CreateTransferOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:31:15: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        let session: URLSession
                     ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:36:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        required init(session: URLSession) {
                               ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:47:20: error: cannot find 'URLRequest' in scope
                var urlRequest = URLRequest(url: chunk.uploadURL)
                                 ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:49:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
                let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
                           ~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:49:83: error: 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) {
                                                                                                 ~~~~~~~~ ^~~~~~~~~~
[15/28] 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) {
                                                                                                 ~~~~~~~~ ^~~~~~~~~~
[16/28] 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) {
                                                                                                 ~~~~~~~~ ^~~~~~~~~~
[17/28] Compiling WeTransfer UploadFileOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:31:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        private let session: URLSession
                             ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:39:69: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        required init(file: File, operationQueue: OperationQueue, session: URLSession) {
                                                                           ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:102:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
                                   ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:102:47: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
                                                     ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:12:91: error: cannot find type 'URLSessionDataDelegate' in scope
final class UploadFilesOperation: ChainedAsynchronousResultOperation<Transfer, Transfer>, URLSessionDataDelegate {
                                                                                          ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:52:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
                let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
                                    ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:52:50: error: cannot infer contextual base in reference to member 'ephemeral'
                let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
                                                              ~^~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:52:92: error: 'nil' requires a contextual type
                let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
                                                                                                         ^
[18/28] Compiling WeTransfer UploadFilesOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:31:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        private let session: URLSession
                             ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:39:69: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        required init(file: File, operationQueue: OperationQueue, session: URLSession) {
                                                                           ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:102:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
                                   ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:102:47: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
                                                     ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:12:91: error: cannot find type 'URLSessionDataDelegate' in scope
final class UploadFilesOperation: ChainedAsynchronousResultOperation<Transfer, Transfer>, URLSessionDataDelegate {
                                                                                          ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:52:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
                let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
                                    ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:52:50: error: cannot infer contextual base in reference to member 'ephemeral'
                let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
                                                              ~^~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:52:92: error: 'nil' requires a contextual type
                let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
                                                                                                         ^
[19/28] Compiling WeTransfer WeTransfer.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:31:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        private let session: URLSession
                             ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:39:69: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        required init(file: File, operationQueue: OperationQueue, session: URLSession) {
                                                                           ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:102:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
                                   ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:102:47: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
                                                     ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:12:91: error: cannot find type 'URLSessionDataDelegate' in scope
final class UploadFilesOperation: ChainedAsynchronousResultOperation<Transfer, Transfer>, URLSessionDataDelegate {
                                                                                          ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:52:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
                let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
                                    ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:52:50: error: cannot infer contextual base in reference to member 'ephemeral'
                let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
                                                              ~^~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:52:92: error: 'nil' requires a contextual type
                let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
                                                                                                         ^
[20/28] Compiling WeTransfer AddFilesOperation.swift
[21/28] Compiling WeTransfer CompleteUploadOperation.swift
[22/28] Compiling WeTransfer CreateChunkOperation.swift
[23/28] Compiling WeTransfer Request.swift
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:57:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        static func parseErrorResponse(_ data: Data?, urlResponse: HTTPURLResponse?) -> Swift.Error? {
                                                                   ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:63:99: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                return RequestError.serverError(errorMessage: errorResponse.errorString, httpCode: urlResponse?.statusCode)
                                                                                                   ~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:67:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
                      ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:110:19: error: cannot find type 'URLRequest' in scope
                let urlRequest: URLRequest
                                ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:52:95: error: cannot find type 'URLRequest' in scope
        func createRequest<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil) throws -> URLRequest {
                                                                                                     ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:119:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
                let task = client.urlSession.dataTask(with: urlRequest, completionHandler: { (data, urlResponse, error) in
                           ~~~~~~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:130:42: error: cannot convert value of type '_' to expected argument type 'Data?'
                                let serverError = parseErrorResponse(data, urlResponse: urlResponse as? HTTPURLResponse) ?? error
                                                                     ^
[24/28] Compiling WeTransfer Upload.swift
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:57:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        static func parseErrorResponse(_ data: Data?, urlResponse: HTTPURLResponse?) -> Swift.Error? {
                                                                   ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:63:99: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                return RequestError.serverError(errorMessage: errorResponse.errorString, httpCode: urlResponse?.statusCode)
                                                                                                   ~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:67:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
                      ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:110:19: error: cannot find type 'URLRequest' in scope
                let urlRequest: URLRequest
                                ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:52:95: error: cannot find type 'URLRequest' in scope
        func createRequest<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil) throws -> URLRequest {
                                                                                                     ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:119:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
                let task = client.urlSession.dataTask(with: urlRequest, completionHandler: { (data, urlResponse, error) in
                           ~~~~~~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:130:42: error: cannot convert value of type '_' to expected argument type 'Data?'
                                let serverError = parseErrorResponse(data, urlResponse: urlResponse as? HTTPURLResponse) ?? error
                                                                     ^
[25/28] Compiling WeTransfer AsynchronousDependencyResultOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:57:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        static func parseErrorResponse(_ data: Data?, urlResponse: HTTPURLResponse?) -> Swift.Error? {
                                                                   ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:63:99: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                return RequestError.serverError(errorMessage: errorResponse.errorString, httpCode: urlResponse?.statusCode)
                                                                                                   ~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:67:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
                      ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:110:19: error: cannot find type 'URLRequest' in scope
                let urlRequest: URLRequest
                                ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:52:95: error: cannot find type 'URLRequest' in scope
        func createRequest<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil) throws -> URLRequest {
                                                                                                     ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:119:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
                let task = client.urlSession.dataTask(with: urlRequest, completionHandler: { (data, urlResponse, error) in
                           ~~~~~~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:130:42: error: cannot convert value of type '_' to expected argument type 'Data?'
                                let serverError = parseErrorResponse(data, urlResponse: urlResponse as? HTTPURLResponse) ?? error
                                                                     ^
[26/28] Compiling WeTransfer Authenticator.swift
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:57: error: cannot find type 'URLRequest' in scope
        func authenticatedRequest(from request: URLRequest) -> URLRequest {
                                                               ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:42: error: cannot find type 'URLRequest' in scope
        func authenticatedRequest(from request: URLRequest) -> URLRequest {
                                                ^~~~~~~~~~
[27/28] Compiling WeTransfer APIEndpoint.swift
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:57: error: cannot find type 'URLRequest' in scope
        func authenticatedRequest(from request: URLRequest) -> URLRequest {
                                                               ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:42: error: cannot find type 'URLRequest' in scope
        func authenticatedRequest(from request: URLRequest) -> URLRequest {
                                                ^~~~~~~~~~
[28/28] Compiling WeTransfer Endpoints.swift
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:57: error: cannot find type 'URLRequest' in scope
        func authenticatedRequest(from request: URLRequest) -> URLRequest {
                                                               ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:42: error: cannot find type 'URLRequest' in scope
        func authenticatedRequest(from request: URLRequest) -> URLRequest {
                                                ^~~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/19] 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:67:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
                      ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:110:19: error: cannot find type 'URLRequest' in scope
                let urlRequest: URLRequest
                                ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:52:95: error: cannot find type 'URLRequest' in scope
        func createRequest<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil) throws -> URLRequest {
                                                                                                     ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:119:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
                let task = client.urlSession.dataTask(with: urlRequest, completionHandler: { (data, urlResponse, error) in
                           ~~~~~~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:130:42: error: cannot convert value of type '_' to expected argument type 'Data?'
                                let serverError = parseErrorResponse(data, urlResponse: urlResponse as? HTTPURLResponse) ?? error
                                                                     ^
[3/19] Compiling WeTransfer Request.swift
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:57:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        static func parseErrorResponse(_ data: Data?, urlResponse: HTTPURLResponse?) -> Swift.Error? {
                                                                   ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:63:99: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                return RequestError.serverError(errorMessage: errorResponse.errorString, httpCode: urlResponse?.statusCode)
                                                                                                   ~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:67:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
                      ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:110:19: error: cannot find type 'URLRequest' in scope
                let urlRequest: URLRequest
                                ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:52:95: error: cannot find type 'URLRequest' in scope
        func createRequest<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil) throws -> URLRequest {
                                                                                                     ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:119:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
                let task = client.urlSession.dataTask(with: urlRequest, completionHandler: { (data, urlResponse, error) in
                           ~~~~~~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:130:42: error: cannot convert value of type '_' to expected argument type 'Data?'
                                let serverError = parseErrorResponse(data, urlResponse: urlResponse as? HTTPURLResponse) ?? error
                                                                     ^
[4/21] 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:31:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        private let session: URLSession
                             ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:39:69: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        required init(file: File, operationQueue: OperationQueue, session: URLSession) {
                                                                           ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
[5/21] 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:31:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        private let session: URLSession
                             ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:39:69: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        required init(file: File, operationQueue: OperationQueue, session: URLSession) {
                                                                           ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
[6/21] Compiling WeTransfer Upload.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:67:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
                      ^~~~~~~~~~
[7/21] Compiling WeTransfer AsynchronousDependencyResultOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:67:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
                      ^~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/21] Emitting module WeTransfer
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:67:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
                      ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                        ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                                     ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:58: error: cannot infer contextual base in reference to member 'default'
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                                                               ~^~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:77: error: 'nil' requires a contextual type
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                                                                                   ^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:97: error: 'nil' requires a contextual type
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                                                                                                       ^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:52:95: error: cannot find type 'URLRequest' in scope
        func createRequest<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil) throws -> URLRequest {
                                                                                                     ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:57: error: cannot find type 'URLRequest' in scope
        func authenticatedRequest(from request: URLRequest) -> URLRequest {
                                                               ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:42: error: cannot find type 'URLRequest' in scope
        func authenticatedRequest(from request: URLRequest) -> URLRequest {
                                                ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:57:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        static func parseErrorResponse(_ data: Data?, urlResponse: HTTPURLResponse?) -> Swift.Error? {
                                                                   ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousResultOperation.swift:14:26: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
        typealias ResultHandler<T> = ((_ result: Result<T>) -> Void)
                                ^
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousResultOperation.swift:12:40: note: 'T' previously declared here
open class AsynchronousResultOperation<T>: AsynchronousOperation {
                                       ^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:31:15: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        let session: URLSession
                     ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:36:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        required init(session: URLSession) {
                               ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:31:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        private let session: URLSession
                             ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:39:69: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        required init(file: File, operationQueue: OperationQueue, session: URLSession) {
                                                                           ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:102:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
                                   ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:102:47: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
                                                     ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:12:91: error: cannot find type 'URLSessionDataDelegate' in scope
final class UploadFilesOperation: ChainedAsynchronousResultOperation<Transfer, Transfer>, URLSessionDataDelegate {
                                                                                          ^~~~~~~~~~~~~~~~~~~~~~
[9/21] Compiling WeTransfer CreateTransferOperation.swift
[10/21] Compiling WeTransfer Result.swift
[11/21] Compiling WeTransfer Endpoints.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:67:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
                      ^~~~~~~~~~
[12/21] Compiling WeTransfer AddFiles.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:67:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
                      ^~~~~~~~~~
[13/21] Compiling WeTransfer Authorize.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:67:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
                      ^~~~~~~~~~
[14/21] Compiling WeTransfer APIClient.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:67:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
                      ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                        ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                                     ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:58: error: cannot infer contextual base in reference to member 'default'
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                                                               ~^~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:77: error: 'nil' requires a contextual type
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                                                                                   ^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:97: error: 'nil' requires a contextual type
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                                                                                                       ^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:52:95: error: cannot find type 'URLRequest' in scope
        func createRequest<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil) throws -> URLRequest {
                                                                                                     ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:57:17: error: cannot find 'URLRequest' in scope
                var request = URLRequest(endpoint: endpoint, baseURL: baseURL, apiKey: apiKey)
                              ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:57: error: cannot find type 'URLRequest' in scope
        func authenticatedRequest(from request: URLRequest) -> URLRequest {
                                                               ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:42: error: cannot find type 'URLRequest' in scope
        func authenticatedRequest(from request: URLRequest) -> URLRequest {
                                                ^~~~~~~~~~
[15/21] Compiling WeTransfer Authenticator.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:67:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
                      ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                        ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                                     ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:58: error: cannot infer contextual base in reference to member 'default'
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                                                               ~^~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:77: error: 'nil' requires a contextual type
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                                                                                   ^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:97: error: 'nil' requires a contextual type
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                                                                                                       ^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:52:95: error: cannot find type 'URLRequest' in scope
        func createRequest<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil) throws -> URLRequest {
                                                                                                     ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:57:17: error: cannot find 'URLRequest' in scope
                var request = URLRequest(endpoint: endpoint, baseURL: baseURL, apiKey: apiKey)
                              ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:57: error: cannot find type 'URLRequest' in scope
        func authenticatedRequest(from request: URLRequest) -> URLRequest {
                                                               ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:42: error: cannot find type 'URLRequest' in scope
        func authenticatedRequest(from request: URLRequest) -> URLRequest {
                                                ^~~~~~~~~~
[16/21] Compiling WeTransfer APIEndpoint.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:67:23: error: cannot find type 'URLRequest' in scope
fileprivate extension URLRequest {
                      ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                        ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                                     ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:58: error: cannot infer contextual base in reference to member 'default'
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                                                               ~^~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:77: error: 'nil' requires a contextual type
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                                                                                   ^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:97: error: 'nil' requires a contextual type
        let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
                                                                                                       ^
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:52:95: error: cannot find type 'URLRequest' in scope
        func createRequest<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil) throws -> URLRequest {
                                                                                                     ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:57:17: error: cannot find 'URLRequest' in scope
                var request = URLRequest(endpoint: endpoint, baseURL: baseURL, apiKey: apiKey)
                              ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:57: error: cannot find type 'URLRequest' in scope
        func authenticatedRequest(from request: URLRequest) -> URLRequest {
                                                               ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:42: error: cannot find type 'URLRequest' in scope
        func authenticatedRequest(from request: URLRequest) -> URLRequest {
                                                ^~~~~~~~~~
[17/26] Compiling WeTransfer UploadFilesOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:102:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
                                   ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:102:47: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
                                                     ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:12:91: error: cannot find type 'URLSessionDataDelegate' in scope
final class UploadFilesOperation: ChainedAsynchronousResultOperation<Transfer, Transfer>, URLSessionDataDelegate {
                                                                                          ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:52:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
                let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
                                    ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:52:50: error: cannot infer contextual base in reference to member 'ephemeral'
                let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
                                                              ~^~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:52:92: error: 'nil' requires a contextual type
                let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
                                                                                                         ^
[18/26] Compiling WeTransfer WeTransfer.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:102:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
                                   ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:102:47: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
                                                     ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:12:91: error: cannot find type 'URLSessionDataDelegate' in scope
final class UploadFilesOperation: ChainedAsynchronousResultOperation<Transfer, Transfer>, URLSessionDataDelegate {
                                                                                          ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:52:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
                let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
                                    ^~~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:52:50: error: cannot infer contextual base in reference to member 'ephemeral'
                let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
                                                              ~^~~~~~~~~
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:52:92: error: 'nil' requires a contextual type
                let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
                                                                                                         ^
[19/26] Compiling WeTransfer Chunk.swift
[20/26] Compiling WeTransfer File.swift
[21/26] Compiling WeTransfer Transfer.swift
[22/27] Compiling WeTransfer AddFilesOperation.swift
[23/27] Compiling WeTransfer CreateChunkOperation.swift
[24/27] 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 {
                                       ^
[25/27] Compiling WeTransfer CompleteUploadOperation.swift
[26/27] Compiling WeTransfer ChainedAsynchronousResultOperation.swift
[27/27] Compiling WeTransfer AsynchronousOperation.swift
error: fatalError
BUILD FAILURE 5.10 linux