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