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 v1.0.1 (73fe43), with Swift 6.0 for Linux on 30 Oct 2024 17:48:48 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/WeTransfer/WeTransfer-Swift-SDK.git
Reference: v1.0.1
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/WeTransfer/WeTransfer-Swift-SDK
 * tag               v1.0.1     -> FETCH_HEAD
HEAD is now at 73fe433 Fixed guideline and visual errors in Package.swift
Submodule path 'Submodules/WeTransfer-iOS-CI': checked out 'de7710f6f26ea4268fe35d4373ebdb22663dc7eb'
Submodule 'Submodules/WeTransfer-iOS-CI' (https://github.com/WeTransfer/WeTransfer-iOS-CI.git) registered for path 'Submodules/WeTransfer-iOS-CI'
Cloning into '/host/spi-builder-workspace/Submodules/WeTransfer-iOS-CI'...
Cloned https://github.com/WeTransfer/WeTransfer-Swift-SDK.git
Revision (git rev-parse @):
73fe433656ac446851cb9cf145a147a630fc3d62
SUCCESS checkout https://github.com/WeTransfer/WeTransfer-Swift-SDK.git at v1.0.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/WeTransfer/WeTransfer-Swift-SDK.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/25] Emitting module WeTransfer
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift: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:67:23: error: cannot find type 'URLRequest' in scope
65 | }
66 |
67 | fileprivate extension URLRequest {
   |                       `- error: cannot find type 'URLRequest' in scope
68 | 	/// Initializes a URLRequest instance from and endpoint
69 | 	///
/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 transfer 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 transfer object when the operation has started executing
13 | final class AddFilesOperation: ChainedAsynchronousResultOperation<Transfer, Transfer> {
   |             `- warning: class 'AddFilesOperation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | 	/// The files to be added to the transfer if added during the initialization
/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/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 | 	private let transfer: Transfer
/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:31:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | 	private let operationQueue: OperationQueue
30 | 	/// URLSession handling the creation and actual uploading of the chunks
31 | 	private 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 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:39:69: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | 	///   - operationQueue: Operation queue to add the operations to
38 | 	///   - session: URLSession that should handle the actual uploading
39 | 	required init(file: File, operationQueue: OperationQueue, session: URLSession) {
   |                                                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | 		self.file = file
41 | 		self.operationQueue = operationQueue
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:91: 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: ChainedAsynchronousResultOperation<Transfer, Transfer>, URLSessionDataDelegate {
    |                                                                                           `- error: cannot find type 'URLSessionDataDelegate' in scope
 13 |
 14 | 	/// Amount of bytes already sent
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:102:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |
101 | 	// Use the didSendBodyData delegate method to update the upload progress
102 | 	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.
103 | 		self.bytesSent += UInt64(bytesSent)
104 | 		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:102:47: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |
101 | 	// Use the didSendBodyData delegate method to update the upload progress
102 | 	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.
103 | 		self.bytesSent += UInt64(bytesSent)
104 | 		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: ChainedAsynchronousResultOperation<Transfer, Transfer>, URLSessionDataDelegate {
    |             `- warning: class 'UploadFilesOperation' must restate inherited '@unchecked Sendable' conformance
 13 |
 14 | 	/// Amount of bytes already sent
/host/spi-builder-workspace/WeTransfer/WeTransfer.swift:18:13: warning: static property 'client' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 16 |
 17 | 	/// The client used for all requests. Stores the authenticated state and creates and manages all requests
 18 | 	static var client: APIClient = APIClient()
    |             |- warning: static property 'client' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'client' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'client' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 19 |
 20 | 	private init() {}
[4/28] Compiling WeTransfer UploadFileOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:31:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | 	private let operationQueue: OperationQueue
30 | 	/// URLSession handling the creation and actual uploading of the chunks
31 | 	private 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 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:39:69: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | 	///   - operationQueue: Operation queue to add the operations to
38 | 	///   - session: URLSession that should handle the actual uploading
39 | 	required init(file: File, operationQueue: OperationQueue, session: URLSession) {
   |                                                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | 		self.file = file
41 | 		self.operationQueue = operationQueue
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:91: 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: ChainedAsynchronousResultOperation<Transfer, Transfer>, URLSessionDataDelegate {
    |                                                                                           `- error: cannot find type 'URLSessionDataDelegate' in scope
 13 |
 14 | 	/// Amount of bytes already sent
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:102:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |
101 | 	// Use the didSendBodyData delegate method to update the upload progress
102 | 	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.
103 | 		self.bytesSent += UInt64(bytesSent)
104 | 		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:102:47: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |
101 | 	// Use the didSendBodyData delegate method to update the upload progress
102 | 	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.
103 | 		self.bytesSent += UInt64(bytesSent)
104 | 		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: ChainedAsynchronousResultOperation<Transfer, Transfer>, 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:52:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 50 |
 51 | 		// Seperate URLSession that handles the actual uploading and reports the upload progress
 52 | 		let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 53 | 		progress.totalUnitCount = Int64(self.totalBytes)
 54 |
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:52:50: error: cannot infer contextual base in reference to member 'ephemeral'
 50 |
 51 | 		// Seperate URLSession that handles the actual uploading and reports the upload progress
 52 | 		let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
    |                                                  `- error: cannot infer contextual base in reference to member 'ephemeral'
 53 | 		progress.totalUnitCount = Int64(self.totalBytes)
 54 |
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:52:92: error: 'nil' requires a contextual type
 50 |
 51 | 		// Seperate URLSession that handles the actual uploading and reports the upload progress
 52 | 		let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
    |                                                                                            `- error: 'nil' requires a contextual type
 53 | 		progress.totalUnitCount = Int64(self.totalBytes)
 54 |
/host/spi-builder-workspace/WeTransfer/WeTransfer.swift:18:13: warning: static property 'client' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 16 |
 17 | 	/// The client used for all requests. Stores the authenticated state and creates and manages all requests
 18 | 	static var client: APIClient = APIClient()
    |             |- warning: static property 'client' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'client' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'client' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 19 |
 20 | 	private init() {}
/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/WeTransfer.swift:96:5: warning: capture of 'stateChanged' with non-sendable type '(WeTransfer.State) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 94 | 		let changeState = { state in
 95 | 			DispatchQueue.main.async {
 96 | 				stateChanged(state)
    |     |- warning: capture of 'stateChanged' with non-sendable type '(WeTransfer.State) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 97 | 			}
 98 | 		}
/host/spi-builder-workspace/WeTransfer/WeTransfer.swift:96:18: warning: capture of 'state' with non-sendable type 'WeTransfer.State' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 94 | 		let changeState = { state in
 95 | 			DispatchQueue.main.async {
 96 | 				stateChanged(state)
    |                  `- warning: capture of 'state' with non-sendable type 'WeTransfer.State' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 97 | 			}
 98 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Methods/Upload.swift:14:14: note: consider making enum 'State' conform to the 'Sendable' protocol
12 |
13 | 	/// State of current transfer
14 | 	public enum State {
   |              `- note: consider making enum 'State' conform to the 'Sendable' protocol
15 | 		/// Transfer is created server side, share url is now available
16 | 		case created(Transfer)
[5/28] Compiling WeTransfer UploadFilesOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:31:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | 	private let operationQueue: OperationQueue
30 | 	/// URLSession handling the creation and actual uploading of the chunks
31 | 	private 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 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:39:69: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | 	///   - operationQueue: Operation queue to add the operations to
38 | 	///   - session: URLSession that should handle the actual uploading
39 | 	required init(file: File, operationQueue: OperationQueue, session: URLSession) {
   |                                                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | 		self.file = file
41 | 		self.operationQueue = operationQueue
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:91: 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: ChainedAsynchronousResultOperation<Transfer, Transfer>, URLSessionDataDelegate {
    |                                                                                           `- error: cannot find type 'URLSessionDataDelegate' in scope
 13 |
 14 | 	/// Amount of bytes already sent
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:102:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |
101 | 	// Use the didSendBodyData delegate method to update the upload progress
102 | 	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.
103 | 		self.bytesSent += UInt64(bytesSent)
104 | 		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:102:47: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |
101 | 	// Use the didSendBodyData delegate method to update the upload progress
102 | 	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.
103 | 		self.bytesSent += UInt64(bytesSent)
104 | 		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: ChainedAsynchronousResultOperation<Transfer, Transfer>, 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:52:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 50 |
 51 | 		// Seperate URLSession that handles the actual uploading and reports the upload progress
 52 | 		let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 53 | 		progress.totalUnitCount = Int64(self.totalBytes)
 54 |
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:52:50: error: cannot infer contextual base in reference to member 'ephemeral'
 50 |
 51 | 		// Seperate URLSession that handles the actual uploading and reports the upload progress
 52 | 		let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
    |                                                  `- error: cannot infer contextual base in reference to member 'ephemeral'
 53 | 		progress.totalUnitCount = Int64(self.totalBytes)
 54 |
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:52:92: error: 'nil' requires a contextual type
 50 |
 51 | 		// Seperate URLSession that handles the actual uploading and reports the upload progress
 52 | 		let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
    |                                                                                            `- error: 'nil' requires a contextual type
 53 | 		progress.totalUnitCount = Int64(self.totalBytes)
 54 |
/host/spi-builder-workspace/WeTransfer/WeTransfer.swift:18:13: warning: static property 'client' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 16 |
 17 | 	/// The client used for all requests. Stores the authenticated state and creates and manages all requests
 18 | 	static var client: APIClient = APIClient()
    |             |- warning: static property 'client' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'client' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'client' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 19 |
 20 | 	private init() {}
/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/WeTransfer.swift:96:5: warning: capture of 'stateChanged' with non-sendable type '(WeTransfer.State) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 94 | 		let changeState = { state in
 95 | 			DispatchQueue.main.async {
 96 | 				stateChanged(state)
    |     |- warning: capture of 'stateChanged' with non-sendable type '(WeTransfer.State) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 97 | 			}
 98 | 		}
/host/spi-builder-workspace/WeTransfer/WeTransfer.swift:96:18: warning: capture of 'state' with non-sendable type 'WeTransfer.State' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 94 | 		let changeState = { state in
 95 | 			DispatchQueue.main.async {
 96 | 				stateChanged(state)
    |                  `- warning: capture of 'state' with non-sendable type 'WeTransfer.State' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 97 | 			}
 98 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Methods/Upload.swift:14:14: note: consider making enum 'State' conform to the 'Sendable' protocol
12 |
13 | 	/// State of current transfer
14 | 	public enum State {
   |              `- note: consider making enum 'State' conform to the 'Sendable' protocol
15 | 		/// Transfer is created server side, share url is now available
16 | 		case created(Transfer)
[6/28] Compiling WeTransfer WeTransfer.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:31:23: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | 	private let operationQueue: OperationQueue
30 | 	/// URLSession handling the creation and actual uploading of the chunks
31 | 	private 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 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:39:69: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | 	///   - operationQueue: Operation queue to add the operations to
38 | 	///   - session: URLSession that should handle the actual uploading
39 | 	required init(file: File, operationQueue: OperationQueue, session: URLSession) {
   |                                                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | 		self.file = file
41 | 		self.operationQueue = operationQueue
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:91: 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: ChainedAsynchronousResultOperation<Transfer, Transfer>, URLSessionDataDelegate {
    |                                                                                           `- error: cannot find type 'URLSessionDataDelegate' in scope
 13 |
 14 | 	/// Amount of bytes already sent
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:102:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |
101 | 	// Use the didSendBodyData delegate method to update the upload progress
102 | 	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.
103 | 		self.bytesSent += UInt64(bytesSent)
104 | 		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:102:47: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |
101 | 	// Use the didSendBodyData delegate method to update the upload progress
102 | 	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.
103 | 		self.bytesSent += UInt64(bytesSent)
104 | 		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: ChainedAsynchronousResultOperation<Transfer, Transfer>, 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:52:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 50 |
 51 | 		// Seperate URLSession that handles the actual uploading and reports the upload progress
 52 | 		let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 53 | 		progress.totalUnitCount = Int64(self.totalBytes)
 54 |
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:52:50: error: cannot infer contextual base in reference to member 'ephemeral'
 50 |
 51 | 		// Seperate URLSession that handles the actual uploading and reports the upload progress
 52 | 		let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
    |                                                  `- error: cannot infer contextual base in reference to member 'ephemeral'
 53 | 		progress.totalUnitCount = Int64(self.totalBytes)
 54 |
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:52:92: error: 'nil' requires a contextual type
 50 |
 51 | 		// Seperate URLSession that handles the actual uploading and reports the upload progress
 52 | 		let uploadSession = URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
    |                                                                                            `- error: 'nil' requires a contextual type
 53 | 		progress.totalUnitCount = Int64(self.totalBytes)
 54 |
/host/spi-builder-workspace/WeTransfer/WeTransfer.swift:18:13: warning: static property 'client' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 16 |
 17 | 	/// The client used for all requests. Stores the authenticated state and creates and manages all requests
 18 | 	static var client: APIClient = APIClient()
    |             |- warning: static property 'client' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'client' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'client' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 19 |
 20 | 	private init() {}
/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/WeTransfer.swift:96:5: warning: capture of 'stateChanged' with non-sendable type '(WeTransfer.State) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 94 | 		let changeState = { state in
 95 | 			DispatchQueue.main.async {
 96 | 				stateChanged(state)
    |     |- warning: capture of 'stateChanged' with non-sendable type '(WeTransfer.State) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 97 | 			}
 98 | 		}
/host/spi-builder-workspace/WeTransfer/WeTransfer.swift:96:18: warning: capture of 'state' with non-sendable type 'WeTransfer.State' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 94 | 		let changeState = { state in
 95 | 			DispatchQueue.main.async {
 96 | 				stateChanged(state)
    |                  `- warning: capture of 'state' with non-sendable type 'WeTransfer.State' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 97 | 			}
 98 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Methods/Upload.swift:14:14: note: consider making enum 'State' conform to the 'Sendable' protocol
12 |
13 | 	/// State of current transfer
14 | 	public enum State {
   |              `- note: consider making enum 'State' conform to the 'Sendable' protocol
15 | 		/// Transfer is created server side, share url is now available
16 | 		case created(Transfer)
[7/28] Compiling WeTransfer Chunk.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:67:23: error: cannot find type 'URLRequest' in scope
65 | }
66 |
67 | fileprivate extension URLRequest {
   |                       `- error: cannot find type 'URLRequest' in scope
68 | 	/// Initializes a URLRequest instance from and endpoint
69 | 	///
/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 |
/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 {
[8/28] Compiling WeTransfer File.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:67:23: error: cannot find type 'URLRequest' in scope
65 | }
66 |
67 | fileprivate extension URLRequest {
   |                       `- error: cannot find type 'URLRequest' in scope
68 | 	/// Initializes a URLRequest instance from and endpoint
69 | 	///
/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 |
/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 {
[9/28] Compiling WeTransfer Transfer.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:67:23: error: cannot find type 'URLRequest' in scope
65 | }
66 |
67 | fileprivate extension URLRequest {
   |                       `- error: cannot find type 'URLRequest' in scope
68 | 	/// Initializes a URLRequest instance from and endpoint
69 | 	///
/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 |
/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 {
[10/28] 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:67:23: error: cannot find type 'URLRequest' in scope
65 | }
66 |
67 | fileprivate extension URLRequest {
   |                       `- error: cannot find type 'URLRequest' in scope
68 | 	/// Initializes a URLRequest instance from and endpoint
69 | 	///
/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 |
/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 {
[11/28] Compiling WeTransfer AddFiles.swift
/host/spi-builder-workspace/WeTransfer/Server/Methods/AddFiles.swift:24:5: warning: capture of 'completion' with non-sendable type '(Result<Transfer>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | 		operation.onResult = { result in
23 | 			DispatchQueue.main.async {
24 | 				completion(result)
   |     |- warning: capture of 'completion' with non-sendable type '(Result<Transfer>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
25 | 			}
26 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Methods/AddFiles.swift:24:16: warning: capture of 'result' with non-sendable type 'Result<Transfer>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | 		operation.onResult = { result in
23 | 			DispatchQueue.main.async {
24 | 				completion(result)
   |                `- warning: capture of 'result' with non-sendable type 'Result<Transfer>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | 			}
26 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Operations/Helpers/Result.swift:12:13: note: consider making generic enum 'Result' conform to the 'Sendable' protocol
10 |
11 | /// Enum with either a value when succeeded or an error when failed
12 | public enum Result<Value> {
   |             `- note: consider making generic enum 'Result' conform to the 'Sendable' protocol
13 | 	/// The operation has succeeded and requested value is available
14 | 	case success(Value)
/host/spi-builder-workspace/WeTransfer/WeTransfer.swift:18:13: warning: static property 'client' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 16 |
 17 | 	/// The client used for all requests. Stores the authenticated state and creates and manages all requests
 18 | 	static var client: APIClient = APIClient()
    |             |- warning: static property 'client' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'client' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'client' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 19 |
 20 | 	private init() {}
/host/spi-builder-workspace/WeTransfer/Server/Methods/Authorize.swift:21:5: warning: capture of 'completion' with non-sendable type '(Result<Void>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | 		let callCompletion = { result in
20 | 			DispatchQueue.main.async {
21 | 				completion(result)
   |     |- warning: capture of 'completion' with non-sendable type '(Result<Void>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
22 | 			}
23 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Methods/Authorize.swift:21:16: warning: capture of 'result' with non-sendable type 'Result<Void>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | 		let callCompletion = { result in
20 | 			DispatchQueue.main.async {
21 | 				completion(result)
   |                `- warning: capture of 'result' with non-sendable type 'Result<Void>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | 			}
23 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Operations/Helpers/Result.swift:12:13: note: consider making generic enum 'Result' conform to the 'Sendable' protocol
10 |
11 | /// Enum with either a value when succeeded or an error when failed
12 | public enum Result<Value> {
   |             `- note: consider making generic enum 'Result' conform to the 'Sendable' protocol
13 | 	/// The operation has succeeded and requested value is available
14 | 	case success(Value)
/host/spi-builder-workspace/WeTransfer/Server/Methods/CreateTransfer.swift:24:5: warning: capture of 'completion' with non-sendable type '(Result<Transfer>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | 		let callCompletion = { result in
23 | 			DispatchQueue.main.async {
24 | 				completion(result)
   |     |- warning: capture of 'completion' with non-sendable type '(Result<Transfer>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
25 | 			}
26 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Methods/CreateTransfer.swift:24:16: warning: capture of 'result' with non-sendable type 'Result<Transfer>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | 		let callCompletion = { result in
23 | 			DispatchQueue.main.async {
24 | 				completion(result)
   |                `- warning: capture of 'result' with non-sendable type 'Result<Transfer>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | 			}
26 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Operations/Helpers/Result.swift:12:13: note: consider making generic enum 'Result' conform to the 'Sendable' protocol
10 |
11 | /// Enum with either a value when succeeded or an error when failed
12 | public enum Result<Value> {
   |             `- note: consider making generic enum 'Result' conform to the 'Sendable' protocol
13 | 	/// The operation has succeeded and requested value is available
14 | 	case success(Value)
/host/spi-builder-workspace/WeTransfer/Server/Methods/AddFiles.swift:24:5: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
22 | 		operation.onResult = { result in
23 | 			DispatchQueue.main.async {
24 | 				completion(result)
   |     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
   |     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
25 | 			}
26 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Methods/AddFiles.swift:24:16: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
22 | 		operation.onResult = { result in
23 | 			DispatchQueue.main.async {
24 | 				completion(result)
   |                |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
   |                `- note: task-isolated 'result' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
25 | 			}
26 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Methods/Authorize.swift:21:5: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
19 | 		let callCompletion = { result in
20 | 			DispatchQueue.main.async {
21 | 				completion(result)
   |     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
   |     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
22 | 			}
23 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Methods/Authorize.swift:21:16: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
19 | 		let callCompletion = { result in
20 | 			DispatchQueue.main.async {
21 | 				completion(result)
   |                |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
   |                `- note: task-isolated 'result' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
22 | 			}
23 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Methods/CreateTransfer.swift:24:5: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
22 | 		let callCompletion = { result in
23 | 			DispatchQueue.main.async {
24 | 				completion(result)
   |     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
   |     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
25 | 			}
26 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Methods/CreateTransfer.swift:24:16: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
22 | 		let callCompletion = { result in
23 | 			DispatchQueue.main.async {
24 | 				completion(result)
   |                |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
   |                `- note: task-isolated 'result' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
25 | 			}
26 | 		}
[12/28] Compiling WeTransfer Authorize.swift
/host/spi-builder-workspace/WeTransfer/Server/Methods/AddFiles.swift:24:5: warning: capture of 'completion' with non-sendable type '(Result<Transfer>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | 		operation.onResult = { result in
23 | 			DispatchQueue.main.async {
24 | 				completion(result)
   |     |- warning: capture of 'completion' with non-sendable type '(Result<Transfer>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
25 | 			}
26 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Methods/AddFiles.swift:24:16: warning: capture of 'result' with non-sendable type 'Result<Transfer>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | 		operation.onResult = { result in
23 | 			DispatchQueue.main.async {
24 | 				completion(result)
   |                `- warning: capture of 'result' with non-sendable type 'Result<Transfer>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | 			}
26 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Operations/Helpers/Result.swift:12:13: note: consider making generic enum 'Result' conform to the 'Sendable' protocol
10 |
11 | /// Enum with either a value when succeeded or an error when failed
12 | public enum Result<Value> {
   |             `- note: consider making generic enum 'Result' conform to the 'Sendable' protocol
13 | 	/// The operation has succeeded and requested value is available
14 | 	case success(Value)
/host/spi-builder-workspace/WeTransfer/WeTransfer.swift:18:13: warning: static property 'client' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 16 |
 17 | 	/// The client used for all requests. Stores the authenticated state and creates and manages all requests
 18 | 	static var client: APIClient = APIClient()
    |             |- warning: static property 'client' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'client' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'client' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 19 |
 20 | 	private init() {}
/host/spi-builder-workspace/WeTransfer/Server/Methods/Authorize.swift:21:5: warning: capture of 'completion' with non-sendable type '(Result<Void>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | 		let callCompletion = { result in
20 | 			DispatchQueue.main.async {
21 | 				completion(result)
   |     |- warning: capture of 'completion' with non-sendable type '(Result<Void>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
22 | 			}
23 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Methods/Authorize.swift:21:16: warning: capture of 'result' with non-sendable type 'Result<Void>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | 		let callCompletion = { result in
20 | 			DispatchQueue.main.async {
21 | 				completion(result)
   |                `- warning: capture of 'result' with non-sendable type 'Result<Void>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | 			}
23 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Operations/Helpers/Result.swift:12:13: note: consider making generic enum 'Result' conform to the 'Sendable' protocol
10 |
11 | /// Enum with either a value when succeeded or an error when failed
12 | public enum Result<Value> {
   |             `- note: consider making generic enum 'Result' conform to the 'Sendable' protocol
13 | 	/// The operation has succeeded and requested value is available
14 | 	case success(Value)
/host/spi-builder-workspace/WeTransfer/Server/Methods/CreateTransfer.swift:24:5: warning: capture of 'completion' with non-sendable type '(Result<Transfer>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | 		let callCompletion = { result in
23 | 			DispatchQueue.main.async {
24 | 				completion(result)
   |     |- warning: capture of 'completion' with non-sendable type '(Result<Transfer>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
25 | 			}
26 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Methods/CreateTransfer.swift:24:16: warning: capture of 'result' with non-sendable type 'Result<Transfer>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | 		let callCompletion = { result in
23 | 			DispatchQueue.main.async {
24 | 				completion(result)
   |                `- warning: capture of 'result' with non-sendable type 'Result<Transfer>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | 			}
26 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Operations/Helpers/Result.swift:12:13: note: consider making generic enum 'Result' conform to the 'Sendable' protocol
10 |
11 | /// Enum with either a value when succeeded or an error when failed
12 | public enum Result<Value> {
   |             `- note: consider making generic enum 'Result' conform to the 'Sendable' protocol
13 | 	/// The operation has succeeded and requested value is available
14 | 	case success(Value)
/host/spi-builder-workspace/WeTransfer/Server/Methods/AddFiles.swift:24:5: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
22 | 		operation.onResult = { result in
23 | 			DispatchQueue.main.async {
24 | 				completion(result)
   |     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
   |     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
25 | 			}
26 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Methods/AddFiles.swift:24:16: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
22 | 		operation.onResult = { result in
23 | 			DispatchQueue.main.async {
24 | 				completion(result)
   |                |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
   |                `- note: task-isolated 'result' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
25 | 			}
26 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Methods/Authorize.swift:21:5: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
19 | 		let callCompletion = { result in
20 | 			DispatchQueue.main.async {
21 | 				completion(result)
   |     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
   |     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
22 | 			}
23 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Methods/Authorize.swift:21:16: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
19 | 		let callCompletion = { result in
20 | 			DispatchQueue.main.async {
21 | 				completion(result)
   |                |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
   |                `- note: task-isolated 'result' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
22 | 			}
23 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Methods/CreateTransfer.swift:24:5: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
22 | 		let callCompletion = { result in
23 | 			DispatchQueue.main.async {
24 | 				completion(result)
   |     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
   |     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
25 | 			}
26 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Methods/CreateTransfer.swift:24:16: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
22 | 		let callCompletion = { result in
23 | 			DispatchQueue.main.async {
24 | 				completion(result)
   |                |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
   |                `- note: task-isolated 'result' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
25 | 			}
26 | 		}
[13/28] Compiling WeTransfer CreateTransfer.swift
/host/spi-builder-workspace/WeTransfer/Server/Methods/AddFiles.swift:24:5: warning: capture of 'completion' with non-sendable type '(Result<Transfer>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | 		operation.onResult = { result in
23 | 			DispatchQueue.main.async {
24 | 				completion(result)
   |     |- warning: capture of 'completion' with non-sendable type '(Result<Transfer>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
25 | 			}
26 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Methods/AddFiles.swift:24:16: warning: capture of 'result' with non-sendable type 'Result<Transfer>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | 		operation.onResult = { result in
23 | 			DispatchQueue.main.async {
24 | 				completion(result)
   |                `- warning: capture of 'result' with non-sendable type 'Result<Transfer>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | 			}
26 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Operations/Helpers/Result.swift:12:13: note: consider making generic enum 'Result' conform to the 'Sendable' protocol
10 |
11 | /// Enum with either a value when succeeded or an error when failed
12 | public enum Result<Value> {
   |             `- note: consider making generic enum 'Result' conform to the 'Sendable' protocol
13 | 	/// The operation has succeeded and requested value is available
14 | 	case success(Value)
/host/spi-builder-workspace/WeTransfer/WeTransfer.swift:18:13: warning: static property 'client' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 16 |
 17 | 	/// The client used for all requests. Stores the authenticated state and creates and manages all requests
 18 | 	static var client: APIClient = APIClient()
    |             |- warning: static property 'client' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'client' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'client' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 19 |
 20 | 	private init() {}
/host/spi-builder-workspace/WeTransfer/Server/Methods/Authorize.swift:21:5: warning: capture of 'completion' with non-sendable type '(Result<Void>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | 		let callCompletion = { result in
20 | 			DispatchQueue.main.async {
21 | 				completion(result)
   |     |- warning: capture of 'completion' with non-sendable type '(Result<Void>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
22 | 			}
23 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Methods/Authorize.swift:21:16: warning: capture of 'result' with non-sendable type 'Result<Void>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | 		let callCompletion = { result in
20 | 			DispatchQueue.main.async {
21 | 				completion(result)
   |                `- warning: capture of 'result' with non-sendable type 'Result<Void>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | 			}
23 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Operations/Helpers/Result.swift:12:13: note: consider making generic enum 'Result' conform to the 'Sendable' protocol
10 |
11 | /// Enum with either a value when succeeded or an error when failed
12 | public enum Result<Value> {
   |             `- note: consider making generic enum 'Result' conform to the 'Sendable' protocol
13 | 	/// The operation has succeeded and requested value is available
14 | 	case success(Value)
/host/spi-builder-workspace/WeTransfer/Server/Methods/CreateTransfer.swift:24:5: warning: capture of 'completion' with non-sendable type '(Result<Transfer>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | 		let callCompletion = { result in
23 | 			DispatchQueue.main.async {
24 | 				completion(result)
   |     |- warning: capture of 'completion' with non-sendable type '(Result<Transfer>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
25 | 			}
26 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Methods/CreateTransfer.swift:24:16: warning: capture of 'result' with non-sendable type 'Result<Transfer>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | 		let callCompletion = { result in
23 | 			DispatchQueue.main.async {
24 | 				completion(result)
   |                `- warning: capture of 'result' with non-sendable type 'Result<Transfer>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | 			}
26 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Operations/Helpers/Result.swift:12:13: note: consider making generic enum 'Result' conform to the 'Sendable' protocol
10 |
11 | /// Enum with either a value when succeeded or an error when failed
12 | public enum Result<Value> {
   |             `- note: consider making generic enum 'Result' conform to the 'Sendable' protocol
13 | 	/// The operation has succeeded and requested value is available
14 | 	case success(Value)
/host/spi-builder-workspace/WeTransfer/Server/Methods/AddFiles.swift:24:5: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
22 | 		operation.onResult = { result in
23 | 			DispatchQueue.main.async {
24 | 				completion(result)
   |     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
   |     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
25 | 			}
26 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Methods/AddFiles.swift:24:16: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
22 | 		operation.onResult = { result in
23 | 			DispatchQueue.main.async {
24 | 				completion(result)
   |                |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
   |                `- note: task-isolated 'result' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
25 | 			}
26 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Methods/Authorize.swift:21:5: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
19 | 		let callCompletion = { result in
20 | 			DispatchQueue.main.async {
21 | 				completion(result)
   |     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
   |     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
22 | 			}
23 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Methods/Authorize.swift:21:16: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
19 | 		let callCompletion = { result in
20 | 			DispatchQueue.main.async {
21 | 				completion(result)
   |                |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
   |                `- note: task-isolated 'result' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
22 | 			}
23 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Methods/CreateTransfer.swift:24:5: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
22 | 		let callCompletion = { result in
23 | 			DispatchQueue.main.async {
24 | 				completion(result)
   |     |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
   |     `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
25 | 			}
26 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Methods/CreateTransfer.swift:24:16: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
22 | 		let callCompletion = { result in
23 | 			DispatchQueue.main.async {
24 | 				completion(result)
   |                |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
   |                `- note: task-isolated 'result' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
25 | 			}
26 | 		}
[14/28] Compiling WeTransfer Authenticator.swift
/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 {
[15/28] Compiling WeTransfer APIEndpoint.swift
/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 {
[16/28] Compiling WeTransfer Endpoints.swift
/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 {
[17/28] Compiling WeTransfer AddFilesOperation.swift
/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 transfer 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 transfer object when the operation has started executing
13 | final class AddFilesOperation: ChainedAsynchronousResultOperation<Transfer, Transfer> {
   |             `- warning: class 'AddFilesOperation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | 	/// The files to be added to the transfer if added during the initialization
/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/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 {
[18/28] Compiling WeTransfer CompleteUploadOperation.swift
/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 transfer 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 transfer object when the operation has started executing
13 | final class AddFilesOperation: ChainedAsynchronousResultOperation<Transfer, Transfer> {
   |             `- warning: class 'AddFilesOperation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | 	/// The files to be added to the transfer if added during the initialization
/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/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 {
[19/28] Compiling WeTransfer CreateChunkOperation.swift
/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 transfer 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 transfer object when the operation has started executing
13 | final class AddFilesOperation: ChainedAsynchronousResultOperation<Transfer, Transfer> {
   |             `- warning: class 'AddFilesOperation' must restate inherited '@unchecked Sendable' conformance
14 |
15 | 	/// The files to be added to the transfer if added during the initialization
/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/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 {
[20/28] 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 {
[21/28] 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 {
[22/28] 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 {
[23/28] Compiling WeTransfer CreateTransferOperation.swift
/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 | 	private let transfer: Transfer
/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/28] Compiling WeTransfer Result.swift
/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 | 	private let transfer: Transfer
/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/28] Compiling WeTransfer UploadChunkOperation.swift
/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 | 	private let transfer: Transfer
/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/28] Compiling WeTransfer Request.swift
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:57:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 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/WeTransfer.swift:18:13: warning: static property 'client' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 16 |
 17 | 	/// The client used for all requests. Stores the authenticated state and creates and manages all requests
 18 | 	static var client: APIClient = APIClient()
    |             |- warning: static property 'client' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'client' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'client' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 19 |
 20 | 	private init() {}
/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/Methods/Upload.swift:34:5: warning: capture of 'stateChanged' with non-sendable type '(WeTransfer.State) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | 		let changeState = { result in
33 | 			DispatchQueue.main.async {
34 | 				stateChanged(result)
   |     |- warning: capture of 'stateChanged' with non-sendable type '(WeTransfer.State) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
35 | 			}
36 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Methods/Upload.swift:34:18: warning: capture of 'result' with non-sendable type 'WeTransfer.State' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 |
13 | 	/// State of current transfer
14 | 	public enum State {
   |              `- note: consider making enum 'State' conform to the 'Sendable' protocol
15 | 		/// Transfer is created server side, share url is now available
16 | 		case created(Transfer)
   :
32 | 		let changeState = { result in
33 | 			DispatchQueue.main.async {
34 | 				stateChanged(result)
   |                  `- warning: capture of 'result' with non-sendable type 'WeTransfer.State' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 | 			}
36 | 		}
/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() {
[27/28] Compiling WeTransfer Upload.swift
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:57:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 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/WeTransfer.swift:18:13: warning: static property 'client' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 16 |
 17 | 	/// The client used for all requests. Stores the authenticated state and creates and manages all requests
 18 | 	static var client: APIClient = APIClient()
    |             |- warning: static property 'client' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'client' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'client' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 19 |
 20 | 	private init() {}
/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/Methods/Upload.swift:34:5: warning: capture of 'stateChanged' with non-sendable type '(WeTransfer.State) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | 		let changeState = { result in
33 | 			DispatchQueue.main.async {
34 | 				stateChanged(result)
   |     |- warning: capture of 'stateChanged' with non-sendable type '(WeTransfer.State) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
35 | 			}
36 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Methods/Upload.swift:34:18: warning: capture of 'result' with non-sendable type 'WeTransfer.State' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 |
13 | 	/// State of current transfer
14 | 	public enum State {
   |              `- note: consider making enum 'State' conform to the 'Sendable' protocol
15 | 		/// Transfer is created server side, share url is now available
16 | 		case created(Transfer)
   :
32 | 		let changeState = { result in
33 | 			DispatchQueue.main.async {
34 | 				stateChanged(result)
   |                  `- warning: capture of 'result' with non-sendable type 'WeTransfer.State' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 | 			}
36 | 		}
/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() {
[28/28] Compiling WeTransfer AsynchronousDependencyResultOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:57:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 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/WeTransfer.swift:18:13: warning: static property 'client' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 16 |
 17 | 	/// The client used for all requests. Stores the authenticated state and creates and manages all requests
 18 | 	static var client: APIClient = APIClient()
    |             |- warning: static property 'client' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: convert 'client' to a 'let' constant to make 'Sendable' shared state immutable
    |             |- note: annotate 'client' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 19 |
 20 | 	private init() {}
/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/Methods/Upload.swift:34:5: warning: capture of 'stateChanged' with non-sendable type '(WeTransfer.State) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | 		let changeState = { result in
33 | 			DispatchQueue.main.async {
34 | 				stateChanged(result)
   |     |- warning: capture of 'stateChanged' with non-sendable type '(WeTransfer.State) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
35 | 			}
36 | 		}
/host/spi-builder-workspace/WeTransfer/Server/Methods/Upload.swift:34:18: warning: capture of 'result' with non-sendable type 'WeTransfer.State' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 |
13 | 	/// State of current transfer
14 | 	public enum State {
   |              `- note: consider making enum 'State' conform to the 'Sendable' protocol
15 | 		/// Transfer is created server side, share url is now available
16 | 		case created(Transfer)
   :
32 | 		let changeState = { result in
33 | 			DispatchQueue.main.async {
34 | 				stateChanged(result)
   |                  `- warning: capture of 'result' with non-sendable type 'WeTransfer.State' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 | 			}
36 | 		}
/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() {
BUILD FAILURE 6.0 linux