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, reference master (544be2), with Swift 6.1 for Linux on 25 Apr 2025 09:41:14 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:63:99: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 61 | 				return nil
 62 | 		}
 63 | 		return RequestError.serverError(errorMessage: errorResponse.errorString, httpCode: urlResponse?.statusCode)
    |                                                                                                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 64 | 	}
 65 |
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:110:19: error: cannot find type 'URLRequest' in scope
108 |
109 | 		// Create the request with the enpoint and optional data
110 | 		let urlRequest: URLRequest
    |                   `- error: cannot find type 'URLRequest' in scope
111 | 		do {
112 | 			urlRequest = try client.createRequest(endpoint, data: data)
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:52:95: error: cannot find type 'URLRequest' in scope
50 | 	/// - Returns: URLRequest pointing to URL with appropriate HTTP method set
51 | 	/// - Throws: `WeTransfer.Error` when not configured or not authorized
52 | 	func createRequest<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil) throws -> URLRequest {
   |                                                                                               `- error: cannot find type 'URLRequest' in scope
53 | 		guard let apiKey = apiKey, let baseURL = baseURL else {
54 | 			throw WeTransfer.Error.notConfigured
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:119:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
117 |
118 | 		// Create and start a dataTask, after which the reponse is decoded to the Response type
119 | 		let task = client.urlSession.dataTask(with: urlRequest, completionHandler: { (data, urlResponse, error) in
    |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
120 | 			do {
121 | 				if let error = error {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousDependencyResultOperation.swift:12:12: warning: class 'AsynchronousDependencyResultOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// An asynchronous operation which will always have a result after completion.
12 | open class AsynchronousDependencyResultOperation<T>: AsynchronousResultOperation<T> {
   |            `- warning: class 'AsynchronousDependencyResultOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	open override func execute() {
[14/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.
 55 | 	///   - urlResponse: Response description, from which a status code can be read
 56 | 	/// - Returns: An error if type RequestError.serverEror if error response could be parsed
 57 | 	static func parseErrorResponse(_ data: Data?, urlResponse: HTTPURLResponse?) -> Swift.Error? {
    |                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 | 		guard let data = data,
 59 | 			let errorResponse = try? client.decoder.decode(ErrorResponse.self, from: data),
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:63:99: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 61 | 				return nil
 62 | 		}
 63 | 		return RequestError.serverError(errorMessage: errorResponse.errorString, httpCode: urlResponse?.statusCode)
    |                                                                                                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 64 | 	}
 65 |
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:110:19: error: cannot find type 'URLRequest' in scope
108 |
109 | 		// Create the request with the enpoint and optional data
110 | 		let urlRequest: URLRequest
    |                   `- error: cannot find type 'URLRequest' in scope
111 | 		do {
112 | 			urlRequest = try client.createRequest(endpoint, data: data)
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:52:95: error: cannot find type 'URLRequest' in scope
50 | 	/// - Returns: URLRequest pointing to URL with appropriate HTTP method set
51 | 	/// - Throws: `WeTransfer.Error` when not configured or not authorized
52 | 	func createRequest<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil) throws -> URLRequest {
   |                                                                                               `- error: cannot find type 'URLRequest' in scope
53 | 		guard let apiKey = apiKey, let baseURL = baseURL else {
54 | 			throw WeTransfer.Error.notConfigured
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:119:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
117 |
118 | 		// Create and start a dataTask, after which the reponse is decoded to the Response type
119 | 		let task = client.urlSession.dataTask(with: urlRequest, completionHandler: { (data, urlResponse, error) in
    |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
120 | 			do {
121 | 				if let error = error {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousDependencyResultOperation.swift:12:12: warning: class 'AsynchronousDependencyResultOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// An asynchronous operation which will always have a result after completion.
12 | open class AsynchronousDependencyResultOperation<T>: AsynchronousResultOperation<T> {
   |            `- warning: class 'AsynchronousDependencyResultOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	open override func execute() {
[15/33] Compiling WeTransfer CompleteUploadOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/CompleteUploadOperation.swift:12:13: warning: class 'CompleteUploadOperation' must restate inherited '@unchecked Sendable' conformance
 10 |
 11 | /// Completes the upload of each file in a transfer. Typically used in `UploadFileOperation` after all the file's chunks have been uploaded
 12 | final class CompleteUploadOperation: AsynchronousResultOperation<File> {
    |             `- warning: class 'CompleteUploadOperation' must restate inherited '@unchecked Sendable' conformance
 13 |
 14 | 	enum Error: Swift.Error, LocalizedError {
/host/spi-builder-workspace/WeTransfer/Server/Operations/CreateBoardOperation.swift:13:13: warning: class 'CreateBoardOperation' must restate inherited '@unchecked Sendable' conformance
11 | /// Operation responsible for creating the transfer on the server and providing the given transfer object with an identifier and URL when succeeded.
12 | /// This operation does not handle the requests necessary to add files to the server side transfer, which `AddFilesOperation` is responsible for
13 | final class CreateBoardOperation: AsynchronousResultOperation<Board> {
   |             `- warning: class 'CreateBoardOperation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | 	private let board: Board
/host/spi-builder-workspace/WeTransfer/Server/Operations/CreateChunkOperation.swift:12:13: warning: class 'CreateChunkOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// Creates a chunk of a file to be uploaded. Designed to be used right before `UploadChunkOperation`
12 | final class CreateChunkOperation: AsynchronousResultOperation<Chunk> {
   |             `- warning: class 'CreateChunkOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	enum Error: Swift.Error, LocalizedError {
/host/spi-builder-workspace/WeTransfer/Server/Operations/CreateTransferOperation.swift:13:13: warning: class 'CreateTransferOperation' must restate inherited '@unchecked Sendable' conformance
11 | /// Operation responsible for creating the transfer on the server and providing the given transfer object with an identifier and URL when succeeded.
12 | /// This operation does not handle the requests necessary to add files to the server side transfer, which `AddFilesOperation` is responsible for
13 | final class CreateTransferOperation: AsynchronousResultOperation<Transfer> {
   |             `- warning: class 'CreateTransferOperation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | 	enum Error: Swift.Error, LocalizedError {
[16/33] Compiling WeTransfer CreateBoardOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/CompleteUploadOperation.swift:12:13: warning: class 'CompleteUploadOperation' must restate inherited '@unchecked Sendable' conformance
 10 |
 11 | /// Completes the upload of each file in a transfer. Typically used in `UploadFileOperation` after all the file's chunks have been uploaded
 12 | final class CompleteUploadOperation: AsynchronousResultOperation<File> {
    |             `- warning: class 'CompleteUploadOperation' must restate inherited '@unchecked Sendable' conformance
 13 |
 14 | 	enum Error: Swift.Error, LocalizedError {
/host/spi-builder-workspace/WeTransfer/Server/Operations/CreateBoardOperation.swift:13:13: warning: class 'CreateBoardOperation' must restate inherited '@unchecked Sendable' conformance
11 | /// Operation responsible for creating the transfer on the server and providing the given transfer object with an identifier and URL when succeeded.
12 | /// This operation does not handle the requests necessary to add files to the server side transfer, which `AddFilesOperation` is responsible for
13 | final class CreateBoardOperation: AsynchronousResultOperation<Board> {
   |             `- warning: class 'CreateBoardOperation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | 	private let board: Board
/host/spi-builder-workspace/WeTransfer/Server/Operations/CreateChunkOperation.swift:12:13: warning: class 'CreateChunkOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// Creates a chunk of a file to be uploaded. Designed to be used right before `UploadChunkOperation`
12 | final class CreateChunkOperation: AsynchronousResultOperation<Chunk> {
   |             `- warning: class 'CreateChunkOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	enum Error: Swift.Error, LocalizedError {
/host/spi-builder-workspace/WeTransfer/Server/Operations/CreateTransferOperation.swift:13:13: warning: class 'CreateTransferOperation' must restate inherited '@unchecked Sendable' conformance
11 | /// Operation responsible for creating the transfer on the server and providing the given transfer object with an identifier and URL when succeeded.
12 | /// This operation does not handle the requests necessary to add files to the server side transfer, which `AddFilesOperation` is responsible for
13 | final class CreateTransferOperation: AsynchronousResultOperation<Transfer> {
   |             `- warning: class 'CreateTransferOperation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | 	enum Error: Swift.Error, LocalizedError {
[17/33] Compiling WeTransfer CreateChunkOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/CompleteUploadOperation.swift:12:13: warning: class 'CompleteUploadOperation' must restate inherited '@unchecked Sendable' conformance
 10 |
 11 | /// Completes the upload of each file in a transfer. Typically used in `UploadFileOperation` after all the file's chunks have been uploaded
 12 | final class CompleteUploadOperation: AsynchronousResultOperation<File> {
    |             `- warning: class 'CompleteUploadOperation' must restate inherited '@unchecked Sendable' conformance
 13 |
 14 | 	enum Error: Swift.Error, LocalizedError {
/host/spi-builder-workspace/WeTransfer/Server/Operations/CreateBoardOperation.swift:13:13: warning: class 'CreateBoardOperation' must restate inherited '@unchecked Sendable' conformance
11 | /// Operation responsible for creating the transfer on the server and providing the given transfer object with an identifier and URL when succeeded.
12 | /// This operation does not handle the requests necessary to add files to the server side transfer, which `AddFilesOperation` is responsible for
13 | final class CreateBoardOperation: AsynchronousResultOperation<Board> {
   |             `- warning: class 'CreateBoardOperation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | 	private let board: Board
/host/spi-builder-workspace/WeTransfer/Server/Operations/CreateChunkOperation.swift:12:13: warning: class 'CreateChunkOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// Creates a chunk of a file to be uploaded. Designed to be used right before `UploadChunkOperation`
12 | final class CreateChunkOperation: AsynchronousResultOperation<Chunk> {
   |             `- warning: class 'CreateChunkOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	enum Error: Swift.Error, LocalizedError {
/host/spi-builder-workspace/WeTransfer/Server/Operations/CreateTransferOperation.swift:13:13: warning: class 'CreateTransferOperation' must restate inherited '@unchecked Sendable' conformance
11 | /// Operation responsible for creating the transfer on the server and providing the given transfer object with an identifier and URL when succeeded.
12 | /// This operation does not handle the requests necessary to add files to the server side transfer, which `AddFilesOperation` is responsible for
13 | final class CreateTransferOperation: AsynchronousResultOperation<Transfer> {
   |             `- warning: class 'CreateTransferOperation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | 	enum Error: Swift.Error, LocalizedError {
[18/33] Compiling WeTransfer CreateTransferOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/CompleteUploadOperation.swift:12:13: warning: class 'CompleteUploadOperation' must restate inherited '@unchecked Sendable' conformance
 10 |
 11 | /// Completes the upload of each file in a transfer. Typically used in `UploadFileOperation` after all the file's chunks have been uploaded
 12 | final class CompleteUploadOperation: AsynchronousResultOperation<File> {
    |             `- warning: class 'CompleteUploadOperation' must restate inherited '@unchecked Sendable' conformance
 13 |
 14 | 	enum Error: Swift.Error, LocalizedError {
/host/spi-builder-workspace/WeTransfer/Server/Operations/CreateBoardOperation.swift:13:13: warning: class 'CreateBoardOperation' must restate inherited '@unchecked Sendable' conformance
11 | /// Operation responsible for creating the transfer on the server and providing the given transfer object with an identifier and URL when succeeded.
12 | /// This operation does not handle the requests necessary to add files to the server side transfer, which `AddFilesOperation` is responsible for
13 | final class CreateBoardOperation: AsynchronousResultOperation<Board> {
   |             `- warning: class 'CreateBoardOperation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | 	private let board: Board
/host/spi-builder-workspace/WeTransfer/Server/Operations/CreateChunkOperation.swift:12:13: warning: class 'CreateChunkOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// Creates a chunk of a file to be uploaded. Designed to be used right before `UploadChunkOperation`
12 | final class CreateChunkOperation: AsynchronousResultOperation<Chunk> {
   |             `- warning: class 'CreateChunkOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	enum Error: Swift.Error, LocalizedError {
/host/spi-builder-workspace/WeTransfer/Server/Operations/CreateTransferOperation.swift:13:13: warning: class 'CreateTransferOperation' must restate inherited '@unchecked Sendable' conformance
11 | /// Operation responsible for creating the transfer on the server and providing the given transfer object with an identifier and URL when succeeded.
12 | /// This operation does not handle the requests necessary to add files to the server side transfer, which `AddFilesOperation` is responsible for
13 | final class CreateTransferOperation: AsynchronousResultOperation<Transfer> {
   |             `- warning: class 'CreateTransferOperation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | 	enum Error: Swift.Error, LocalizedError {
[19/33] Compiling WeTransfer AsynchronousOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:12:12: warning: class 'AsynchronousOperation' must restate inherited '@unchecked Sendable' conformance
 10 |
 11 | /// A base class to handle NSOperation states, because this is quite verbose due to KVO and the combined attribute states.
 12 | open class AsynchronousOperation: Operation {
    |            `- warning: class 'AsynchronousOperation' must restate inherited '@unchecked Sendable' conformance
 13 |
 14 | 	// MARK: - Types
/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 the Swift 6 language mode
10 |
11 | /// An asynchronous operation which will always have a result after completion.
12 | open class AsynchronousResultOperation<T>: AsynchronousOperation {
   |                                        `- note: 'T' previously declared here
13 |
14 | 	typealias ResultHandler<T> = ((_ result: Result<T>) -> Void)
   |                          `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
15 |
16 | 	enum Error: Swift.Error {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousResultOperation.swift:12:12: warning: class 'AsynchronousResultOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// An asynchronous operation which will always have a result after completion.
12 | open class AsynchronousResultOperation<T>: AsynchronousOperation {
   |            `- warning: class 'AsynchronousResultOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	typealias ResultHandler<T> = ((_ result: Result<T>) -> Void)
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/ChainedAsynchronousResultOperation.swift:12:12: warning: class 'ChainedAsynchronousResultOperation' must restate inherited '@unchecked Sendable' conformance
 10 |
 11 | // An asynchronous operation which is dependent on a parent operation for its input.
 12 | open class ChainedAsynchronousResultOperation<Input, Output>: AsynchronousResultOperation<Output> {
    |            `- warning: class 'ChainedAsynchronousResultOperation' must restate inherited '@unchecked Sendable' conformance
 13 |
 14 | 	public enum Error: Swift.Error {
/host/spi-builder-workspace/WeTransfer/Server/Operations/AddFilesOperation.swift:13:13: warning: class 'AddFilesOperation' must restate inherited '@unchecked Sendable' conformance
11 | /// Operation responsible for adding files to the provided board object and on the server as well. When succeeded, the files will be updated with the appropriate data like identifiers and information about the chunks.
12 | /// - Note: The files will be added to the provided board object when the operation has started executing
13 | final class AddFilesOperation: ChainedAsynchronousResultOperation<Board, Board> {
   |             `- warning: class 'AddFilesOperation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | 	enum Error: Swift.Error, LocalizedError {
[20/33] Compiling WeTransfer AsynchronousResultOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:12:12: warning: class 'AsynchronousOperation' must restate inherited '@unchecked Sendable' conformance
 10 |
 11 | /// A base class to handle NSOperation states, because this is quite verbose due to KVO and the combined attribute states.
 12 | open class AsynchronousOperation: Operation {
    |            `- warning: class 'AsynchronousOperation' must restate inherited '@unchecked Sendable' conformance
 13 |
 14 | 	// MARK: - Types
/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 the Swift 6 language mode
10 |
11 | /// An asynchronous operation which will always have a result after completion.
12 | open class AsynchronousResultOperation<T>: AsynchronousOperation {
   |                                        `- note: 'T' previously declared here
13 |
14 | 	typealias ResultHandler<T> = ((_ result: Result<T>) -> Void)
   |                          `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
15 |
16 | 	enum Error: Swift.Error {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousResultOperation.swift:12:12: warning: class 'AsynchronousResultOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// An asynchronous operation which will always have a result after completion.
12 | open class AsynchronousResultOperation<T>: AsynchronousOperation {
   |            `- warning: class 'AsynchronousResultOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	typealias ResultHandler<T> = ((_ result: Result<T>) -> Void)
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/ChainedAsynchronousResultOperation.swift:12:12: warning: class 'ChainedAsynchronousResultOperation' must restate inherited '@unchecked Sendable' conformance
 10 |
 11 | // An asynchronous operation which is dependent on a parent operation for its input.
 12 | open class ChainedAsynchronousResultOperation<Input, Output>: AsynchronousResultOperation<Output> {
    |            `- warning: class 'ChainedAsynchronousResultOperation' must restate inherited '@unchecked Sendable' conformance
 13 |
 14 | 	public enum Error: Swift.Error {
/host/spi-builder-workspace/WeTransfer/Server/Operations/AddFilesOperation.swift:13:13: warning: class 'AddFilesOperation' must restate inherited '@unchecked Sendable' conformance
11 | /// Operation responsible for adding files to the provided board object and on the server as well. When succeeded, the files will be updated with the appropriate data like identifiers and information about the chunks.
12 | /// - Note: The files will be added to the provided board object when the operation has started executing
13 | final class AddFilesOperation: ChainedAsynchronousResultOperation<Board, Board> {
   |             `- warning: class 'AddFilesOperation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | 	enum Error: Swift.Error, LocalizedError {
[21/33] Compiling WeTransfer ChainedAsynchronousResultOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:12:12: warning: class 'AsynchronousOperation' must restate inherited '@unchecked Sendable' conformance
 10 |
 11 | /// A base class to handle NSOperation states, because this is quite verbose due to KVO and the combined attribute states.
 12 | open class AsynchronousOperation: Operation {
    |            `- warning: class 'AsynchronousOperation' must restate inherited '@unchecked Sendable' conformance
 13 |
 14 | 	// MARK: - Types
/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 the Swift 6 language mode
10 |
11 | /// An asynchronous operation which will always have a result after completion.
12 | open class AsynchronousResultOperation<T>: AsynchronousOperation {
   |                                        `- note: 'T' previously declared here
13 |
14 | 	typealias ResultHandler<T> = ((_ result: Result<T>) -> Void)
   |                          `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
15 |
16 | 	enum Error: Swift.Error {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousResultOperation.swift:12:12: warning: class 'AsynchronousResultOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// An asynchronous operation which will always have a result after completion.
12 | open class AsynchronousResultOperation<T>: AsynchronousOperation {
   |            `- warning: class 'AsynchronousResultOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	typealias ResultHandler<T> = ((_ result: Result<T>) -> Void)
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/ChainedAsynchronousResultOperation.swift:12:12: warning: class 'ChainedAsynchronousResultOperation' must restate inherited '@unchecked Sendable' conformance
 10 |
 11 | // An asynchronous operation which is dependent on a parent operation for its input.
 12 | open class ChainedAsynchronousResultOperation<Input, Output>: AsynchronousResultOperation<Output> {
    |            `- warning: class 'ChainedAsynchronousResultOperation' must restate inherited '@unchecked Sendable' conformance
 13 |
 14 | 	public enum Error: Swift.Error {
/host/spi-builder-workspace/WeTransfer/Server/Operations/AddFilesOperation.swift:13:13: warning: class 'AddFilesOperation' must restate inherited '@unchecked Sendable' conformance
11 | /// Operation responsible for adding files to the provided board object and on the server as well. When succeeded, the files will be updated with the appropriate data like identifiers and information about the chunks.
12 | /// - Note: The files will be added to the provided board object when the operation has started executing
13 | final class AddFilesOperation: ChainedAsynchronousResultOperation<Board, Board> {
   |             `- warning: class 'AddFilesOperation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | 	enum Error: Swift.Error, LocalizedError {
[22/33] Compiling WeTransfer AddFilesOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:12:12: warning: class 'AsynchronousOperation' must restate inherited '@unchecked Sendable' conformance
 10 |
 11 | /// A base class to handle NSOperation states, because this is quite verbose due to KVO and the combined attribute states.
 12 | open class AsynchronousOperation: Operation {
    |            `- warning: class 'AsynchronousOperation' must restate inherited '@unchecked Sendable' conformance
 13 |
 14 | 	// MARK: - Types
/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 the Swift 6 language mode
10 |
11 | /// An asynchronous operation which will always have a result after completion.
12 | open class AsynchronousResultOperation<T>: AsynchronousOperation {
   |                                        `- note: 'T' previously declared here
13 |
14 | 	typealias ResultHandler<T> = ((_ result: Result<T>) -> Void)
   |                          `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
15 |
16 | 	enum Error: Swift.Error {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousResultOperation.swift:12:12: warning: class 'AsynchronousResultOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// An asynchronous operation which will always have a result after completion.
12 | open class AsynchronousResultOperation<T>: AsynchronousOperation {
   |            `- warning: class 'AsynchronousResultOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	typealias ResultHandler<T> = ((_ result: Result<T>) -> Void)
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/ChainedAsynchronousResultOperation.swift:12:12: warning: class 'ChainedAsynchronousResultOperation' must restate inherited '@unchecked Sendable' conformance
 10 |
 11 | // An asynchronous operation which is dependent on a parent operation for its input.
 12 | open class ChainedAsynchronousResultOperation<Input, Output>: AsynchronousResultOperation<Output> {
    |            `- warning: class 'ChainedAsynchronousResultOperation' must restate inherited '@unchecked Sendable' conformance
 13 |
 14 | 	public enum Error: Swift.Error {
/host/spi-builder-workspace/WeTransfer/Server/Operations/AddFilesOperation.swift:13:13: warning: class 'AddFilesOperation' must restate inherited '@unchecked Sendable' conformance
11 | /// Operation responsible for adding files to the provided board object and on the server as well. When succeeded, the files will be updated with the appropriate data like identifiers and information about the chunks.
12 | /// - Note: The files will be added to the provided board object when the operation has started executing
13 | final class AddFilesOperation: ChainedAsynchronousResultOperation<Board, Board> {
   |             `- warning: class 'AddFilesOperation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | 	enum Error: Swift.Error, LocalizedError {
[23/33] Compiling WeTransfer FinalizeTransferOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/FinalizeTransferOperation.swift:12:13: warning: class 'FinalizeTransferOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// Finalizes the provided Transfer after all files have been uploaded. The Transfer object will be updated with a URL as a result.
12 | final class FinalizeTransferOperation: ChainedAsynchronousResultOperation<Transfer, Transfer> {
   |             `- warning: class 'FinalizeTransferOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	/// Initializes the operation with a transfer. When initalized as part of a chain this operation can be initialized without any arguments
/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.
29 |
30 | 	/// URLSession handling the creation and actual uploading of the chunk
31 | 	let session: URLSession
   |               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | 	/// Initializes the operation with a session which handles the actual uploading part
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
34 | 	///
35 | 	/// - Parameter session: `URLSession` that should create and be responsible of the actual uploading part
36 | 	required init(session: URLSession) {
   |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | 		self.session = session
38 | 		super.init()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:12:13: warning: class 'UploadChunkOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// Uploads the chunk that resulted from the dependant `CreateChunkOperation`. The uploading is handled by the provided `URLSession`
12 | final class UploadChunkOperation: ChainedAsynchronousResultOperation<Chunk, Chunk> {
   |             `- warning: class 'UploadChunkOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	enum Error: Swift.Error, LocalizedError {
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:47:20: error: cannot find 'URLRequest' in scope
45 | 		}
46 |
47 | 		var urlRequest = URLRequest(url: chunk.uploadURL)
   |                    `- error: cannot find 'URLRequest' in scope
48 | 		urlRequest.httpMethod = "PUT"
49 | 		let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:49:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
47 | 		var urlRequest = URLRequest(url: chunk.uploadURL)
48 | 		urlRequest.httpMethod = "PUT"
49 | 		let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
   |                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
50 | 			if let error = error {
51 | 				self?.finish(with: .failure(error))
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:49:83: error: cannot infer type of closure parameter '_' without a type annotation
47 | 		var urlRequest = URLRequest(url: chunk.uploadURL)
48 | 		urlRequest.httpMethod = "PUT"
49 | 		let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
   |                                                                                   `- error: cannot infer type of closure parameter '_' without a type annotation
50 | 			if let error = error {
51 | 				self?.finish(with: .failure(error))
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:49:86: error: cannot infer type of closure parameter 'urlResponse' without a type annotation
47 | 		var urlRequest = URLRequest(url: chunk.uploadURL)
48 | 		urlRequest.httpMethod = "PUT"
49 | 		let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
   |                                                                                      `- error: cannot infer type of closure parameter 'urlResponse' without a type annotation
50 | 			if let error = error {
51 | 				self?.finish(with: .failure(error))
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:49:99: error: cannot infer type of closure parameter 'error' without a type annotation
47 | 		var urlRequest = URLRequest(url: chunk.uploadURL)
48 | 		urlRequest.httpMethod = "PUT"
49 | 		let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
   |                                                                                                   `- error: cannot infer type of closure parameter 'error' without a type annotation
50 | 			if let error = error {
51 | 				self?.finish(with: .failure(error))
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:54:86: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | 				return
53 | 			}
54 | 			if let response = urlResponse as? HTTPURLResponse, !(200...299).contains(response.statusCode) {
   |                                                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | 				self?.finish(with: .failure(Error.uploadFailed))
56 | 				return
[24/33] Compiling WeTransfer Result.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/FinalizeTransferOperation.swift:12:13: warning: class 'FinalizeTransferOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// Finalizes the provided Transfer after all files have been uploaded. The Transfer object will be updated with a URL as a result.
12 | final class FinalizeTransferOperation: ChainedAsynchronousResultOperation<Transfer, Transfer> {
   |             `- warning: class 'FinalizeTransferOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	/// Initializes the operation with a transfer. When initalized as part of a chain this operation can be initialized without any arguments
/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.
29 |
30 | 	/// URLSession handling the creation and actual uploading of the chunk
31 | 	let session: URLSession
   |               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | 	/// Initializes the operation with a session which handles the actual uploading part
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
34 | 	///
35 | 	/// - Parameter session: `URLSession` that should create and be responsible of the actual uploading part
36 | 	required init(session: URLSession) {
   |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | 		self.session = session
38 | 		super.init()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:12:13: warning: class 'UploadChunkOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// Uploads the chunk that resulted from the dependant `CreateChunkOperation`. The uploading is handled by the provided `URLSession`
12 | final class UploadChunkOperation: ChainedAsynchronousResultOperation<Chunk, Chunk> {
   |             `- warning: class 'UploadChunkOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	enum Error: Swift.Error, LocalizedError {
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:47:20: error: cannot find 'URLRequest' in scope
45 | 		}
46 |
47 | 		var urlRequest = URLRequest(url: chunk.uploadURL)
   |                    `- error: cannot find 'URLRequest' in scope
48 | 		urlRequest.httpMethod = "PUT"
49 | 		let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:49:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
47 | 		var urlRequest = URLRequest(url: chunk.uploadURL)
48 | 		urlRequest.httpMethod = "PUT"
49 | 		let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
   |                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
50 | 			if let error = error {
51 | 				self?.finish(with: .failure(error))
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:49:83: error: cannot infer type of closure parameter '_' without a type annotation
47 | 		var urlRequest = URLRequest(url: chunk.uploadURL)
48 | 		urlRequest.httpMethod = "PUT"
49 | 		let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
   |                                                                                   `- error: cannot infer type of closure parameter '_' without a type annotation
50 | 			if let error = error {
51 | 				self?.finish(with: .failure(error))
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:49:86: error: cannot infer type of closure parameter 'urlResponse' without a type annotation
47 | 		var urlRequest = URLRequest(url: chunk.uploadURL)
48 | 		urlRequest.httpMethod = "PUT"
49 | 		let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
   |                                                                                      `- error: cannot infer type of closure parameter 'urlResponse' without a type annotation
50 | 			if let error = error {
51 | 				self?.finish(with: .failure(error))
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:49:99: error: cannot infer type of closure parameter 'error' without a type annotation
47 | 		var urlRequest = URLRequest(url: chunk.uploadURL)
48 | 		urlRequest.httpMethod = "PUT"
49 | 		let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
   |                                                                                                   `- error: cannot infer type of closure parameter 'error' without a type annotation
50 | 			if let error = error {
51 | 				self?.finish(with: .failure(error))
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:54:86: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | 				return
53 | 			}
54 | 			if let response = urlResponse as? HTTPURLResponse, !(200...299).contains(response.statusCode) {
   |                                                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | 				self?.finish(with: .failure(Error.uploadFailed))
56 | 				return
[25/33] Compiling WeTransfer UploadChunkOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/FinalizeTransferOperation.swift:12:13: warning: class 'FinalizeTransferOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// Finalizes the provided Transfer after all files have been uploaded. The Transfer object will be updated with a URL as a result.
12 | final class FinalizeTransferOperation: ChainedAsynchronousResultOperation<Transfer, Transfer> {
   |             `- warning: class 'FinalizeTransferOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	/// Initializes the operation with a transfer. When initalized as part of a chain this operation can be initialized without any arguments
/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.
29 |
30 | 	/// URLSession handling the creation and actual uploading of the chunk
31 | 	let session: URLSession
   |               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | 	/// Initializes the operation with a session which handles the actual uploading part
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
34 | 	///
35 | 	/// - Parameter session: `URLSession` that should create and be responsible of the actual uploading part
36 | 	required init(session: URLSession) {
   |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | 		self.session = session
38 | 		super.init()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:12:13: warning: class 'UploadChunkOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// Uploads the chunk that resulted from the dependant `CreateChunkOperation`. The uploading is handled by the provided `URLSession`
12 | final class UploadChunkOperation: ChainedAsynchronousResultOperation<Chunk, Chunk> {
   |             `- warning: class 'UploadChunkOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	enum Error: Swift.Error, LocalizedError {
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:47:20: error: cannot find 'URLRequest' in scope
45 | 		}
46 |
47 | 		var urlRequest = URLRequest(url: chunk.uploadURL)
   |                    `- error: cannot find 'URLRequest' in scope
48 | 		urlRequest.httpMethod = "PUT"
49 | 		let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:49:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
47 | 		var urlRequest = URLRequest(url: chunk.uploadURL)
48 | 		urlRequest.httpMethod = "PUT"
49 | 		let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
   |                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
50 | 			if let error = error {
51 | 				self?.finish(with: .failure(error))
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:49:83: error: cannot infer type of closure parameter '_' without a type annotation
47 | 		var urlRequest = URLRequest(url: chunk.uploadURL)
48 | 		urlRequest.httpMethod = "PUT"
49 | 		let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
   |                                                                                   `- error: cannot infer type of closure parameter '_' without a type annotation
50 | 			if let error = error {
51 | 				self?.finish(with: .failure(error))
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:49:86: error: cannot infer type of closure parameter 'urlResponse' without a type annotation
47 | 		var urlRequest = URLRequest(url: chunk.uploadURL)
48 | 		urlRequest.httpMethod = "PUT"
49 | 		let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
   |                                                                                      `- error: cannot infer type of closure parameter 'urlResponse' without a type annotation
50 | 			if let error = error {
51 | 				self?.finish(with: .failure(error))
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:49:99: error: cannot infer type of closure parameter 'error' without a type annotation
47 | 		var urlRequest = URLRequest(url: chunk.uploadURL)
48 | 		urlRequest.httpMethod = "PUT"
49 | 		let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
   |                                                                                                   `- error: cannot infer type of closure parameter 'error' without a type annotation
50 | 			if let error = error {
51 | 				self?.finish(with: .failure(error))
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:54:86: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | 				return
53 | 			}
54 | 			if let response = urlResponse as? HTTPURLResponse, !(200...299).contains(response.statusCode) {
   |                                                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | 				self?.finish(with: .failure(Error.uploadFailed))
56 | 				return
[26/33] Compiling WeTransfer Transferable.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                               `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
24 |
25 | 	/// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:58: error: cannot infer contextual base in reference to member 'default'
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                                                          `- error: cannot infer contextual base in reference to member 'default'
24 |
25 | 	/// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:77: error: 'nil' requires a contextual type
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                                                                             `- error: 'nil' requires a contextual type
24 |
25 | 	/// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:97: error: 'nil' requires a contextual type
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                                                                                                 `- error: 'nil' requires a contextual type
24 |
25 | 	/// Main operation queue handling all operations concurrently
/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.
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | 	/// Main operation queue handling all operations concurrently
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:52:95: error: cannot find type 'URLRequest' in scope
50 | 	/// - Returns: URLRequest pointing to URL with appropriate HTTP method set
51 | 	/// - Throws: `WeTransfer.Error` when not configured or not authorized
52 | 	func createRequest<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil) throws -> URLRequest {
   |                                                                                               `- error: cannot find type 'URLRequest' in scope
53 | 		guard let apiKey = apiKey, let baseURL = baseURL else {
54 | 			throw WeTransfer.Error.notConfigured
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:68:23: error: cannot find type 'URLRequest' in scope
66 | }
67 |
68 | fileprivate extension URLRequest {
   |                       `- error: cannot find type 'URLRequest' in scope
69 | 	/// Initializes a URLRequest instance from and endpoint
70 | 	///
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:57:17: error: cannot find 'URLRequest' in scope
55 | 		}
56 |
57 | 		var request = URLRequest(endpoint: endpoint, baseURL: baseURL, apiKey: apiKey)
   |                 `- error: cannot find 'URLRequest' in scope
58 | 		request = authenticator.authenticatedRequest(from: request)
59 | 		request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:57: error: cannot find type 'URLRequest' in scope
32 | 	/// - Parameter request: The request to update
33 | 	/// - Returns: An updated request with the correct authorization headers added
34 | 	func authenticatedRequest(from request: URLRequest) -> URLRequest {
   |                                                         `- error: cannot find type 'URLRequest' in scope
35 | 		var request = request
36 | 		if let bearer = bearer {
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:42: error: cannot find type 'URLRequest' in scope
32 | 	/// - Parameter request: The request to update
33 | 	/// - Returns: An updated request with the correct authorization headers added
34 | 	func authenticatedRequest(from request: URLRequest) -> URLRequest {
   |                                          `- error: cannot find type 'URLRequest' in scope
35 | 		var request = request
36 | 		if let bearer = bearer {
[27/33] Compiling WeTransfer APIClient.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                               `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
24 |
25 | 	/// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:58: error: cannot infer contextual base in reference to member 'default'
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                                                          `- error: cannot infer contextual base in reference to member 'default'
24 |
25 | 	/// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:77: error: 'nil' requires a contextual type
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                                                                             `- error: 'nil' requires a contextual type
24 |
25 | 	/// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:97: error: 'nil' requires a contextual type
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                                                                                                 `- error: 'nil' requires a contextual type
24 |
25 | 	/// Main operation queue handling all operations concurrently
/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.
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | 	/// Main operation queue handling all operations concurrently
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:52:95: error: cannot find type 'URLRequest' in scope
50 | 	/// - Returns: URLRequest pointing to URL with appropriate HTTP method set
51 | 	/// - Throws: `WeTransfer.Error` when not configured or not authorized
52 | 	func createRequest<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil) throws -> URLRequest {
   |                                                                                               `- error: cannot find type 'URLRequest' in scope
53 | 		guard let apiKey = apiKey, let baseURL = baseURL else {
54 | 			throw WeTransfer.Error.notConfigured
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:68:23: error: cannot find type 'URLRequest' in scope
66 | }
67 |
68 | fileprivate extension URLRequest {
   |                       `- error: cannot find type 'URLRequest' in scope
69 | 	/// Initializes a URLRequest instance from and endpoint
70 | 	///
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:57:17: error: cannot find 'URLRequest' in scope
55 | 		}
56 |
57 | 		var request = URLRequest(endpoint: endpoint, baseURL: baseURL, apiKey: apiKey)
   |                 `- error: cannot find 'URLRequest' in scope
58 | 		request = authenticator.authenticatedRequest(from: request)
59 | 		request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:57: error: cannot find type 'URLRequest' in scope
32 | 	/// - Parameter request: The request to update
33 | 	/// - Returns: An updated request with the correct authorization headers added
34 | 	func authenticatedRequest(from request: URLRequest) -> URLRequest {
   |                                                         `- error: cannot find type 'URLRequest' in scope
35 | 		var request = request
36 | 		if let bearer = bearer {
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:42: error: cannot find type 'URLRequest' in scope
32 | 	/// - Parameter request: The request to update
33 | 	/// - Returns: An updated request with the correct authorization headers added
34 | 	func authenticatedRequest(from request: URLRequest) -> URLRequest {
   |                                          `- error: cannot find type 'URLRequest' in scope
35 | 		var request = request
36 | 		if let bearer = bearer {
[28/33] Compiling WeTransfer Authenticator.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                               `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
24 |
25 | 	/// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:58: error: cannot infer contextual base in reference to member 'default'
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                                                          `- error: cannot infer contextual base in reference to member 'default'
24 |
25 | 	/// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:77: error: 'nil' requires a contextual type
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                                                                             `- error: 'nil' requires a contextual type
24 |
25 | 	/// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:97: error: 'nil' requires a contextual type
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                                                                                                 `- error: 'nil' requires a contextual type
24 |
25 | 	/// Main operation queue handling all operations concurrently
/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.
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | 	/// Main operation queue handling all operations concurrently
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:52:95: error: cannot find type 'URLRequest' in scope
50 | 	/// - Returns: URLRequest pointing to URL with appropriate HTTP method set
51 | 	/// - Throws: `WeTransfer.Error` when not configured or not authorized
52 | 	func createRequest<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil) throws -> URLRequest {
   |                                                                                               `- error: cannot find type 'URLRequest' in scope
53 | 		guard let apiKey = apiKey, let baseURL = baseURL else {
54 | 			throw WeTransfer.Error.notConfigured
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:68:23: error: cannot find type 'URLRequest' in scope
66 | }
67 |
68 | fileprivate extension URLRequest {
   |                       `- error: cannot find type 'URLRequest' in scope
69 | 	/// Initializes a URLRequest instance from and endpoint
70 | 	///
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:57:17: error: cannot find 'URLRequest' in scope
55 | 		}
56 |
57 | 		var request = URLRequest(endpoint: endpoint, baseURL: baseURL, apiKey: apiKey)
   |                 `- error: cannot find 'URLRequest' in scope
58 | 		request = authenticator.authenticatedRequest(from: request)
59 | 		request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:57: error: cannot find type 'URLRequest' in scope
32 | 	/// - Parameter request: The request to update
33 | 	/// - Returns: An updated request with the correct authorization headers added
34 | 	func authenticatedRequest(from request: URLRequest) -> URLRequest {
   |                                                         `- error: cannot find type 'URLRequest' in scope
35 | 		var request = request
36 | 		if let bearer = bearer {
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:42: error: cannot find type 'URLRequest' in scope
32 | 	/// - Parameter request: The request to update
33 | 	/// - Returns: An updated request with the correct authorization headers added
34 | 	func authenticatedRequest(from request: URLRequest) -> URLRequest {
   |                                          `- error: cannot find type 'URLRequest' in scope
35 | 		var request = request
36 | 		if let bearer = bearer {
[29/33] Compiling WeTransfer APIEndpoint.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                               `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
24 |
25 | 	/// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:58: error: cannot infer contextual base in reference to member 'default'
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                                                          `- error: cannot infer contextual base in reference to member 'default'
24 |
25 | 	/// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:77: error: 'nil' requires a contextual type
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                                                                             `- error: 'nil' requires a contextual type
24 |
25 | 	/// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:97: error: 'nil' requires a contextual type
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                                                                                                 `- error: 'nil' requires a contextual type
24 |
25 | 	/// Main operation queue handling all operations concurrently
/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.
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | 	/// Main operation queue handling all operations concurrently
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:52:95: error: cannot find type 'URLRequest' in scope
50 | 	/// - Returns: URLRequest pointing to URL with appropriate HTTP method set
51 | 	/// - Throws: `WeTransfer.Error` when not configured or not authorized
52 | 	func createRequest<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil) throws -> URLRequest {
   |                                                                                               `- error: cannot find type 'URLRequest' in scope
53 | 		guard let apiKey = apiKey, let baseURL = baseURL else {
54 | 			throw WeTransfer.Error.notConfigured
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:68:23: error: cannot find type 'URLRequest' in scope
66 | }
67 |
68 | fileprivate extension URLRequest {
   |                       `- error: cannot find type 'URLRequest' in scope
69 | 	/// Initializes a URLRequest instance from and endpoint
70 | 	///
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:57:17: error: cannot find 'URLRequest' in scope
55 | 		}
56 |
57 | 		var request = URLRequest(endpoint: endpoint, baseURL: baseURL, apiKey: apiKey)
   |                 `- error: cannot find 'URLRequest' in scope
58 | 		request = authenticator.authenticatedRequest(from: request)
59 | 		request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:57: error: cannot find type 'URLRequest' in scope
32 | 	/// - Parameter request: The request to update
33 | 	/// - Returns: An updated request with the correct authorization headers added
34 | 	func authenticatedRequest(from request: URLRequest) -> URLRequest {
   |                                                         `- error: cannot find type 'URLRequest' in scope
35 | 		var request = request
36 | 		if let bearer = bearer {
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:42: error: cannot find type 'URLRequest' in scope
32 | 	/// - Parameter request: The request to update
33 | 	/// - Returns: An updated request with the correct authorization headers added
34 | 	func authenticatedRequest(from request: URLRequest) -> URLRequest {
   |                                          `- error: cannot find type 'URLRequest' in scope
35 | 		var request = request
36 | 		if let bearer = bearer {
[30/33] Compiling WeTransfer Board.swift
[31/33] Compiling WeTransfer Chunk.swift
[32/33] Compiling WeTransfer File.swift
[33/33] Compiling WeTransfer Transfer.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/29] 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.
 55 | 	///   - urlResponse: Response description, from which a status code can be read
 56 | 	/// - Returns: An error if type RequestError.serverEror if error response could be parsed
 57 | 	static func parseErrorResponse(_ data: Data?, urlResponse: HTTPURLResponse?) -> Swift.Error? {
    |                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 | 		guard let data = data,
 59 | 			let errorResponse = try? client.decoder.decode(ErrorResponse.self, from: data),
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:63:99: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 61 | 				return nil
 62 | 		}
 63 | 		return RequestError.serverError(errorMessage: errorResponse.errorString, httpCode: urlResponse?.statusCode)
    |                                                                                                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 64 | 	}
 65 |
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:110:19: error: cannot find type 'URLRequest' in scope
108 |
109 | 		// Create the request with the enpoint and optional data
110 | 		let urlRequest: URLRequest
    |                   `- error: cannot find type 'URLRequest' in scope
111 | 		do {
112 | 			urlRequest = try client.createRequest(endpoint, data: data)
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:52:95: error: cannot find type 'URLRequest' in scope
50 | 	/// - Returns: URLRequest pointing to URL with appropriate HTTP method set
51 | 	/// - Throws: `WeTransfer.Error` when not configured or not authorized
52 | 	func createRequest<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil) throws -> URLRequest {
   |                                                                                               `- error: cannot find type 'URLRequest' in scope
53 | 		guard let apiKey = apiKey, let baseURL = baseURL else {
54 | 			throw WeTransfer.Error.notConfigured
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:119:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
117 |
118 | 		// Create and start a dataTask, after which the reponse is decoded to the Response type
119 | 		let task = client.urlSession.dataTask(with: urlRequest, completionHandler: { (data, urlResponse, error) in
    |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
120 | 			do {
121 | 				if let error = error {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousDependencyResultOperation.swift:12:12: warning: class 'AsynchronousDependencyResultOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// An asynchronous operation which will always have a result after completion.
12 | open class AsynchronousDependencyResultOperation<T>: AsynchronousResultOperation<T> {
   |            `- warning: class 'AsynchronousDependencyResultOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	open override func execute() {
[3/29] 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.
 55 | 	///   - urlResponse: Response description, from which a status code can be read
 56 | 	/// - Returns: An error if type RequestError.serverEror if error response could be parsed
 57 | 	static func parseErrorResponse(_ data: Data?, urlResponse: HTTPURLResponse?) -> Swift.Error? {
    |                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 | 		guard let data = data,
 59 | 			let errorResponse = try? client.decoder.decode(ErrorResponse.self, from: data),
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:63:99: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 61 | 				return nil
 62 | 		}
 63 | 		return RequestError.serverError(errorMessage: errorResponse.errorString, httpCode: urlResponse?.statusCode)
    |                                                                                                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 64 | 	}
 65 |
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:110:19: error: cannot find type 'URLRequest' in scope
108 |
109 | 		// Create the request with the enpoint and optional data
110 | 		let urlRequest: URLRequest
    |                   `- error: cannot find type 'URLRequest' in scope
111 | 		do {
112 | 			urlRequest = try client.createRequest(endpoint, data: data)
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:52:95: error: cannot find type 'URLRequest' in scope
50 | 	/// - Returns: URLRequest pointing to URL with appropriate HTTP method set
51 | 	/// - Throws: `WeTransfer.Error` when not configured or not authorized
52 | 	func createRequest<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil) throws -> URLRequest {
   |                                                                                               `- error: cannot find type 'URLRequest' in scope
53 | 		guard let apiKey = apiKey, let baseURL = baseURL else {
54 | 			throw WeTransfer.Error.notConfigured
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:119:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
117 |
118 | 		// Create and start a dataTask, after which the reponse is decoded to the Response type
119 | 		let task = client.urlSession.dataTask(with: urlRequest, completionHandler: { (data, urlResponse, error) in
    |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
120 | 			do {
121 | 				if let error = error {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousDependencyResultOperation.swift:12:12: warning: class 'AsynchronousDependencyResultOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// An asynchronous operation which will always have a result after completion.
12 | open class AsynchronousDependencyResultOperation<T>: AsynchronousResultOperation<T> {
   |            `- warning: class 'AsynchronousDependencyResultOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	open override func execute() {
[4/29] 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.
 55 | 	///   - urlResponse: Response description, from which a status code can be read
 56 | 	/// - Returns: An error if type RequestError.serverEror if error response could be parsed
 57 | 	static func parseErrorResponse(_ data: Data?, urlResponse: HTTPURLResponse?) -> Swift.Error? {
    |                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 | 		guard let data = data,
 59 | 			let errorResponse = try? client.decoder.decode(ErrorResponse.self, from: data),
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:63:99: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 61 | 				return nil
 62 | 		}
 63 | 		return RequestError.serverError(errorMessage: errorResponse.errorString, httpCode: urlResponse?.statusCode)
    |                                                                                                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 64 | 	}
 65 |
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:110:19: error: cannot find type 'URLRequest' in scope
108 |
109 | 		// Create the request with the enpoint and optional data
110 | 		let urlRequest: URLRequest
    |                   `- error: cannot find type 'URLRequest' in scope
111 | 		do {
112 | 			urlRequest = try client.createRequest(endpoint, data: data)
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:52:95: error: cannot find type 'URLRequest' in scope
50 | 	/// - Returns: URLRequest pointing to URL with appropriate HTTP method set
51 | 	/// - Throws: `WeTransfer.Error` when not configured or not authorized
52 | 	func createRequest<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil) throws -> URLRequest {
   |                                                                                               `- error: cannot find type 'URLRequest' in scope
53 | 		guard let apiKey = apiKey, let baseURL = baseURL else {
54 | 			throw WeTransfer.Error.notConfigured
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:119:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
117 |
118 | 		// Create and start a dataTask, after which the reponse is decoded to the Response type
119 | 		let task = client.urlSession.dataTask(with: urlRequest, completionHandler: { (data, urlResponse, error) in
    |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
120 | 			do {
121 | 				if let error = error {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousDependencyResultOperation.swift:12:12: warning: class 'AsynchronousDependencyResultOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// An asynchronous operation which will always have a result after completion.
12 | open class AsynchronousDependencyResultOperation<T>: AsynchronousResultOperation<T> {
   |            `- warning: class 'AsynchronousDependencyResultOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	open override func execute() {
[5/29] 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.
 55 | 	///   - urlResponse: Response description, from which a status code can be read
 56 | 	/// - Returns: An error if type RequestError.serverEror if error response could be parsed
 57 | 	static func parseErrorResponse(_ data: Data?, urlResponse: HTTPURLResponse?) -> Swift.Error? {
    |                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 | 		guard let data = data,
 59 | 			let errorResponse = try? client.decoder.decode(ErrorResponse.self, from: data),
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:63:99: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 61 | 				return nil
 62 | 		}
 63 | 		return RequestError.serverError(errorMessage: errorResponse.errorString, httpCode: urlResponse?.statusCode)
    |                                                                                                   `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 64 | 	}
 65 |
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:110:19: error: cannot find type 'URLRequest' in scope
108 |
109 | 		// Create the request with the enpoint and optional data
110 | 		let urlRequest: URLRequest
    |                   `- error: cannot find type 'URLRequest' in scope
111 | 		do {
112 | 			urlRequest = try client.createRequest(endpoint, data: data)
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:52:95: error: cannot find type 'URLRequest' in scope
50 | 	/// - Returns: URLRequest pointing to URL with appropriate HTTP method set
51 | 	/// - Throws: `WeTransfer.Error` when not configured or not authorized
52 | 	func createRequest<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil) throws -> URLRequest {
   |                                                                                               `- error: cannot find type 'URLRequest' in scope
53 | 		guard let apiKey = apiKey, let baseURL = baseURL else {
54 | 			throw WeTransfer.Error.notConfigured
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:119:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
117 |
118 | 		// Create and start a dataTask, after which the reponse is decoded to the Response type
119 | 		let task = client.urlSession.dataTask(with: urlRequest, completionHandler: { (data, urlResponse, error) in
    |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
120 | 			do {
121 | 				if let error = error {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousDependencyResultOperation.swift:12:12: warning: class 'AsynchronousDependencyResultOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// An asynchronous operation which will always have a result after completion.
12 | open class AsynchronousDependencyResultOperation<T>: AsynchronousResultOperation<T> {
   |            `- warning: class 'AsynchronousDependencyResultOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	open override func execute() {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/32] Emitting module WeTransfer
/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.
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | 	/// Main operation queue handling all operations concurrently
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                               `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
24 |
25 | 	/// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:58: error: cannot infer contextual base in reference to member 'default'
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                                                          `- error: cannot infer contextual base in reference to member 'default'
24 |
25 | 	/// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:77: error: 'nil' requires a contextual type
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                                                                             `- error: 'nil' requires a contextual type
24 |
25 | 	/// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:97: error: 'nil' requires a contextual type
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                                                                                                 `- error: 'nil' requires a contextual type
24 |
25 | 	/// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:52:95: error: cannot find type 'URLRequest' in scope
50 | 	/// - Returns: URLRequest pointing to URL with appropriate HTTP method set
51 | 	/// - Throws: `WeTransfer.Error` when not configured or not authorized
52 | 	func createRequest<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil) throws -> URLRequest {
   |                                                                                               `- error: cannot find type 'URLRequest' in scope
53 | 		guard let apiKey = apiKey, let baseURL = baseURL else {
54 | 			throw WeTransfer.Error.notConfigured
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:68:23: error: cannot find type 'URLRequest' in scope
66 | }
67 |
68 | fileprivate extension URLRequest {
   |                       `- error: cannot find type 'URLRequest' in scope
69 | 	/// Initializes a URLRequest instance from and endpoint
70 | 	///
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:57: error: cannot find type 'URLRequest' in scope
32 | 	/// - Parameter request: The request to update
33 | 	/// - Returns: An updated request with the correct authorization headers added
34 | 	func authenticatedRequest(from request: URLRequest) -> URLRequest {
   |                                                         `- error: cannot find type 'URLRequest' in scope
35 | 		var request = request
36 | 		if let bearer = bearer {
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:42: error: cannot find type 'URLRequest' in scope
32 | 	/// - Parameter request: The request to update
33 | 	/// - Returns: An updated request with the correct authorization headers added
34 | 	func authenticatedRequest(from request: URLRequest) -> URLRequest {
   |                                          `- error: cannot find type 'URLRequest' in scope
35 | 		var request = request
36 | 		if let bearer = bearer {
/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.
 55 | 	///   - urlResponse: Response description, from which a status code can be read
 56 | 	/// - Returns: An error if type RequestError.serverEror if error response could be parsed
 57 | 	static func parseErrorResponse(_ data: Data?, urlResponse: HTTPURLResponse?) -> Swift.Error? {
    |                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 | 		guard let data = data,
 59 | 			let errorResponse = try? client.decoder.decode(ErrorResponse.self, from: data),
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousDependencyResultOperation.swift:12:12: warning: class 'AsynchronousDependencyResultOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// An asynchronous operation which will always have a result after completion.
12 | open class AsynchronousDependencyResultOperation<T>: AsynchronousResultOperation<T> {
   |            `- warning: class 'AsynchronousDependencyResultOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	open override func execute() {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:12:12: warning: class 'AsynchronousOperation' must restate inherited '@unchecked Sendable' conformance
 10 |
 11 | /// A base class to handle NSOperation states, because this is quite verbose due to KVO and the combined attribute states.
 12 | open class AsynchronousOperation: Operation {
    |            `- warning: class 'AsynchronousOperation' must restate inherited '@unchecked Sendable' conformance
 13 |
 14 | 	// MARK: - Types
/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 the Swift 6 language mode
10 |
11 | /// An asynchronous operation which will always have a result after completion.
12 | open class AsynchronousResultOperation<T>: AsynchronousOperation {
   |                                        `- note: 'T' previously declared here
13 |
14 | 	typealias ResultHandler<T> = ((_ result: Result<T>) -> Void)
   |                          `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
15 |
16 | 	enum Error: Swift.Error {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousResultOperation.swift:12:12: warning: class 'AsynchronousResultOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// An asynchronous operation which will always have a result after completion.
12 | open class AsynchronousResultOperation<T>: AsynchronousOperation {
   |            `- warning: class 'AsynchronousResultOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	typealias ResultHandler<T> = ((_ result: Result<T>) -> Void)
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/ChainedAsynchronousResultOperation.swift:12:12: warning: class 'ChainedAsynchronousResultOperation' must restate inherited '@unchecked Sendable' conformance
 10 |
 11 | // An asynchronous operation which is dependent on a parent operation for its input.
 12 | open class ChainedAsynchronousResultOperation<Input, Output>: AsynchronousResultOperation<Output> {
    |            `- warning: class 'ChainedAsynchronousResultOperation' must restate inherited '@unchecked Sendable' conformance
 13 |
 14 | 	public enum Error: Swift.Error {
/host/spi-builder-workspace/WeTransfer/Server/Operations/AddFilesOperation.swift:13:13: warning: class 'AddFilesOperation' must restate inherited '@unchecked Sendable' conformance
11 | /// Operation responsible for adding files to the provided board object and on the server as well. When succeeded, the files will be updated with the appropriate data like identifiers and information about the chunks.
12 | /// - Note: The files will be added to the provided board object when the operation has started executing
13 | final class AddFilesOperation: ChainedAsynchronousResultOperation<Board, Board> {
   |             `- warning: class 'AddFilesOperation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | 	enum Error: Swift.Error, LocalizedError {
/host/spi-builder-workspace/WeTransfer/Server/Operations/CompleteUploadOperation.swift:12:13: warning: class 'CompleteUploadOperation' must restate inherited '@unchecked Sendable' conformance
 10 |
 11 | /// Completes the upload of each file in a transfer. Typically used in `UploadFileOperation` after all the file's chunks have been uploaded
 12 | final class CompleteUploadOperation: AsynchronousResultOperation<File> {
    |             `- warning: class 'CompleteUploadOperation' must restate inherited '@unchecked Sendable' conformance
 13 |
 14 | 	enum Error: Swift.Error, LocalizedError {
/host/spi-builder-workspace/WeTransfer/Server/Operations/CreateBoardOperation.swift:13:13: warning: class 'CreateBoardOperation' must restate inherited '@unchecked Sendable' conformance
11 | /// Operation responsible for creating the transfer on the server and providing the given transfer object with an identifier and URL when succeeded.
12 | /// This operation does not handle the requests necessary to add files to the server side transfer, which `AddFilesOperation` is responsible for
13 | final class CreateBoardOperation: AsynchronousResultOperation<Board> {
   |             `- warning: class 'CreateBoardOperation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | 	private let board: Board
/host/spi-builder-workspace/WeTransfer/Server/Operations/CreateChunkOperation.swift:12:13: warning: class 'CreateChunkOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// Creates a chunk of a file to be uploaded. Designed to be used right before `UploadChunkOperation`
12 | final class CreateChunkOperation: AsynchronousResultOperation<Chunk> {
   |             `- warning: class 'CreateChunkOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	enum Error: Swift.Error, LocalizedError {
/host/spi-builder-workspace/WeTransfer/Server/Operations/CreateTransferOperation.swift:13:13: warning: class 'CreateTransferOperation' must restate inherited '@unchecked Sendable' conformance
11 | /// Operation responsible for creating the transfer on the server and providing the given transfer object with an identifier and URL when succeeded.
12 | /// This operation does not handle the requests necessary to add files to the server side transfer, which `AddFilesOperation` is responsible for
13 | final class CreateTransferOperation: AsynchronousResultOperation<Transfer> {
   |             `- warning: class 'CreateTransferOperation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | 	enum Error: Swift.Error, LocalizedError {
/host/spi-builder-workspace/WeTransfer/Server/Operations/FinalizeTransferOperation.swift:12:13: warning: class 'FinalizeTransferOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// Finalizes the provided Transfer after all files have been uploaded. The Transfer object will be updated with a URL as a result.
12 | final class FinalizeTransferOperation: ChainedAsynchronousResultOperation<Transfer, Transfer> {
   |             `- warning: class 'FinalizeTransferOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	/// Initializes the operation with a transfer. When initalized as part of a chain this operation can be initialized without any arguments
/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.
29 |
30 | 	/// URLSession handling the creation and actual uploading of the chunk
31 | 	let session: URLSession
   |               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | 	/// Initializes the operation with a session which handles the actual uploading part
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
34 | 	///
35 | 	/// - Parameter session: `URLSession` that should create and be responsible of the actual uploading part
36 | 	required init(session: URLSession) {
   |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | 		self.session = session
38 | 		super.init()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:12:13: warning: class 'UploadChunkOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// Uploads the chunk that resulted from the dependant `CreateChunkOperation`. The uploading is handled by the provided `URLSession`
12 | final class UploadChunkOperation: ChainedAsynchronousResultOperation<Chunk, Chunk> {
   |             `- warning: class 'UploadChunkOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	enum Error: Swift.Error, LocalizedError {
/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.
31 | 	private let operationQueue: OperationQueue
32 | 	/// URLSession handling the creation and actual uploading of the chunks
33 | 	private let session: URLSession
   |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | 	/// Initializes the operation with the necessary file, operation queue and session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
39 | 	///   - operationQueue: Operation queue to add the operations to
40 | 	///   - session: URLSession that should handle the actual uploading
41 | 	required init(container: Transferable, file: File, operationQueue: OperationQueue, session: URLSession) {
   |                                                                                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | 		self.container = container
43 | 		self.file = file
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:12:13: warning: class 'UploadFileOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// Responsible for creating the necessary operations to create and upload chunks for the provided file. Uses the provided operation queue to handle created operations and the actual uploading is done with the provided URLSession
12 | final class UploadFileOperation: AsynchronousResultOperation<File> {
   |             `- warning: class 'UploadFileOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	enum Error: Swift.Error, LocalizedError {
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:12:118: error: cannot find type 'URLSessionDataDelegate' in scope
 10 |
 11 | /// Handles the uploading of all files -- that are not uploaded yet -- in the provided transfer. Creates an operation queue with an `UploadFileOperation` for each file to be uploaded.
 12 | final class UploadFilesOperation<Container: Transferable>: ChainedAsynchronousResultOperation<Container, Container>, URLSessionDataDelegate {
    |                                                                                                                      `- error: cannot find type 'URLSessionDataDelegate' in scope
 13 |
 14 | 	/// Amount of bytes already sent
/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.
 96 |
 97 | 	// Use the didSendBodyData delegate method to update the upload progress
 98 | 	func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 99 | 		self.bytesSent += UInt64(bytesSent)
100 | 		progress.completedUnitCount = Int64(self.bytesSent)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
 96 |
 97 | 	// Use the didSendBodyData delegate method to update the upload progress
 98 | 	func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
    |                                               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 99 | 		self.bytesSent += UInt64(bytesSent)
100 | 		progress.completedUnitCount = Int64(self.bytesSent)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:12:13: warning: class 'UploadFilesOperation' must restate inherited '@unchecked Sendable' conformance
 10 |
 11 | /// Handles the uploading of all files -- that are not uploaded yet -- in the provided transfer. Creates an operation queue with an `UploadFileOperation` for each file to be uploaded.
 12 | final class UploadFilesOperation<Container: Transferable>: ChainedAsynchronousResultOperation<Container, Container>, URLSessionDataDelegate {
    |             `- warning: class 'UploadFilesOperation' must restate inherited '@unchecked Sendable' conformance
 13 |
 14 | 	/// Amount of bytes already sent
[7/32] 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.
31 | 	private let operationQueue: OperationQueue
32 | 	/// URLSession handling the creation and actual uploading of the chunks
33 | 	private let session: URLSession
   |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | 	/// Initializes the operation with the necessary file, operation queue and session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
39 | 	///   - operationQueue: Operation queue to add the operations to
40 | 	///   - session: URLSession that should handle the actual uploading
41 | 	required init(container: Transferable, file: File, operationQueue: OperationQueue, session: URLSession) {
   |                                                                                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | 		self.container = container
43 | 		self.file = file
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:12:13: warning: class 'UploadFileOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// Responsible for creating the necessary operations to create and upload chunks for the provided file. Uses the provided operation queue to handle created operations and the actual uploading is done with the provided URLSession
12 | final class UploadFileOperation: AsynchronousResultOperation<File> {
   |             `- warning: class 'UploadFileOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	enum Error: Swift.Error, LocalizedError {
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:12:118: error: cannot find type 'URLSessionDataDelegate' in scope
 10 |
 11 | /// Handles the uploading of all files -- that are not uploaded yet -- in the provided transfer. Creates an operation queue with an `UploadFileOperation` for each file to be uploaded.
 12 | final class UploadFilesOperation<Container: Transferable>: ChainedAsynchronousResultOperation<Container, Container>, URLSessionDataDelegate {
    |                                                                                                                      `- error: cannot find type 'URLSessionDataDelegate' in scope
 13 |
 14 | 	/// Amount of bytes already sent
/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.
 96 |
 97 | 	// Use the didSendBodyData delegate method to update the upload progress
 98 | 	func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 99 | 		self.bytesSent += UInt64(bytesSent)
100 | 		progress.completedUnitCount = Int64(self.bytesSent)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
 96 |
 97 | 	// Use the didSendBodyData delegate method to update the upload progress
 98 | 	func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
    |                                               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 99 | 		self.bytesSent += UInt64(bytesSent)
100 | 		progress.completedUnitCount = Int64(self.bytesSent)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:12:13: warning: class 'UploadFilesOperation' must restate inherited '@unchecked Sendable' conformance
 10 |
 11 | /// Handles the uploading of all files -- that are not uploaded yet -- in the provided transfer. Creates an operation queue with an `UploadFileOperation` for each file to be uploaded.
 12 | final class UploadFilesOperation<Container: Transferable>: ChainedAsynchronousResultOperation<Container, Container>, URLSessionDataDelegate {
    |             `- warning: class 'UploadFilesOperation' must restate inherited '@unchecked Sendable' conformance
 13 |
 14 | 	/// Amount of bytes already sent
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:48:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 46 |
 47 | 		// Seperate URLSession that handles the actual uploading and reports the upload progress
 48 | 		let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 49 | 		progress.totalUnitCount = Int64(self.totalBytes)
 50 |
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:48:50: error: cannot infer contextual base in reference to member 'ephemeral'
 46 |
 47 | 		// Seperate URLSession that handles the actual uploading and reports the upload progress
 48 | 		let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
    |                                                  `- error: cannot infer contextual base in reference to member 'ephemeral'
 49 | 		progress.totalUnitCount = Int64(self.totalBytes)
 50 |
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:48:92: error: 'nil' requires a contextual type
 46 |
 47 | 		// Seperate URLSession that handles the actual uploading and reports the upload progress
 48 | 		let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
    |                                                                                            `- error: 'nil' requires a contextual type
 49 | 		progress.totalUnitCount = Int64(self.totalBytes)
 50 |
[8/32] 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.
31 | 	private let operationQueue: OperationQueue
32 | 	/// URLSession handling the creation and actual uploading of the chunks
33 | 	private let session: URLSession
   |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | 	/// Initializes the operation with the necessary file, operation queue and session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
39 | 	///   - operationQueue: Operation queue to add the operations to
40 | 	///   - session: URLSession that should handle the actual uploading
41 | 	required init(container: Transferable, file: File, operationQueue: OperationQueue, session: URLSession) {
   |                                                                                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | 		self.container = container
43 | 		self.file = file
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:12:13: warning: class 'UploadFileOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// Responsible for creating the necessary operations to create and upload chunks for the provided file. Uses the provided operation queue to handle created operations and the actual uploading is done with the provided URLSession
12 | final class UploadFileOperation: AsynchronousResultOperation<File> {
   |             `- warning: class 'UploadFileOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	enum Error: Swift.Error, LocalizedError {
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:12:118: error: cannot find type 'URLSessionDataDelegate' in scope
 10 |
 11 | /// Handles the uploading of all files -- that are not uploaded yet -- in the provided transfer. Creates an operation queue with an `UploadFileOperation` for each file to be uploaded.
 12 | final class UploadFilesOperation<Container: Transferable>: ChainedAsynchronousResultOperation<Container, Container>, URLSessionDataDelegate {
    |                                                                                                                      `- error: cannot find type 'URLSessionDataDelegate' in scope
 13 |
 14 | 	/// Amount of bytes already sent
/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.
 96 |
 97 | 	// Use the didSendBodyData delegate method to update the upload progress
 98 | 	func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 99 | 		self.bytesSent += UInt64(bytesSent)
100 | 		progress.completedUnitCount = Int64(self.bytesSent)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
 96 |
 97 | 	// Use the didSendBodyData delegate method to update the upload progress
 98 | 	func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
    |                                               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 99 | 		self.bytesSent += UInt64(bytesSent)
100 | 		progress.completedUnitCount = Int64(self.bytesSent)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:12:13: warning: class 'UploadFilesOperation' must restate inherited '@unchecked Sendable' conformance
 10 |
 11 | /// Handles the uploading of all files -- that are not uploaded yet -- in the provided transfer. Creates an operation queue with an `UploadFileOperation` for each file to be uploaded.
 12 | final class UploadFilesOperation<Container: Transferable>: ChainedAsynchronousResultOperation<Container, Container>, URLSessionDataDelegate {
    |             `- warning: class 'UploadFilesOperation' must restate inherited '@unchecked Sendable' conformance
 13 |
 14 | 	/// Amount of bytes already sent
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:48:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 46 |
 47 | 		// Seperate URLSession that handles the actual uploading and reports the upload progress
 48 | 		let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 49 | 		progress.totalUnitCount = Int64(self.totalBytes)
 50 |
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:48:50: error: cannot infer contextual base in reference to member 'ephemeral'
 46 |
 47 | 		// Seperate URLSession that handles the actual uploading and reports the upload progress
 48 | 		let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
    |                                                  `- error: cannot infer contextual base in reference to member 'ephemeral'
 49 | 		progress.totalUnitCount = Int64(self.totalBytes)
 50 |
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:48:92: error: 'nil' requires a contextual type
 46 |
 47 | 		// Seperate URLSession that handles the actual uploading and reports the upload progress
 48 | 		let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
    |                                                                                            `- error: 'nil' requires a contextual type
 49 | 		progress.totalUnitCount = Int64(self.totalBytes)
 50 |
[9/32] 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.
31 | 	private let operationQueue: OperationQueue
32 | 	/// URLSession handling the creation and actual uploading of the chunks
33 | 	private let session: URLSession
   |                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | 	/// Initializes the operation with the necessary file, operation queue and session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
39 | 	///   - operationQueue: Operation queue to add the operations to
40 | 	///   - session: URLSession that should handle the actual uploading
41 | 	required init(container: Transferable, file: File, operationQueue: OperationQueue, session: URLSession) {
   |                                                                                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | 		self.container = container
43 | 		self.file = file
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:12:13: warning: class 'UploadFileOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// Responsible for creating the necessary operations to create and upload chunks for the provided file. Uses the provided operation queue to handle created operations and the actual uploading is done with the provided URLSession
12 | final class UploadFileOperation: AsynchronousResultOperation<File> {
   |             `- warning: class 'UploadFileOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	enum Error: Swift.Error, LocalizedError {
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:12:118: error: cannot find type 'URLSessionDataDelegate' in scope
 10 |
 11 | /// Handles the uploading of all files -- that are not uploaded yet -- in the provided transfer. Creates an operation queue with an `UploadFileOperation` for each file to be uploaded.
 12 | final class UploadFilesOperation<Container: Transferable>: ChainedAsynchronousResultOperation<Container, Container>, URLSessionDataDelegate {
    |                                                                                                                      `- error: cannot find type 'URLSessionDataDelegate' in scope
 13 |
 14 | 	/// Amount of bytes already sent
/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.
 96 |
 97 | 	// Use the didSendBodyData delegate method to update the upload progress
 98 | 	func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 99 | 		self.bytesSent += UInt64(bytesSent)
100 | 		progress.completedUnitCount = Int64(self.bytesSent)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
 96 |
 97 | 	// Use the didSendBodyData delegate method to update the upload progress
 98 | 	func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64) {
    |                                               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 99 | 		self.bytesSent += UInt64(bytesSent)
100 | 		progress.completedUnitCount = Int64(self.bytesSent)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:12:13: warning: class 'UploadFilesOperation' must restate inherited '@unchecked Sendable' conformance
 10 |
 11 | /// Handles the uploading of all files -- that are not uploaded yet -- in the provided transfer. Creates an operation queue with an `UploadFileOperation` for each file to be uploaded.
 12 | final class UploadFilesOperation<Container: Transferable>: ChainedAsynchronousResultOperation<Container, Container>, URLSessionDataDelegate {
    |             `- warning: class 'UploadFilesOperation' must restate inherited '@unchecked Sendable' conformance
 13 |
 14 | 	/// Amount of bytes already sent
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:48:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 46 |
 47 | 		// Seperate URLSession that handles the actual uploading and reports the upload progress
 48 | 		let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 49 | 		progress.totalUnitCount = Int64(self.totalBytes)
 50 |
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:48:50: error: cannot infer contextual base in reference to member 'ephemeral'
 46 |
 47 | 		// Seperate URLSession that handles the actual uploading and reports the upload progress
 48 | 		let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
    |                                                  `- error: cannot infer contextual base in reference to member 'ephemeral'
 49 | 		progress.totalUnitCount = Int64(self.totalBytes)
 50 |
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:48:92: error: 'nil' requires a contextual type
 46 |
 47 | 		// Seperate URLSession that handles the actual uploading and reports the upload progress
 48 | 		let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
    |                                                                                            `- error: 'nil' requires a contextual type
 49 | 		progress.totalUnitCount = Int64(self.totalBytes)
 50 |
[10/32] Compiling WeTransfer Board.swift
[11/32] Compiling WeTransfer Chunk.swift
[12/32] Compiling WeTransfer File.swift
[13/32] Compiling WeTransfer Transfer.swift
[14/32] Compiling WeTransfer CompleteUploadOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/CompleteUploadOperation.swift:12:13: warning: class 'CompleteUploadOperation' must restate inherited '@unchecked Sendable' conformance
 10 |
 11 | /// Completes the upload of each file in a transfer. Typically used in `UploadFileOperation` after all the file's chunks have been uploaded
 12 | final class CompleteUploadOperation: AsynchronousResultOperation<File> {
    |             `- warning: class 'CompleteUploadOperation' must restate inherited '@unchecked Sendable' conformance
 13 |
 14 | 	enum Error: Swift.Error, LocalizedError {
/host/spi-builder-workspace/WeTransfer/Server/Operations/CreateBoardOperation.swift:13:13: warning: class 'CreateBoardOperation' must restate inherited '@unchecked Sendable' conformance
11 | /// Operation responsible for creating the transfer on the server and providing the given transfer object with an identifier and URL when succeeded.
12 | /// This operation does not handle the requests necessary to add files to the server side transfer, which `AddFilesOperation` is responsible for
13 | final class CreateBoardOperation: AsynchronousResultOperation<Board> {
   |             `- warning: class 'CreateBoardOperation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | 	private let board: Board
/host/spi-builder-workspace/WeTransfer/Server/Operations/CreateChunkOperation.swift:12:13: warning: class 'CreateChunkOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// Creates a chunk of a file to be uploaded. Designed to be used right before `UploadChunkOperation`
12 | final class CreateChunkOperation: AsynchronousResultOperation<Chunk> {
   |             `- warning: class 'CreateChunkOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	enum Error: Swift.Error, LocalizedError {
/host/spi-builder-workspace/WeTransfer/Server/Operations/CreateTransferOperation.swift:13:13: warning: class 'CreateTransferOperation' must restate inherited '@unchecked Sendable' conformance
11 | /// Operation responsible for creating the transfer on the server and providing the given transfer object with an identifier and URL when succeeded.
12 | /// This operation does not handle the requests necessary to add files to the server side transfer, which `AddFilesOperation` is responsible for
13 | final class CreateTransferOperation: AsynchronousResultOperation<Transfer> {
   |             `- warning: class 'CreateTransferOperation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | 	enum Error: Swift.Error, LocalizedError {
[15/32] Compiling WeTransfer CreateBoardOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/CompleteUploadOperation.swift:12:13: warning: class 'CompleteUploadOperation' must restate inherited '@unchecked Sendable' conformance
 10 |
 11 | /// Completes the upload of each file in a transfer. Typically used in `UploadFileOperation` after all the file's chunks have been uploaded
 12 | final class CompleteUploadOperation: AsynchronousResultOperation<File> {
    |             `- warning: class 'CompleteUploadOperation' must restate inherited '@unchecked Sendable' conformance
 13 |
 14 | 	enum Error: Swift.Error, LocalizedError {
/host/spi-builder-workspace/WeTransfer/Server/Operations/CreateBoardOperation.swift:13:13: warning: class 'CreateBoardOperation' must restate inherited '@unchecked Sendable' conformance
11 | /// Operation responsible for creating the transfer on the server and providing the given transfer object with an identifier and URL when succeeded.
12 | /// This operation does not handle the requests necessary to add files to the server side transfer, which `AddFilesOperation` is responsible for
13 | final class CreateBoardOperation: AsynchronousResultOperation<Board> {
   |             `- warning: class 'CreateBoardOperation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | 	private let board: Board
/host/spi-builder-workspace/WeTransfer/Server/Operations/CreateChunkOperation.swift:12:13: warning: class 'CreateChunkOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// Creates a chunk of a file to be uploaded. Designed to be used right before `UploadChunkOperation`
12 | final class CreateChunkOperation: AsynchronousResultOperation<Chunk> {
   |             `- warning: class 'CreateChunkOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	enum Error: Swift.Error, LocalizedError {
/host/spi-builder-workspace/WeTransfer/Server/Operations/CreateTransferOperation.swift:13:13: warning: class 'CreateTransferOperation' must restate inherited '@unchecked Sendable' conformance
11 | /// Operation responsible for creating the transfer on the server and providing the given transfer object with an identifier and URL when succeeded.
12 | /// This operation does not handle the requests necessary to add files to the server side transfer, which `AddFilesOperation` is responsible for
13 | final class CreateTransferOperation: AsynchronousResultOperation<Transfer> {
   |             `- warning: class 'CreateTransferOperation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | 	enum Error: Swift.Error, LocalizedError {
[16/32] Compiling WeTransfer CreateChunkOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/CompleteUploadOperation.swift:12:13: warning: class 'CompleteUploadOperation' must restate inherited '@unchecked Sendable' conformance
 10 |
 11 | /// Completes the upload of each file in a transfer. Typically used in `UploadFileOperation` after all the file's chunks have been uploaded
 12 | final class CompleteUploadOperation: AsynchronousResultOperation<File> {
    |             `- warning: class 'CompleteUploadOperation' must restate inherited '@unchecked Sendable' conformance
 13 |
 14 | 	enum Error: Swift.Error, LocalizedError {
/host/spi-builder-workspace/WeTransfer/Server/Operations/CreateBoardOperation.swift:13:13: warning: class 'CreateBoardOperation' must restate inherited '@unchecked Sendable' conformance
11 | /// Operation responsible for creating the transfer on the server and providing the given transfer object with an identifier and URL when succeeded.
12 | /// This operation does not handle the requests necessary to add files to the server side transfer, which `AddFilesOperation` is responsible for
13 | final class CreateBoardOperation: AsynchronousResultOperation<Board> {
   |             `- warning: class 'CreateBoardOperation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | 	private let board: Board
/host/spi-builder-workspace/WeTransfer/Server/Operations/CreateChunkOperation.swift:12:13: warning: class 'CreateChunkOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// Creates a chunk of a file to be uploaded. Designed to be used right before `UploadChunkOperation`
12 | final class CreateChunkOperation: AsynchronousResultOperation<Chunk> {
   |             `- warning: class 'CreateChunkOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	enum Error: Swift.Error, LocalizedError {
/host/spi-builder-workspace/WeTransfer/Server/Operations/CreateTransferOperation.swift:13:13: warning: class 'CreateTransferOperation' must restate inherited '@unchecked Sendable' conformance
11 | /// Operation responsible for creating the transfer on the server and providing the given transfer object with an identifier and URL when succeeded.
12 | /// This operation does not handle the requests necessary to add files to the server side transfer, which `AddFilesOperation` is responsible for
13 | final class CreateTransferOperation: AsynchronousResultOperation<Transfer> {
   |             `- warning: class 'CreateTransferOperation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | 	enum Error: Swift.Error, LocalizedError {
[17/32] Compiling WeTransfer CreateTransferOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/CompleteUploadOperation.swift:12:13: warning: class 'CompleteUploadOperation' must restate inherited '@unchecked Sendable' conformance
 10 |
 11 | /// Completes the upload of each file in a transfer. Typically used in `UploadFileOperation` after all the file's chunks have been uploaded
 12 | final class CompleteUploadOperation: AsynchronousResultOperation<File> {
    |             `- warning: class 'CompleteUploadOperation' must restate inherited '@unchecked Sendable' conformance
 13 |
 14 | 	enum Error: Swift.Error, LocalizedError {
/host/spi-builder-workspace/WeTransfer/Server/Operations/CreateBoardOperation.swift:13:13: warning: class 'CreateBoardOperation' must restate inherited '@unchecked Sendable' conformance
11 | /// Operation responsible for creating the transfer on the server and providing the given transfer object with an identifier and URL when succeeded.
12 | /// This operation does not handle the requests necessary to add files to the server side transfer, which `AddFilesOperation` is responsible for
13 | final class CreateBoardOperation: AsynchronousResultOperation<Board> {
   |             `- warning: class 'CreateBoardOperation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | 	private let board: Board
/host/spi-builder-workspace/WeTransfer/Server/Operations/CreateChunkOperation.swift:12:13: warning: class 'CreateChunkOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// Creates a chunk of a file to be uploaded. Designed to be used right before `UploadChunkOperation`
12 | final class CreateChunkOperation: AsynchronousResultOperation<Chunk> {
   |             `- warning: class 'CreateChunkOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	enum Error: Swift.Error, LocalizedError {
/host/spi-builder-workspace/WeTransfer/Server/Operations/CreateTransferOperation.swift:13:13: warning: class 'CreateTransferOperation' must restate inherited '@unchecked Sendable' conformance
11 | /// Operation responsible for creating the transfer on the server and providing the given transfer object with an identifier and URL when succeeded.
12 | /// This operation does not handle the requests necessary to add files to the server side transfer, which `AddFilesOperation` is responsible for
13 | final class CreateTransferOperation: AsynchronousResultOperation<Transfer> {
   |             `- warning: class 'CreateTransferOperation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | 	enum Error: Swift.Error, LocalizedError {
[18/32] Compiling WeTransfer AsynchronousOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:12:12: warning: class 'AsynchronousOperation' must restate inherited '@unchecked Sendable' conformance
 10 |
 11 | /// A base class to handle NSOperation states, because this is quite verbose due to KVO and the combined attribute states.
 12 | open class AsynchronousOperation: Operation {
    |            `- warning: class 'AsynchronousOperation' must restate inherited '@unchecked Sendable' conformance
 13 |
 14 | 	// MARK: - Types
/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 the Swift 6 language mode
10 |
11 | /// An asynchronous operation which will always have a result after completion.
12 | open class AsynchronousResultOperation<T>: AsynchronousOperation {
   |                                        `- note: 'T' previously declared here
13 |
14 | 	typealias ResultHandler<T> = ((_ result: Result<T>) -> Void)
   |                          `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
15 |
16 | 	enum Error: Swift.Error {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousResultOperation.swift:12:12: warning: class 'AsynchronousResultOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// An asynchronous operation which will always have a result after completion.
12 | open class AsynchronousResultOperation<T>: AsynchronousOperation {
   |            `- warning: class 'AsynchronousResultOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	typealias ResultHandler<T> = ((_ result: Result<T>) -> Void)
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/ChainedAsynchronousResultOperation.swift:12:12: warning: class 'ChainedAsynchronousResultOperation' must restate inherited '@unchecked Sendable' conformance
 10 |
 11 | // An asynchronous operation which is dependent on a parent operation for its input.
 12 | open class ChainedAsynchronousResultOperation<Input, Output>: AsynchronousResultOperation<Output> {
    |            `- warning: class 'ChainedAsynchronousResultOperation' must restate inherited '@unchecked Sendable' conformance
 13 |
 14 | 	public enum Error: Swift.Error {
/host/spi-builder-workspace/WeTransfer/Server/Operations/AddFilesOperation.swift:13:13: warning: class 'AddFilesOperation' must restate inherited '@unchecked Sendable' conformance
11 | /// Operation responsible for adding files to the provided board object and on the server as well. When succeeded, the files will be updated with the appropriate data like identifiers and information about the chunks.
12 | /// - Note: The files will be added to the provided board object when the operation has started executing
13 | final class AddFilesOperation: ChainedAsynchronousResultOperation<Board, Board> {
   |             `- warning: class 'AddFilesOperation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | 	enum Error: Swift.Error, LocalizedError {
[19/32] Compiling WeTransfer AsynchronousResultOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:12:12: warning: class 'AsynchronousOperation' must restate inherited '@unchecked Sendable' conformance
 10 |
 11 | /// A base class to handle NSOperation states, because this is quite verbose due to KVO and the combined attribute states.
 12 | open class AsynchronousOperation: Operation {
    |            `- warning: class 'AsynchronousOperation' must restate inherited '@unchecked Sendable' conformance
 13 |
 14 | 	// MARK: - Types
/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 the Swift 6 language mode
10 |
11 | /// An asynchronous operation which will always have a result after completion.
12 | open class AsynchronousResultOperation<T>: AsynchronousOperation {
   |                                        `- note: 'T' previously declared here
13 |
14 | 	typealias ResultHandler<T> = ((_ result: Result<T>) -> Void)
   |                          `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
15 |
16 | 	enum Error: Swift.Error {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousResultOperation.swift:12:12: warning: class 'AsynchronousResultOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// An asynchronous operation which will always have a result after completion.
12 | open class AsynchronousResultOperation<T>: AsynchronousOperation {
   |            `- warning: class 'AsynchronousResultOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	typealias ResultHandler<T> = ((_ result: Result<T>) -> Void)
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/ChainedAsynchronousResultOperation.swift:12:12: warning: class 'ChainedAsynchronousResultOperation' must restate inherited '@unchecked Sendable' conformance
 10 |
 11 | // An asynchronous operation which is dependent on a parent operation for its input.
 12 | open class ChainedAsynchronousResultOperation<Input, Output>: AsynchronousResultOperation<Output> {
    |            `- warning: class 'ChainedAsynchronousResultOperation' must restate inherited '@unchecked Sendable' conformance
 13 |
 14 | 	public enum Error: Swift.Error {
/host/spi-builder-workspace/WeTransfer/Server/Operations/AddFilesOperation.swift:13:13: warning: class 'AddFilesOperation' must restate inherited '@unchecked Sendable' conformance
11 | /// Operation responsible for adding files to the provided board object and on the server as well. When succeeded, the files will be updated with the appropriate data like identifiers and information about the chunks.
12 | /// - Note: The files will be added to the provided board object when the operation has started executing
13 | final class AddFilesOperation: ChainedAsynchronousResultOperation<Board, Board> {
   |             `- warning: class 'AddFilesOperation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | 	enum Error: Swift.Error, LocalizedError {
[20/32] Compiling WeTransfer ChainedAsynchronousResultOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:12:12: warning: class 'AsynchronousOperation' must restate inherited '@unchecked Sendable' conformance
 10 |
 11 | /// A base class to handle NSOperation states, because this is quite verbose due to KVO and the combined attribute states.
 12 | open class AsynchronousOperation: Operation {
    |            `- warning: class 'AsynchronousOperation' must restate inherited '@unchecked Sendable' conformance
 13 |
 14 | 	// MARK: - Types
/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 the Swift 6 language mode
10 |
11 | /// An asynchronous operation which will always have a result after completion.
12 | open class AsynchronousResultOperation<T>: AsynchronousOperation {
   |                                        `- note: 'T' previously declared here
13 |
14 | 	typealias ResultHandler<T> = ((_ result: Result<T>) -> Void)
   |                          `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
15 |
16 | 	enum Error: Swift.Error {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousResultOperation.swift:12:12: warning: class 'AsynchronousResultOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// An asynchronous operation which will always have a result after completion.
12 | open class AsynchronousResultOperation<T>: AsynchronousOperation {
   |            `- warning: class 'AsynchronousResultOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	typealias ResultHandler<T> = ((_ result: Result<T>) -> Void)
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/ChainedAsynchronousResultOperation.swift:12:12: warning: class 'ChainedAsynchronousResultOperation' must restate inherited '@unchecked Sendable' conformance
 10 |
 11 | // An asynchronous operation which is dependent on a parent operation for its input.
 12 | open class ChainedAsynchronousResultOperation<Input, Output>: AsynchronousResultOperation<Output> {
    |            `- warning: class 'ChainedAsynchronousResultOperation' must restate inherited '@unchecked Sendable' conformance
 13 |
 14 | 	public enum Error: Swift.Error {
/host/spi-builder-workspace/WeTransfer/Server/Operations/AddFilesOperation.swift:13:13: warning: class 'AddFilesOperation' must restate inherited '@unchecked Sendable' conformance
11 | /// Operation responsible for adding files to the provided board object and on the server as well. When succeeded, the files will be updated with the appropriate data like identifiers and information about the chunks.
12 | /// - Note: The files will be added to the provided board object when the operation has started executing
13 | final class AddFilesOperation: ChainedAsynchronousResultOperation<Board, Board> {
   |             `- warning: class 'AddFilesOperation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | 	enum Error: Swift.Error, LocalizedError {
[21/32] Compiling WeTransfer AddFilesOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:12:12: warning: class 'AsynchronousOperation' must restate inherited '@unchecked Sendable' conformance
 10 |
 11 | /// A base class to handle NSOperation states, because this is quite verbose due to KVO and the combined attribute states.
 12 | open class AsynchronousOperation: Operation {
    |            `- warning: class 'AsynchronousOperation' must restate inherited '@unchecked Sendable' conformance
 13 |
 14 | 	// MARK: - Types
/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 the Swift 6 language mode
10 |
11 | /// An asynchronous operation which will always have a result after completion.
12 | open class AsynchronousResultOperation<T>: AsynchronousOperation {
   |                                        `- note: 'T' previously declared here
13 |
14 | 	typealias ResultHandler<T> = ((_ result: Result<T>) -> Void)
   |                          `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
15 |
16 | 	enum Error: Swift.Error {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousResultOperation.swift:12:12: warning: class 'AsynchronousResultOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// An asynchronous operation which will always have a result after completion.
12 | open class AsynchronousResultOperation<T>: AsynchronousOperation {
   |            `- warning: class 'AsynchronousResultOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	typealias ResultHandler<T> = ((_ result: Result<T>) -> Void)
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/ChainedAsynchronousResultOperation.swift:12:12: warning: class 'ChainedAsynchronousResultOperation' must restate inherited '@unchecked Sendable' conformance
 10 |
 11 | // An asynchronous operation which is dependent on a parent operation for its input.
 12 | open class ChainedAsynchronousResultOperation<Input, Output>: AsynchronousResultOperation<Output> {
    |            `- warning: class 'ChainedAsynchronousResultOperation' must restate inherited '@unchecked Sendable' conformance
 13 |
 14 | 	public enum Error: Swift.Error {
/host/spi-builder-workspace/WeTransfer/Server/Operations/AddFilesOperation.swift:13:13: warning: class 'AddFilesOperation' must restate inherited '@unchecked Sendable' conformance
11 | /// Operation responsible for adding files to the provided board object and on the server as well. When succeeded, the files will be updated with the appropriate data like identifiers and information about the chunks.
12 | /// - Note: The files will be added to the provided board object when the operation has started executing
13 | final class AddFilesOperation: ChainedAsynchronousResultOperation<Board, Board> {
   |             `- warning: class 'AddFilesOperation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | 	enum Error: Swift.Error, LocalizedError {
[22/32] Compiling WeTransfer Transferable.swift
/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.
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | 	/// Main operation queue handling all operations concurrently
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                               `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
24 |
25 | 	/// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:58: error: cannot infer contextual base in reference to member 'default'
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                                                          `- error: cannot infer contextual base in reference to member 'default'
24 |
25 | 	/// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:77: error: 'nil' requires a contextual type
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                                                                             `- error: 'nil' requires a contextual type
24 |
25 | 	/// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:97: error: 'nil' requires a contextual type
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                                                                                                 `- error: 'nil' requires a contextual type
24 |
25 | 	/// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:52:95: error: cannot find type 'URLRequest' in scope
50 | 	/// - Returns: URLRequest pointing to URL with appropriate HTTP method set
51 | 	/// - Throws: `WeTransfer.Error` when not configured or not authorized
52 | 	func createRequest<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil) throws -> URLRequest {
   |                                                                                               `- error: cannot find type 'URLRequest' in scope
53 | 		guard let apiKey = apiKey, let baseURL = baseURL else {
54 | 			throw WeTransfer.Error.notConfigured
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:68:23: error: cannot find type 'URLRequest' in scope
66 | }
67 |
68 | fileprivate extension URLRequest {
   |                       `- error: cannot find type 'URLRequest' in scope
69 | 	/// Initializes a URLRequest instance from and endpoint
70 | 	///
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:57:17: error: cannot find 'URLRequest' in scope
55 | 		}
56 |
57 | 		var request = URLRequest(endpoint: endpoint, baseURL: baseURL, apiKey: apiKey)
   |                 `- error: cannot find 'URLRequest' in scope
58 | 		request = authenticator.authenticatedRequest(from: request)
59 | 		request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:57: error: cannot find type 'URLRequest' in scope
32 | 	/// - Parameter request: The request to update
33 | 	/// - Returns: An updated request with the correct authorization headers added
34 | 	func authenticatedRequest(from request: URLRequest) -> URLRequest {
   |                                                         `- error: cannot find type 'URLRequest' in scope
35 | 		var request = request
36 | 		if let bearer = bearer {
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:42: error: cannot find type 'URLRequest' in scope
32 | 	/// - Parameter request: The request to update
33 | 	/// - Returns: An updated request with the correct authorization headers added
34 | 	func authenticatedRequest(from request: URLRequest) -> URLRequest {
   |                                          `- error: cannot find type 'URLRequest' in scope
35 | 		var request = request
36 | 		if let bearer = bearer {
[23/32] Compiling WeTransfer APIClient.swift
/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.
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | 	/// Main operation queue handling all operations concurrently
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                               `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
24 |
25 | 	/// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:58: error: cannot infer contextual base in reference to member 'default'
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                                                          `- error: cannot infer contextual base in reference to member 'default'
24 |
25 | 	/// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:77: error: 'nil' requires a contextual type
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                                                                             `- error: 'nil' requires a contextual type
24 |
25 | 	/// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:97: error: 'nil' requires a contextual type
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                                                                                                 `- error: 'nil' requires a contextual type
24 |
25 | 	/// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:52:95: error: cannot find type 'URLRequest' in scope
50 | 	/// - Returns: URLRequest pointing to URL with appropriate HTTP method set
51 | 	/// - Throws: `WeTransfer.Error` when not configured or not authorized
52 | 	func createRequest<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil) throws -> URLRequest {
   |                                                                                               `- error: cannot find type 'URLRequest' in scope
53 | 		guard let apiKey = apiKey, let baseURL = baseURL else {
54 | 			throw WeTransfer.Error.notConfigured
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:68:23: error: cannot find type 'URLRequest' in scope
66 | }
67 |
68 | fileprivate extension URLRequest {
   |                       `- error: cannot find type 'URLRequest' in scope
69 | 	/// Initializes a URLRequest instance from and endpoint
70 | 	///
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:57:17: error: cannot find 'URLRequest' in scope
55 | 		}
56 |
57 | 		var request = URLRequest(endpoint: endpoint, baseURL: baseURL, apiKey: apiKey)
   |                 `- error: cannot find 'URLRequest' in scope
58 | 		request = authenticator.authenticatedRequest(from: request)
59 | 		request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:57: error: cannot find type 'URLRequest' in scope
32 | 	/// - Parameter request: The request to update
33 | 	/// - Returns: An updated request with the correct authorization headers added
34 | 	func authenticatedRequest(from request: URLRequest) -> URLRequest {
   |                                                         `- error: cannot find type 'URLRequest' in scope
35 | 		var request = request
36 | 		if let bearer = bearer {
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:42: error: cannot find type 'URLRequest' in scope
32 | 	/// - Parameter request: The request to update
33 | 	/// - Returns: An updated request with the correct authorization headers added
34 | 	func authenticatedRequest(from request: URLRequest) -> URLRequest {
   |                                          `- error: cannot find type 'URLRequest' in scope
35 | 		var request = request
36 | 		if let bearer = bearer {
[24/32] Compiling WeTransfer Authenticator.swift
/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.
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | 	/// Main operation queue handling all operations concurrently
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                               `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
24 |
25 | 	/// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:58: error: cannot infer contextual base in reference to member 'default'
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                                                          `- error: cannot infer contextual base in reference to member 'default'
24 |
25 | 	/// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:77: error: 'nil' requires a contextual type
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                                                                             `- error: 'nil' requires a contextual type
24 |
25 | 	/// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:97: error: 'nil' requires a contextual type
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                                                                                                 `- error: 'nil' requires a contextual type
24 |
25 | 	/// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:52:95: error: cannot find type 'URLRequest' in scope
50 | 	/// - Returns: URLRequest pointing to URL with appropriate HTTP method set
51 | 	/// - Throws: `WeTransfer.Error` when not configured or not authorized
52 | 	func createRequest<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil) throws -> URLRequest {
   |                                                                                               `- error: cannot find type 'URLRequest' in scope
53 | 		guard let apiKey = apiKey, let baseURL = baseURL else {
54 | 			throw WeTransfer.Error.notConfigured
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:68:23: error: cannot find type 'URLRequest' in scope
66 | }
67 |
68 | fileprivate extension URLRequest {
   |                       `- error: cannot find type 'URLRequest' in scope
69 | 	/// Initializes a URLRequest instance from and endpoint
70 | 	///
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:57:17: error: cannot find 'URLRequest' in scope
55 | 		}
56 |
57 | 		var request = URLRequest(endpoint: endpoint, baseURL: baseURL, apiKey: apiKey)
   |                 `- error: cannot find 'URLRequest' in scope
58 | 		request = authenticator.authenticatedRequest(from: request)
59 | 		request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:57: error: cannot find type 'URLRequest' in scope
32 | 	/// - Parameter request: The request to update
33 | 	/// - Returns: An updated request with the correct authorization headers added
34 | 	func authenticatedRequest(from request: URLRequest) -> URLRequest {
   |                                                         `- error: cannot find type 'URLRequest' in scope
35 | 		var request = request
36 | 		if let bearer = bearer {
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:42: error: cannot find type 'URLRequest' in scope
32 | 	/// - Parameter request: The request to update
33 | 	/// - Returns: An updated request with the correct authorization headers added
34 | 	func authenticatedRequest(from request: URLRequest) -> URLRequest {
   |                                          `- error: cannot find type 'URLRequest' in scope
35 | 		var request = request
36 | 		if let bearer = bearer {
[25/32] Compiling WeTransfer APIEndpoint.swift
/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.
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | 	/// Main operation queue handling all operations concurrently
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                               `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
24 |
25 | 	/// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:58: error: cannot infer contextual base in reference to member 'default'
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                                                          `- error: cannot infer contextual base in reference to member 'default'
24 |
25 | 	/// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:77: error: 'nil' requires a contextual type
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                                                                             `- error: 'nil' requires a contextual type
24 |
25 | 	/// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:97: error: 'nil' requires a contextual type
21 |
22 | 	/// Main URL session used by for all requests
23 | 	let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
   |                                                                                                 `- error: 'nil' requires a contextual type
24 |
25 | 	/// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:52:95: error: cannot find type 'URLRequest' in scope
50 | 	/// - Returns: URLRequest pointing to URL with appropriate HTTP method set
51 | 	/// - Throws: `WeTransfer.Error` when not configured or not authorized
52 | 	func createRequest<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil) throws -> URLRequest {
   |                                                                                               `- error: cannot find type 'URLRequest' in scope
53 | 		guard let apiKey = apiKey, let baseURL = baseURL else {
54 | 			throw WeTransfer.Error.notConfigured
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:68:23: error: cannot find type 'URLRequest' in scope
66 | }
67 |
68 | fileprivate extension URLRequest {
   |                       `- error: cannot find type 'URLRequest' in scope
69 | 	/// Initializes a URLRequest instance from and endpoint
70 | 	///
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:57:17: error: cannot find 'URLRequest' in scope
55 | 		}
56 |
57 | 		var request = URLRequest(endpoint: endpoint, baseURL: baseURL, apiKey: apiKey)
   |                 `- error: cannot find 'URLRequest' in scope
58 | 		request = authenticator.authenticatedRequest(from: request)
59 | 		request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:57: error: cannot find type 'URLRequest' in scope
32 | 	/// - Parameter request: The request to update
33 | 	/// - Returns: An updated request with the correct authorization headers added
34 | 	func authenticatedRequest(from request: URLRequest) -> URLRequest {
   |                                                         `- error: cannot find type 'URLRequest' in scope
35 | 		var request = request
36 | 		if let bearer = bearer {
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:42: error: cannot find type 'URLRequest' in scope
32 | 	/// - Parameter request: The request to update
33 | 	/// - Returns: An updated request with the correct authorization headers added
34 | 	func authenticatedRequest(from request: URLRequest) -> URLRequest {
   |                                          `- error: cannot find type 'URLRequest' in scope
35 | 		var request = request
36 | 		if let bearer = bearer {
[26/32] Compiling WeTransfer Endpoints.swift
[27/32] Compiling WeTransfer AddFiles.swift
[28/32] Compiling WeTransfer Authorize.swift
[29/32] Compiling WeTransfer CreateBoard.swift
[30/32] Compiling WeTransfer FinalizeTransferOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/FinalizeTransferOperation.swift:12:13: warning: class 'FinalizeTransferOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// Finalizes the provided Transfer after all files have been uploaded. The Transfer object will be updated with a URL as a result.
12 | final class FinalizeTransferOperation: ChainedAsynchronousResultOperation<Transfer, Transfer> {
   |             `- warning: class 'FinalizeTransferOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	/// Initializes the operation with a transfer. When initalized as part of a chain this operation can be initialized without any arguments
/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.
29 |
30 | 	/// URLSession handling the creation and actual uploading of the chunk
31 | 	let session: URLSession
   |               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | 	/// Initializes the operation with a session which handles the actual uploading part
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
34 | 	///
35 | 	/// - Parameter session: `URLSession` that should create and be responsible of the actual uploading part
36 | 	required init(session: URLSession) {
   |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | 		self.session = session
38 | 		super.init()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:12:13: warning: class 'UploadChunkOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// Uploads the chunk that resulted from the dependant `CreateChunkOperation`. The uploading is handled by the provided `URLSession`
12 | final class UploadChunkOperation: ChainedAsynchronousResultOperation<Chunk, Chunk> {
   |             `- warning: class 'UploadChunkOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	enum Error: Swift.Error, LocalizedError {
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:47:20: error: cannot find 'URLRequest' in scope
45 | 		}
46 |
47 | 		var urlRequest = URLRequest(url: chunk.uploadURL)
   |                    `- error: cannot find 'URLRequest' in scope
48 | 		urlRequest.httpMethod = "PUT"
49 | 		let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:49:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
47 | 		var urlRequest = URLRequest(url: chunk.uploadURL)
48 | 		urlRequest.httpMethod = "PUT"
49 | 		let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
   |                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
50 | 			if let error = error {
51 | 				self?.finish(with: .failure(error))
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:49:83: error: cannot infer type of closure parameter '_' without a type annotation
47 | 		var urlRequest = URLRequest(url: chunk.uploadURL)
48 | 		urlRequest.httpMethod = "PUT"
49 | 		let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
   |                                                                                   `- error: cannot infer type of closure parameter '_' without a type annotation
50 | 			if let error = error {
51 | 				self?.finish(with: .failure(error))
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:49:86: error: cannot infer type of closure parameter 'urlResponse' without a type annotation
47 | 		var urlRequest = URLRequest(url: chunk.uploadURL)
48 | 		urlRequest.httpMethod = "PUT"
49 | 		let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
   |                                                                                      `- error: cannot infer type of closure parameter 'urlResponse' without a type annotation
50 | 			if let error = error {
51 | 				self?.finish(with: .failure(error))
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:49:99: error: cannot infer type of closure parameter 'error' without a type annotation
47 | 		var urlRequest = URLRequest(url: chunk.uploadURL)
48 | 		urlRequest.httpMethod = "PUT"
49 | 		let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
   |                                                                                                   `- error: cannot infer type of closure parameter 'error' without a type annotation
50 | 			if let error = error {
51 | 				self?.finish(with: .failure(error))
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:54:86: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | 				return
53 | 			}
54 | 			if let response = urlResponse as? HTTPURLResponse, !(200...299).contains(response.statusCode) {
   |                                                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | 				self?.finish(with: .failure(Error.uploadFailed))
56 | 				return
[31/32] Compiling WeTransfer Result.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/FinalizeTransferOperation.swift:12:13: warning: class 'FinalizeTransferOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// Finalizes the provided Transfer after all files have been uploaded. The Transfer object will be updated with a URL as a result.
12 | final class FinalizeTransferOperation: ChainedAsynchronousResultOperation<Transfer, Transfer> {
   |             `- warning: class 'FinalizeTransferOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	/// Initializes the operation with a transfer. When initalized as part of a chain this operation can be initialized without any arguments
/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.
29 |
30 | 	/// URLSession handling the creation and actual uploading of the chunk
31 | 	let session: URLSession
   |               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | 	/// Initializes the operation with a session which handles the actual uploading part
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
34 | 	///
35 | 	/// - Parameter session: `URLSession` that should create and be responsible of the actual uploading part
36 | 	required init(session: URLSession) {
   |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | 		self.session = session
38 | 		super.init()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:12:13: warning: class 'UploadChunkOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// Uploads the chunk that resulted from the dependant `CreateChunkOperation`. The uploading is handled by the provided `URLSession`
12 | final class UploadChunkOperation: ChainedAsynchronousResultOperation<Chunk, Chunk> {
   |             `- warning: class 'UploadChunkOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	enum Error: Swift.Error, LocalizedError {
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:47:20: error: cannot find 'URLRequest' in scope
45 | 		}
46 |
47 | 		var urlRequest = URLRequest(url: chunk.uploadURL)
   |                    `- error: cannot find 'URLRequest' in scope
48 | 		urlRequest.httpMethod = "PUT"
49 | 		let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:49:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
47 | 		var urlRequest = URLRequest(url: chunk.uploadURL)
48 | 		urlRequest.httpMethod = "PUT"
49 | 		let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
   |                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
50 | 			if let error = error {
51 | 				self?.finish(with: .failure(error))
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:49:83: error: cannot infer type of closure parameter '_' without a type annotation
47 | 		var urlRequest = URLRequest(url: chunk.uploadURL)
48 | 		urlRequest.httpMethod = "PUT"
49 | 		let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
   |                                                                                   `- error: cannot infer type of closure parameter '_' without a type annotation
50 | 			if let error = error {
51 | 				self?.finish(with: .failure(error))
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:49:86: error: cannot infer type of closure parameter 'urlResponse' without a type annotation
47 | 		var urlRequest = URLRequest(url: chunk.uploadURL)
48 | 		urlRequest.httpMethod = "PUT"
49 | 		let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
   |                                                                                      `- error: cannot infer type of closure parameter 'urlResponse' without a type annotation
50 | 			if let error = error {
51 | 				self?.finish(with: .failure(error))
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:49:99: error: cannot infer type of closure parameter 'error' without a type annotation
47 | 		var urlRequest = URLRequest(url: chunk.uploadURL)
48 | 		urlRequest.httpMethod = "PUT"
49 | 		let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
   |                                                                                                   `- error: cannot infer type of closure parameter 'error' without a type annotation
50 | 			if let error = error {
51 | 				self?.finish(with: .failure(error))
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:54:86: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | 				return
53 | 			}
54 | 			if let response = urlResponse as? HTTPURLResponse, !(200...299).contains(response.statusCode) {
   |                                                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | 				self?.finish(with: .failure(Error.uploadFailed))
56 | 				return
[32/32] Compiling WeTransfer UploadChunkOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/FinalizeTransferOperation.swift:12:13: warning: class 'FinalizeTransferOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// Finalizes the provided Transfer after all files have been uploaded. The Transfer object will be updated with a URL as a result.
12 | final class FinalizeTransferOperation: ChainedAsynchronousResultOperation<Transfer, Transfer> {
   |             `- warning: class 'FinalizeTransferOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	/// Initializes the operation with a transfer. When initalized as part of a chain this operation can be initialized without any arguments
/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.
29 |
30 | 	/// URLSession handling the creation and actual uploading of the chunk
31 | 	let session: URLSession
   |               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | 	/// Initializes the operation with a session which handles the actual uploading part
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/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.
34 | 	///
35 | 	/// - Parameter session: `URLSession` that should create and be responsible of the actual uploading part
36 | 	required init(session: URLSession) {
   |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | 		self.session = session
38 | 		super.init()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:12:13: warning: class 'UploadChunkOperation' must restate inherited '@unchecked Sendable' conformance
10 |
11 | /// Uploads the chunk that resulted from the dependant `CreateChunkOperation`. The uploading is handled by the provided `URLSession`
12 | final class UploadChunkOperation: ChainedAsynchronousResultOperation<Chunk, Chunk> {
   |             `- warning: class 'UploadChunkOperation' must restate inherited '@unchecked Sendable' conformance
13 |
14 | 	enum Error: Swift.Error, LocalizedError {
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:47:20: error: cannot find 'URLRequest' in scope
45 | 		}
46 |
47 | 		var urlRequest = URLRequest(url: chunk.uploadURL)
   |                    `- error: cannot find 'URLRequest' in scope
48 | 		urlRequest.httpMethod = "PUT"
49 | 		let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:49:27: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
47 | 		var urlRequest = URLRequest(url: chunk.uploadURL)
48 | 		urlRequest.httpMethod = "PUT"
49 | 		let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
   |                           `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
50 | 			if let error = error {
51 | 				self?.finish(with: .failure(error))
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:49:83: error: cannot infer type of closure parameter '_' without a type annotation
47 | 		var urlRequest = URLRequest(url: chunk.uploadURL)
48 | 		urlRequest.httpMethod = "PUT"
49 | 		let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
   |                                                                                   `- error: cannot infer type of closure parameter '_' without a type annotation
50 | 			if let error = error {
51 | 				self?.finish(with: .failure(error))
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:49:86: error: cannot infer type of closure parameter 'urlResponse' without a type annotation
47 | 		var urlRequest = URLRequest(url: chunk.uploadURL)
48 | 		urlRequest.httpMethod = "PUT"
49 | 		let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
   |                                                                                      `- error: cannot infer type of closure parameter 'urlResponse' without a type annotation
50 | 			if let error = error {
51 | 				self?.finish(with: .failure(error))
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:49:99: error: cannot infer type of closure parameter 'error' without a type annotation
47 | 		var urlRequest = URLRequest(url: chunk.uploadURL)
48 | 		urlRequest.httpMethod = "PUT"
49 | 		let task = self.session.uploadTask(with: urlRequest, from: data) { [weak self] (_, urlResponse, error) in
   |                                                                                                   `- error: cannot infer type of closure parameter 'error' without a type annotation
50 | 			if let error = error {
51 | 				self?.finish(with: .failure(error))
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:54:86: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 | 				return
53 | 			}
54 | 			if let response = urlResponse as? HTTPURLResponse, !(200...299).contains(response.statusCode) {
   |                                                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | 				self?.finish(with: .failure(Error.uploadFailed))
56 | 				return
BUILD FAILURE 6.1 linux