Build Information
Failed to build WeTransfer-Swift-SDK, reference master (544be2
), with Swift 6.1 for Wasm on 27 May 2025 06:30:53 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
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:26:22: error: cannot find type 'OperationQueue' in scope
24 |
25 | /// Main operation queue handling all operations concurrently
26 | let operationQueue: OperationQueue = OperationQueue()
| `- error: cannot find type 'OperationQueue' in scope
27 |
28 | /// Used to decode all json repsonses
/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 {
[3/29] Compiling WeTransfer APIClient.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |
22 | /// Main URL session used by for all requests
23 | let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | /// Main operation queue handling all operations concurrently
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 |
22 | /// Main URL session used by for all requests
23 | let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
24 |
25 | /// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:58: error: cannot infer contextual base in reference to member 'default'
21 |
22 | /// Main URL session used by for all requests
23 | let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
| `- error: cannot infer contextual base in reference to member 'default'
24 |
25 | /// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:77: error: 'nil' requires a contextual type
21 |
22 | /// Main URL session used by for all requests
23 | let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
24 |
25 | /// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:97: error: 'nil' requires a contextual type
21 |
22 | /// Main URL session used by for all requests
23 | let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
24 |
25 | /// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:26:22: error: cannot find type 'OperationQueue' in scope
24 |
25 | /// Main operation queue handling all operations concurrently
26 | let operationQueue: OperationQueue = OperationQueue()
| `- error: cannot find type 'OperationQueue' in scope
27 |
28 | /// Used to decode all json repsonses
/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 {
[4/29] Compiling WeTransfer Authenticator.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |
22 | /// Main URL session used by for all requests
23 | let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | /// Main operation queue handling all operations concurrently
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 |
22 | /// Main URL session used by for all requests
23 | let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
24 |
25 | /// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:58: error: cannot infer contextual base in reference to member 'default'
21 |
22 | /// Main URL session used by for all requests
23 | let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
| `- error: cannot infer contextual base in reference to member 'default'
24 |
25 | /// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:77: error: 'nil' requires a contextual type
21 |
22 | /// Main URL session used by for all requests
23 | let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
24 |
25 | /// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:97: error: 'nil' requires a contextual type
21 |
22 | /// Main URL session used by for all requests
23 | let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
24 |
25 | /// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:26:22: error: cannot find type 'OperationQueue' in scope
24 |
25 | /// Main operation queue handling all operations concurrently
26 | let operationQueue: OperationQueue = OperationQueue()
| `- error: cannot find type 'OperationQueue' in scope
27 |
28 | /// Used to decode all json repsonses
/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 {
[5/29] Compiling WeTransfer APIEndpoint.swift
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |
22 | /// Main URL session used by for all requests
23 | let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | /// Main operation queue handling all operations concurrently
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 |
22 | /// Main URL session used by for all requests
23 | let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
24 |
25 | /// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:58: error: cannot infer contextual base in reference to member 'default'
21 |
22 | /// Main URL session used by for all requests
23 | let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
| `- error: cannot infer contextual base in reference to member 'default'
24 |
25 | /// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:77: error: 'nil' requires a contextual type
21 |
22 | /// Main URL session used by for all requests
23 | let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
24 |
25 | /// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:97: error: 'nil' requires a contextual type
21 |
22 | /// Main URL session used by for all requests
23 | let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
24 |
25 | /// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:26:22: error: cannot find type 'OperationQueue' in scope
24 |
25 | /// Main operation queue handling all operations concurrently
26 | let operationQueue: OperationQueue = OperationQueue()
| `- error: cannot find type 'OperationQueue' in scope
27 |
28 | /// Used to decode all json repsonses
/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 {
[6/32] Compiling WeTransfer CreateTransfer.swift
/host/spi-builder-workspace/WeTransfer/Server/Methods/CreateTransfer.swift:25:4: error: cannot find 'DispatchQueue' in scope
23 |
24 | let callCompletion = { result in
25 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
26 | completion(result)
27 | }
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:26:22: error: cannot find type 'OperationQueue' in scope
24 |
25 | /// Main operation queue handling all operations concurrently
26 | let operationQueue: OperationQueue = OperationQueue()
| `- error: cannot find type 'OperationQueue' in scope
27 |
28 | /// Used to decode all json repsonses
/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:18:18: error: cannot find type 'Progress' in scope
16 | case created(T)
17 | /// Upload has started, track progress with progress object
18 | case uploading(Progress)
| `- error: cannot find type 'Progress' in scope
19 | /// Transfer is completed
20 | case completed(T)
/host/spi-builder-workspace/WeTransfer/Server/Methods/Upload.swift:33:4: error: cannot find 'DispatchQueue' in scope
31 |
32 | let changeState = { result in
33 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
34 | stateChanged(result)
35 | }
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:20:17: error: cannot find 'Progress' in scope
18 |
19 | /// The total progress for all files to be uploaded
20 | let progress = Progress(totalUnitCount: 1)
| `- error: cannot find 'Progress' in scope
21 |
22 | /// Initializes the operation with a transfer or a board. When initalized as part of a chain after `AddFilesOperation`, this operation can be initialized without any arguments
/host/spi-builder-workspace/WeTransfer/Server/Methods/Upload.swift:39:16: error: cannot infer contextual base in reference to member 'uploading'
37 |
38 | let uploadOperation = UploadFilesOperation(container: transfer)
39 | changeState(.uploading(uploadOperation.progress))
| `- error: cannot infer contextual base in reference to member 'uploading'
40 |
41 | let finalizeOperation = FinalizeTransferOperation()
/host/spi-builder-workspace/WeTransfer/Server/Methods/Upload.swift:46:18: error: cannot infer contextual base in reference to member 'failed'
44 | switch result {
45 | case .failure(let error):
46 | changeState(.failed(error))
| `- error: cannot infer contextual base in reference to member 'failed'
47 | case .success(let transfer):
48 | changeState(.completed(transfer))
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/ChainedAsynchronousResultOperation.swift:108:34: error: cannot find type 'Operation' in scope
106 | }
107 |
108 | extension Array where Element == Operation {
| `- error: cannot find type 'Operation' in scope
109 | func chained() -> [Element] {
110 | for item in enumerated() where item.offset > 0 {
/host/spi-builder-workspace/WeTransfer/Server/Methods/Upload.swift:64:4: error: cannot find 'DispatchQueue' in scope
62 |
63 | let changeState = { result in
64 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
65 | stateChanged(result)
66 | }
/host/spi-builder-workspace/WeTransfer/Server/Methods/Upload.swift:70:16: error: cannot infer contextual base in reference to member 'uploading'
68 |
69 | let operation = UploadFilesOperation(container: board)
70 | changeState(.uploading(operation.progress))
| `- error: cannot infer contextual base in reference to member 'uploading'
71 |
72 | operation.onResult = { result in
/host/spi-builder-workspace/WeTransfer/Server/Methods/Upload.swift:75:18: error: cannot infer contextual base in reference to member 'failed'
73 | switch result {
74 | case .failure(let error):
75 | changeState(.failed(error))
| `- error: cannot infer contextual base in reference to member 'failed'
76 | case .success(let board):
77 | changeState(.completed(board))
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousDependencyResultOperation.swift:15:28: error: cannot find 'dependencies' in scope
13 |
14 | open override func execute() {
15 | let resultDependencies = dependencies.compactMap({ $0 as? AsynchronousResultOperation<T> })
| `- error: cannot find 'dependencies' in scope
16 |
17 | let errors = resultDependencies.compactMap({ $0.result?.error })
[7/32] Compiling WeTransfer Request.swift
/host/spi-builder-workspace/WeTransfer/Server/Methods/CreateTransfer.swift:25:4: error: cannot find 'DispatchQueue' in scope
23 |
24 | let callCompletion = { result in
25 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
26 | completion(result)
27 | }
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:26:22: error: cannot find type 'OperationQueue' in scope
24 |
25 | /// Main operation queue handling all operations concurrently
26 | let operationQueue: OperationQueue = OperationQueue()
| `- error: cannot find type 'OperationQueue' in scope
27 |
28 | /// Used to decode all json repsonses
/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:18:18: error: cannot find type 'Progress' in scope
16 | case created(T)
17 | /// Upload has started, track progress with progress object
18 | case uploading(Progress)
| `- error: cannot find type 'Progress' in scope
19 | /// Transfer is completed
20 | case completed(T)
/host/spi-builder-workspace/WeTransfer/Server/Methods/Upload.swift:33:4: error: cannot find 'DispatchQueue' in scope
31 |
32 | let changeState = { result in
33 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
34 | stateChanged(result)
35 | }
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:20:17: error: cannot find 'Progress' in scope
18 |
19 | /// The total progress for all files to be uploaded
20 | let progress = Progress(totalUnitCount: 1)
| `- error: cannot find 'Progress' in scope
21 |
22 | /// Initializes the operation with a transfer or a board. When initalized as part of a chain after `AddFilesOperation`, this operation can be initialized without any arguments
/host/spi-builder-workspace/WeTransfer/Server/Methods/Upload.swift:39:16: error: cannot infer contextual base in reference to member 'uploading'
37 |
38 | let uploadOperation = UploadFilesOperation(container: transfer)
39 | changeState(.uploading(uploadOperation.progress))
| `- error: cannot infer contextual base in reference to member 'uploading'
40 |
41 | let finalizeOperation = FinalizeTransferOperation()
/host/spi-builder-workspace/WeTransfer/Server/Methods/Upload.swift:46:18: error: cannot infer contextual base in reference to member 'failed'
44 | switch result {
45 | case .failure(let error):
46 | changeState(.failed(error))
| `- error: cannot infer contextual base in reference to member 'failed'
47 | case .success(let transfer):
48 | changeState(.completed(transfer))
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/ChainedAsynchronousResultOperation.swift:108:34: error: cannot find type 'Operation' in scope
106 | }
107 |
108 | extension Array where Element == Operation {
| `- error: cannot find type 'Operation' in scope
109 | func chained() -> [Element] {
110 | for item in enumerated() where item.offset > 0 {
/host/spi-builder-workspace/WeTransfer/Server/Methods/Upload.swift:64:4: error: cannot find 'DispatchQueue' in scope
62 |
63 | let changeState = { result in
64 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
65 | stateChanged(result)
66 | }
/host/spi-builder-workspace/WeTransfer/Server/Methods/Upload.swift:70:16: error: cannot infer contextual base in reference to member 'uploading'
68 |
69 | let operation = UploadFilesOperation(container: board)
70 | changeState(.uploading(operation.progress))
| `- error: cannot infer contextual base in reference to member 'uploading'
71 |
72 | operation.onResult = { result in
/host/spi-builder-workspace/WeTransfer/Server/Methods/Upload.swift:75:18: error: cannot infer contextual base in reference to member 'failed'
73 | switch result {
74 | case .failure(let error):
75 | changeState(.failed(error))
| `- error: cannot infer contextual base in reference to member 'failed'
76 | case .success(let board):
77 | changeState(.completed(board))
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousDependencyResultOperation.swift:15:28: error: cannot find 'dependencies' in scope
13 |
14 | open override func execute() {
15 | let resultDependencies = dependencies.compactMap({ $0 as? AsynchronousResultOperation<T> })
| `- error: cannot find 'dependencies' in scope
16 |
17 | let errors = resultDependencies.compactMap({ $0.result?.error })
[8/32] Compiling WeTransfer Upload.swift
/host/spi-builder-workspace/WeTransfer/Server/Methods/CreateTransfer.swift:25:4: error: cannot find 'DispatchQueue' in scope
23 |
24 | let callCompletion = { result in
25 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
26 | completion(result)
27 | }
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:26:22: error: cannot find type 'OperationQueue' in scope
24 |
25 | /// Main operation queue handling all operations concurrently
26 | let operationQueue: OperationQueue = OperationQueue()
| `- error: cannot find type 'OperationQueue' in scope
27 |
28 | /// Used to decode all json repsonses
/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:18:18: error: cannot find type 'Progress' in scope
16 | case created(T)
17 | /// Upload has started, track progress with progress object
18 | case uploading(Progress)
| `- error: cannot find type 'Progress' in scope
19 | /// Transfer is completed
20 | case completed(T)
/host/spi-builder-workspace/WeTransfer/Server/Methods/Upload.swift:33:4: error: cannot find 'DispatchQueue' in scope
31 |
32 | let changeState = { result in
33 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
34 | stateChanged(result)
35 | }
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:20:17: error: cannot find 'Progress' in scope
18 |
19 | /// The total progress for all files to be uploaded
20 | let progress = Progress(totalUnitCount: 1)
| `- error: cannot find 'Progress' in scope
21 |
22 | /// Initializes the operation with a transfer or a board. When initalized as part of a chain after `AddFilesOperation`, this operation can be initialized without any arguments
/host/spi-builder-workspace/WeTransfer/Server/Methods/Upload.swift:39:16: error: cannot infer contextual base in reference to member 'uploading'
37 |
38 | let uploadOperation = UploadFilesOperation(container: transfer)
39 | changeState(.uploading(uploadOperation.progress))
| `- error: cannot infer contextual base in reference to member 'uploading'
40 |
41 | let finalizeOperation = FinalizeTransferOperation()
/host/spi-builder-workspace/WeTransfer/Server/Methods/Upload.swift:46:18: error: cannot infer contextual base in reference to member 'failed'
44 | switch result {
45 | case .failure(let error):
46 | changeState(.failed(error))
| `- error: cannot infer contextual base in reference to member 'failed'
47 | case .success(let transfer):
48 | changeState(.completed(transfer))
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/ChainedAsynchronousResultOperation.swift:108:34: error: cannot find type 'Operation' in scope
106 | }
107 |
108 | extension Array where Element == Operation {
| `- error: cannot find type 'Operation' in scope
109 | func chained() -> [Element] {
110 | for item in enumerated() where item.offset > 0 {
/host/spi-builder-workspace/WeTransfer/Server/Methods/Upload.swift:64:4: error: cannot find 'DispatchQueue' in scope
62 |
63 | let changeState = { result in
64 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
65 | stateChanged(result)
66 | }
/host/spi-builder-workspace/WeTransfer/Server/Methods/Upload.swift:70:16: error: cannot infer contextual base in reference to member 'uploading'
68 |
69 | let operation = UploadFilesOperation(container: board)
70 | changeState(.uploading(operation.progress))
| `- error: cannot infer contextual base in reference to member 'uploading'
71 |
72 | operation.onResult = { result in
/host/spi-builder-workspace/WeTransfer/Server/Methods/Upload.swift:75:18: error: cannot infer contextual base in reference to member 'failed'
73 | switch result {
74 | case .failure(let error):
75 | changeState(.failed(error))
| `- error: cannot infer contextual base in reference to member 'failed'
76 | case .success(let board):
77 | changeState(.completed(board))
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousDependencyResultOperation.swift:15:28: error: cannot find 'dependencies' in scope
13 |
14 | open override func execute() {
15 | let resultDependencies = dependencies.compactMap({ $0 as? AsynchronousResultOperation<T> })
| `- error: cannot find 'dependencies' in scope
16 |
17 | let errors = resultDependencies.compactMap({ $0.result?.error })
[9/32] Compiling WeTransfer AsynchronousDependencyResultOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Methods/CreateTransfer.swift:25:4: error: cannot find 'DispatchQueue' in scope
23 |
24 | let callCompletion = { result in
25 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
26 | completion(result)
27 | }
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:26:22: error: cannot find type 'OperationQueue' in scope
24 |
25 | /// Main operation queue handling all operations concurrently
26 | let operationQueue: OperationQueue = OperationQueue()
| `- error: cannot find type 'OperationQueue' in scope
27 |
28 | /// Used to decode all json repsonses
/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:18:18: error: cannot find type 'Progress' in scope
16 | case created(T)
17 | /// Upload has started, track progress with progress object
18 | case uploading(Progress)
| `- error: cannot find type 'Progress' in scope
19 | /// Transfer is completed
20 | case completed(T)
/host/spi-builder-workspace/WeTransfer/Server/Methods/Upload.swift:33:4: error: cannot find 'DispatchQueue' in scope
31 |
32 | let changeState = { result in
33 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
34 | stateChanged(result)
35 | }
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:20:17: error: cannot find 'Progress' in scope
18 |
19 | /// The total progress for all files to be uploaded
20 | let progress = Progress(totalUnitCount: 1)
| `- error: cannot find 'Progress' in scope
21 |
22 | /// Initializes the operation with a transfer or a board. When initalized as part of a chain after `AddFilesOperation`, this operation can be initialized without any arguments
/host/spi-builder-workspace/WeTransfer/Server/Methods/Upload.swift:39:16: error: cannot infer contextual base in reference to member 'uploading'
37 |
38 | let uploadOperation = UploadFilesOperation(container: transfer)
39 | changeState(.uploading(uploadOperation.progress))
| `- error: cannot infer contextual base in reference to member 'uploading'
40 |
41 | let finalizeOperation = FinalizeTransferOperation()
/host/spi-builder-workspace/WeTransfer/Server/Methods/Upload.swift:46:18: error: cannot infer contextual base in reference to member 'failed'
44 | switch result {
45 | case .failure(let error):
46 | changeState(.failed(error))
| `- error: cannot infer contextual base in reference to member 'failed'
47 | case .success(let transfer):
48 | changeState(.completed(transfer))
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/ChainedAsynchronousResultOperation.swift:108:34: error: cannot find type 'Operation' in scope
106 | }
107 |
108 | extension Array where Element == Operation {
| `- error: cannot find type 'Operation' in scope
109 | func chained() -> [Element] {
110 | for item in enumerated() where item.offset > 0 {
/host/spi-builder-workspace/WeTransfer/Server/Methods/Upload.swift:64:4: error: cannot find 'DispatchQueue' in scope
62 |
63 | let changeState = { result in
64 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
65 | stateChanged(result)
66 | }
/host/spi-builder-workspace/WeTransfer/Server/Methods/Upload.swift:70:16: error: cannot infer contextual base in reference to member 'uploading'
68 |
69 | let operation = UploadFilesOperation(container: board)
70 | changeState(.uploading(operation.progress))
| `- error: cannot infer contextual base in reference to member 'uploading'
71 |
72 | operation.onResult = { result in
/host/spi-builder-workspace/WeTransfer/Server/Methods/Upload.swift:75:18: error: cannot infer contextual base in reference to member 'failed'
73 | switch result {
74 | case .failure(let error):
75 | changeState(.failed(error))
| `- error: cannot infer contextual base in reference to member 'failed'
76 | case .success(let board):
77 | changeState(.completed(board))
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousDependencyResultOperation.swift:15:28: error: cannot find 'dependencies' in scope
13 |
14 | open override func execute() {
15 | let resultDependencies = dependencies.compactMap({ $0 as? AsynchronousResultOperation<T> })
| `- error: cannot find 'dependencies' in scope
16 |
17 | let errors = resultDependencies.compactMap({ $0.result?.error })
[10/32] Compiling WeTransfer FinalizeTransferOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:31:15: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: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
[11/32] Compiling WeTransfer Result.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:31:15: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: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
[12/32] Compiling WeTransfer UploadChunkOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadChunkOperation.swift:31:15: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[13/32] Emitting module WeTransfer
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |
22 | /// Main URL session used by for all requests
23 | let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | /// Main operation queue handling all operations concurrently
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 |
22 | /// Main URL session used by for all requests
23 | let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
24 |
25 | /// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:58: error: cannot infer contextual base in reference to member 'default'
21 |
22 | /// Main URL session used by for all requests
23 | let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
| `- error: cannot infer contextual base in reference to member 'default'
24 |
25 | /// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:77: error: 'nil' requires a contextual type
21 |
22 | /// Main URL session used by for all requests
23 | let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
24 |
25 | /// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:23:97: error: 'nil' requires a contextual type
21 |
22 | /// Main URL session used by for all requests
23 | let urlSession: URLSession = URLSession(configuration: .default, delegate: nil, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
24 |
25 | /// Main operation queue handling all operations concurrently
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:26:22: error: cannot find type 'OperationQueue' in scope
24 |
25 | /// Main operation queue handling all operations concurrently
26 | let operationQueue: OperationQueue = OperationQueue()
| `- error: cannot find type 'OperationQueue' in scope
27 |
28 | /// Used to decode all json repsonses
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:52:95: error: cannot find type 'URLRequest' in scope
50 | /// - Returns: URLRequest pointing to URL with appropriate HTTP method set
51 | /// - Throws: `WeTransfer.Error` when not configured or not authorized
52 | func createRequest<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
53 | guard let apiKey = apiKey, let baseURL = baseURL else {
54 | throw WeTransfer.Error.notConfigured
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:68:23: error: cannot find type 'URLRequest' in scope
66 | }
67 |
68 | fileprivate extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
69 | /// Initializes a URLRequest instance from and endpoint
70 | ///
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:57: error: cannot find type 'URLRequest' in scope
32 | /// - Parameter request: The request to update
33 | /// - Returns: An updated request with the correct authorization headers added
34 | func authenticatedRequest(from request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
35 | var request = request
36 | if let bearer = bearer {
/host/spi-builder-workspace/WeTransfer/Server/Authenticator.swift:34:42: error: cannot find type 'URLRequest' in scope
32 | /// - Parameter request: The request to update
33 | /// - Returns: An updated request with the correct authorization headers added
34 | func authenticatedRequest(from request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
35 | var request = request
36 | if let bearer = bearer {
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:57:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | /// - urlResponse: Response description, from which a status code can be read
56 | /// - Returns: An error if type RequestError.serverEror if error response could be parsed
57 | static func parseErrorResponse(_ data: Data?, urlResponse: HTTPURLResponse?) -> Swift.Error? {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | guard let data = data,
59 | let errorResponse = try? client.decoder.decode(ErrorResponse.self, from: data),
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/WeTransfer/Server/Methods/Upload.swift:18:18: error: cannot find type 'Progress' in scope
16 | case created(T)
17 | /// Upload has started, track progress with progress object
18 | case uploading(Progress)
| `- error: cannot find type 'Progress' in scope
19 | /// Transfer is completed
20 | case completed(T)
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:66:27: error: cannot find 'DispatchQueue' in scope
64 |
65 | /// The dispatch queue that's used for mutating and reading the operation state. The state should be able to be read by multiple threads at once, but should obviously only be mutated by 1 thread at a time.
66 | private let stateQueue = DispatchQueue(label: "com.wetransfer.swiftsdk.dataoperation.state", attributes: [.concurrent])
| `- error: cannot find 'DispatchQueue' in scope
67 |
68 | /// A private option set to define the operation state. Should only be mutated by the dedicated setters in AsynchronousOperation, to guarantee thread-safety.
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:66:109: error: reference to member 'concurrent' cannot be resolved without a contextual type
64 |
65 | /// The dispatch queue that's used for mutating and reading the operation state. The state should be able to be read by multiple threads at once, but should obviously only be mutated by 1 thread at a time.
66 | private let stateQueue = DispatchQueue(label: "com.wetransfer.swiftsdk.dataoperation.state", attributes: [.concurrent])
| `- error: reference to member 'concurrent' cannot be resolved without a contextual type
67 |
68 | /// A private option set to define the operation state. Should only be mutated by the dedicated setters in AsynchronousOperation, to guarantee thread-safety.
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:72:41: error: property does not override any property from its superclass
70 |
71 | /// A thread safe overridden isExecuting property from NSOperation. Returns whether the operation is currently executing its tasks. This is fully managed by the AsynchronousOperation class.
72 | private(set) public final override var isExecuting: Bool {
| `- error: property does not override any property from its superclass
73 | get {
74 | return stateQueue.sync {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:88:41: error: property does not override any property from its superclass
86 |
87 | /// A thread safe overridden isFinished property from NSOperation. Returns whether the operation is done with its task. This is fully managed by the AsynchronousOperation class.
88 | private(set) public final override var isFinished: Bool {
| `- error: property does not override any property from its superclass
89 | get {
90 | return stateQueue.sync {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:104:41: error: property does not override any property from its superclass
102 |
103 | /// A thread safe overridden isCancelled property from NSOperation. Returns whether the operation has been cancelled. This is fully managed by the AsynchronousOperation class.
104 | private(set) public final override var isCancelled: Bool {
| `- error: property does not override any property from its superclass
105 | get {
106 | return stateQueue.sync {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:122:28: error: property does not override any property from its superclass
120 |
121 | /// Overridden method from NSOperation.
122 | public final override var isAsynchronous: Bool {
| `- error: property does not override any property from its superclass
123 | return true
124 | }
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:127:21: error: method does not override any method from its superclass
125 |
126 | /// Overridden method from NSOperation. Starts executing the operation work. This is final, because subclasses should use the execute() method instead.
127 | open override func start() {
| `- error: method does not override any method from its superclass
128 | super.start()
129 |
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:152:21: error: method does not override any method from its superclass
150 |
151 | /// Overridden cancel method from NSOperation. Cancels the current execution, if possible.
152 | open override func cancel() {
| `- error: method does not override any method from its superclass
153 | super.cancel()
154 | isCancelled = true
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:12:35: error: cannot find type 'Operation' in scope
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 {
| `- error: cannot find type 'Operation' in scope
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/ChainedAsynchronousResultOperation.swift:108:34: error: cannot find type 'Operation' in scope
106 | }
107 |
108 | extension Array where Element == Operation {
| `- error: cannot find type 'Operation' in scope
109 | func chained() -> [Element] {
110 | for item in enumerated() where item.offset > 0 {
/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/UploadFileOperation.swift:41:69: error: cannot find type 'OperationQueue' in scope
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: cannot find type 'OperationQueue' in scope
42 | self.container = container
43 | self.file = file
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:31:30: error: cannot find type 'OperationQueue' in scope
29 | private let file: File
30 | /// Queue to add the created operations to
31 | private let operationQueue: OperationQueue
| `- error: cannot find type 'OperationQueue' in scope
32 | /// URLSession handling the creation and actual uploading of the chunks
33 | private let session: URLSession
/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:53:91: error: cannot find type 'Operation' in scope
51 | /// - Parameter completeOperation: Operation depending on all upload operations. Should only be executed when all chunk operations have finished
52 | /// - Returns: An array of chunk operations, whith the each pair of create and upload operations being chained
53 | private func chainedChunkOperations(with completeOperation: CompleteUploadOperation) -> [Operation] {
| `- error: cannot find type 'Operation' in scope
54 | guard let numberOfChunks = file.numberOfChunks else {
55 | return []
/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:20:17: error: cannot find 'Progress' in scope
18 |
19 | /// The total progress for all files to be uploaded
20 | let progress = Progress(totalUnitCount: 1)
| `- error: cannot find 'Progress' in scope
21 |
22 | /// Initializes the operation with a transfer or a board. When initalized as part of a chain after `AddFilesOperation`, this operation can be initialized without any arguments
/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
[14/32] Compiling WeTransfer CompleteUploadOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/CompleteUploadOperation.swift:52:28: error: cannot find 'dependencies' in scope
50 | }
51 |
52 | let resultDependencies = dependencies.compactMap({ $0 as? AsynchronousResultOperation<Chunk> })
| `- error: cannot find 'dependencies' in scope
53 | let errors = resultDependencies.compactMap({ $0.result?.error })
54 |
[15/32] Compiling WeTransfer CreateBoardOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/CompleteUploadOperation.swift:52:28: error: cannot find 'dependencies' in scope
50 | }
51 |
52 | let resultDependencies = dependencies.compactMap({ $0 as? AsynchronousResultOperation<Chunk> })
| `- error: cannot find 'dependencies' in scope
53 | let errors = resultDependencies.compactMap({ $0.result?.error })
54 |
[16/32] Compiling WeTransfer CreateChunkOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/CompleteUploadOperation.swift:52:28: error: cannot find 'dependencies' in scope
50 | }
51 |
52 | let resultDependencies = dependencies.compactMap({ $0 as? AsynchronousResultOperation<Chunk> })
| `- error: cannot find 'dependencies' in scope
53 | let errors = resultDependencies.compactMap({ $0.result?.error })
54 |
[17/32] Compiling WeTransfer CreateTransferOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/CompleteUploadOperation.swift:52:28: error: cannot find 'dependencies' in scope
50 | }
51 |
52 | let resultDependencies = dependencies.compactMap({ $0 as? AsynchronousResultOperation<Chunk> })
| `- error: cannot find 'dependencies' in scope
53 | let errors = resultDependencies.compactMap({ $0.result?.error })
54 |
[18/32] Compiling WeTransfer AsynchronousOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:66:27: error: cannot find 'DispatchQueue' in scope
64 |
65 | /// The dispatch queue that's used for mutating and reading the operation state. The state should be able to be read by multiple threads at once, but should obviously only be mutated by 1 thread at a time.
66 | private let stateQueue = DispatchQueue(label: "com.wetransfer.swiftsdk.dataoperation.state", attributes: [.concurrent])
| `- error: cannot find 'DispatchQueue' in scope
67 |
68 | /// A private option set to define the operation state. Should only be mutated by the dedicated setters in AsynchronousOperation, to guarantee thread-safety.
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:66:109: error: reference to member 'concurrent' cannot be resolved without a contextual type
64 |
65 | /// The dispatch queue that's used for mutating and reading the operation state. The state should be able to be read by multiple threads at once, but should obviously only be mutated by 1 thread at a time.
66 | private let stateQueue = DispatchQueue(label: "com.wetransfer.swiftsdk.dataoperation.state", attributes: [.concurrent])
| `- error: reference to member 'concurrent' cannot be resolved without a contextual type
67 |
68 | /// A private option set to define the operation state. Should only be mutated by the dedicated setters in AsynchronousOperation, to guarantee thread-safety.
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:72:41: error: property does not override any property from its superclass
70 |
71 | /// A thread safe overridden isExecuting property from NSOperation. Returns whether the operation is currently executing its tasks. This is fully managed by the AsynchronousOperation class.
72 | private(set) public final override var isExecuting: Bool {
| `- error: property does not override any property from its superclass
73 | get {
74 | return stateQueue.sync {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:88:41: error: property does not override any property from its superclass
86 |
87 | /// A thread safe overridden isFinished property from NSOperation. Returns whether the operation is done with its task. This is fully managed by the AsynchronousOperation class.
88 | private(set) public final override var isFinished: Bool {
| `- error: property does not override any property from its superclass
89 | get {
90 | return stateQueue.sync {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:104:41: error: property does not override any property from its superclass
102 |
103 | /// A thread safe overridden isCancelled property from NSOperation. Returns whether the operation has been cancelled. This is fully managed by the AsynchronousOperation class.
104 | private(set) public final override var isCancelled: Bool {
| `- error: property does not override any property from its superclass
105 | get {
106 | return stateQueue.sync {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:122:28: error: property does not override any property from its superclass
120 |
121 | /// Overridden method from NSOperation.
122 | public final override var isAsynchronous: Bool {
| `- error: property does not override any property from its superclass
123 | return true
124 | }
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:127:21: error: method does not override any method from its superclass
125 |
126 | /// Overridden method from NSOperation. Starts executing the operation work. This is final, because subclasses should use the execute() method instead.
127 | open override func start() {
| `- error: method does not override any method from its superclass
128 | super.start()
129 |
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:152:21: error: method does not override any method from its superclass
150 |
151 | /// Overridden cancel method from NSOperation. Cancels the current execution, if possible.
152 | open override func cancel() {
| `- error: method does not override any method from its superclass
153 | super.cancel()
154 | isCancelled = true
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:12:35: error: cannot find type 'Operation' in scope
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 {
| `- error: cannot find type 'Operation' in scope
13 |
14 | // MARK: - Types
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:79:4: error: cannot find 'willChangeValue' in scope
77 | }
78 | set {
79 | willChangeValue(forKey: "isExecuting")
| `- error: cannot find 'willChangeValue' in scope
80 | stateQueue.sync(flags: [.barrier]) {
81 | rawState.executing = newValue
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:80:29: error: reference to member 'barrier' cannot be resolved without a contextual type
78 | set {
79 | willChangeValue(forKey: "isExecuting")
80 | stateQueue.sync(flags: [.barrier]) {
| `- error: reference to member 'barrier' cannot be resolved without a contextual type
81 | rawState.executing = newValue
82 | }
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:83:4: error: cannot find 'didChangeValue' in scope
81 | rawState.executing = newValue
82 | }
83 | didChangeValue(forKey: "isExecuting")
| `- error: cannot find 'didChangeValue' in scope
84 | }
85 | }
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:95:4: error: cannot find 'willChangeValue' in scope
93 | }
94 | set {
95 | willChangeValue(forKey: "isFinished")
| `- error: cannot find 'willChangeValue' in scope
96 | stateQueue.sync(flags: [.barrier]) {
97 | rawState.finished = newValue
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:96:29: error: reference to member 'barrier' cannot be resolved without a contextual type
94 | set {
95 | willChangeValue(forKey: "isFinished")
96 | stateQueue.sync(flags: [.barrier]) {
| `- error: reference to member 'barrier' cannot be resolved without a contextual type
97 | rawState.finished = newValue
98 | }
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:99:4: error: cannot find 'didChangeValue' in scope
97 | rawState.finished = newValue
98 | }
99 | didChangeValue(forKey: "isFinished")
| `- error: cannot find 'didChangeValue' in scope
100 | }
101 | }
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:111:4: error: cannot find 'willChangeValue' in scope
109 | }
110 | set {
111 | willChangeValue(forKey: "isCancelled")
| `- error: cannot find 'willChangeValue' in scope
112 | stateQueue.sync(flags: [.barrier]) {
113 | rawState.cancelled = newValue
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:112:29: error: reference to member 'barrier' cannot be resolved without a contextual type
110 | set {
111 | willChangeValue(forKey: "isCancelled")
112 | stateQueue.sync(flags: [.barrier]) {
| `- error: reference to member 'barrier' cannot be resolved without a contextual type
113 | rawState.cancelled = newValue
114 | }
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:115:4: error: cannot find 'didChangeValue' in scope
113 | rawState.cancelled = newValue
114 | }
115 | didChangeValue(forKey: "isCancelled")
| `- error: cannot find 'didChangeValue' in scope
116 | }
117 | }
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:128:3: error: 'super' cannot be used in class 'AsynchronousOperation' because it has no superclass
126 | /// Overridden method from NSOperation. Starts executing the operation work. This is final, because subclasses should use the execute() method instead.
127 | open override func start() {
128 | super.start()
| `- error: 'super' cannot be used in class 'AsynchronousOperation' because it has no superclass
129 |
130 | guard !isCancelled else {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:153:3: error: 'super' cannot be used in class 'AsynchronousOperation' because it has no superclass
151 | /// Overridden cancel method from NSOperation. Cancels the current execution, if possible.
152 | open override func cancel() {
153 | super.cancel()
| `- error: 'super' cannot be used in class 'AsynchronousOperation' because it has no superclass
154 | isCancelled = true
155 |
/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/ChainedAsynchronousResultOperation.swift:108:34: error: cannot find type 'Operation' in scope
106 | }
107 |
108 | extension Array where Element == Operation {
| `- error: cannot find type 'Operation' in scope
109 | func chained() -> [Element] {
110 | for item in enumerated() where item.offset > 0 {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/ChainedAsynchronousResultOperation.swift:102:10: error: cannot find 'dependencies' in scope
100 | /// Will always get the first result matching dependency.
101 | private var dependencyResult: Result<Input>? {
102 | return dependencies.compactMap { dependency in
| `- error: cannot find 'dependencies' in scope
103 | return dependency as? AsynchronousResultOperation<Input>
104 | }.first?.result
[19/32] Compiling WeTransfer AsynchronousResultOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:66:27: error: cannot find 'DispatchQueue' in scope
64 |
65 | /// The dispatch queue that's used for mutating and reading the operation state. The state should be able to be read by multiple threads at once, but should obviously only be mutated by 1 thread at a time.
66 | private let stateQueue = DispatchQueue(label: "com.wetransfer.swiftsdk.dataoperation.state", attributes: [.concurrent])
| `- error: cannot find 'DispatchQueue' in scope
67 |
68 | /// A private option set to define the operation state. Should only be mutated by the dedicated setters in AsynchronousOperation, to guarantee thread-safety.
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:66:109: error: reference to member 'concurrent' cannot be resolved without a contextual type
64 |
65 | /// The dispatch queue that's used for mutating and reading the operation state. The state should be able to be read by multiple threads at once, but should obviously only be mutated by 1 thread at a time.
66 | private let stateQueue = DispatchQueue(label: "com.wetransfer.swiftsdk.dataoperation.state", attributes: [.concurrent])
| `- error: reference to member 'concurrent' cannot be resolved without a contextual type
67 |
68 | /// A private option set to define the operation state. Should only be mutated by the dedicated setters in AsynchronousOperation, to guarantee thread-safety.
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:72:41: error: property does not override any property from its superclass
70 |
71 | /// A thread safe overridden isExecuting property from NSOperation. Returns whether the operation is currently executing its tasks. This is fully managed by the AsynchronousOperation class.
72 | private(set) public final override var isExecuting: Bool {
| `- error: property does not override any property from its superclass
73 | get {
74 | return stateQueue.sync {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:88:41: error: property does not override any property from its superclass
86 |
87 | /// A thread safe overridden isFinished property from NSOperation. Returns whether the operation is done with its task. This is fully managed by the AsynchronousOperation class.
88 | private(set) public final override var isFinished: Bool {
| `- error: property does not override any property from its superclass
89 | get {
90 | return stateQueue.sync {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:104:41: error: property does not override any property from its superclass
102 |
103 | /// A thread safe overridden isCancelled property from NSOperation. Returns whether the operation has been cancelled. This is fully managed by the AsynchronousOperation class.
104 | private(set) public final override var isCancelled: Bool {
| `- error: property does not override any property from its superclass
105 | get {
106 | return stateQueue.sync {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:122:28: error: property does not override any property from its superclass
120 |
121 | /// Overridden method from NSOperation.
122 | public final override var isAsynchronous: Bool {
| `- error: property does not override any property from its superclass
123 | return true
124 | }
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:127:21: error: method does not override any method from its superclass
125 |
126 | /// Overridden method from NSOperation. Starts executing the operation work. This is final, because subclasses should use the execute() method instead.
127 | open override func start() {
| `- error: method does not override any method from its superclass
128 | super.start()
129 |
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:152:21: error: method does not override any method from its superclass
150 |
151 | /// Overridden cancel method from NSOperation. Cancels the current execution, if possible.
152 | open override func cancel() {
| `- error: method does not override any method from its superclass
153 | super.cancel()
154 | isCancelled = true
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:12:35: error: cannot find type 'Operation' in scope
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 {
| `- error: cannot find type 'Operation' in scope
13 |
14 | // MARK: - Types
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:79:4: error: cannot find 'willChangeValue' in scope
77 | }
78 | set {
79 | willChangeValue(forKey: "isExecuting")
| `- error: cannot find 'willChangeValue' in scope
80 | stateQueue.sync(flags: [.barrier]) {
81 | rawState.executing = newValue
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:80:29: error: reference to member 'barrier' cannot be resolved without a contextual type
78 | set {
79 | willChangeValue(forKey: "isExecuting")
80 | stateQueue.sync(flags: [.barrier]) {
| `- error: reference to member 'barrier' cannot be resolved without a contextual type
81 | rawState.executing = newValue
82 | }
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:83:4: error: cannot find 'didChangeValue' in scope
81 | rawState.executing = newValue
82 | }
83 | didChangeValue(forKey: "isExecuting")
| `- error: cannot find 'didChangeValue' in scope
84 | }
85 | }
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:95:4: error: cannot find 'willChangeValue' in scope
93 | }
94 | set {
95 | willChangeValue(forKey: "isFinished")
| `- error: cannot find 'willChangeValue' in scope
96 | stateQueue.sync(flags: [.barrier]) {
97 | rawState.finished = newValue
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:96:29: error: reference to member 'barrier' cannot be resolved without a contextual type
94 | set {
95 | willChangeValue(forKey: "isFinished")
96 | stateQueue.sync(flags: [.barrier]) {
| `- error: reference to member 'barrier' cannot be resolved without a contextual type
97 | rawState.finished = newValue
98 | }
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:99:4: error: cannot find 'didChangeValue' in scope
97 | rawState.finished = newValue
98 | }
99 | didChangeValue(forKey: "isFinished")
| `- error: cannot find 'didChangeValue' in scope
100 | }
101 | }
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:111:4: error: cannot find 'willChangeValue' in scope
109 | }
110 | set {
111 | willChangeValue(forKey: "isCancelled")
| `- error: cannot find 'willChangeValue' in scope
112 | stateQueue.sync(flags: [.barrier]) {
113 | rawState.cancelled = newValue
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:112:29: error: reference to member 'barrier' cannot be resolved without a contextual type
110 | set {
111 | willChangeValue(forKey: "isCancelled")
112 | stateQueue.sync(flags: [.barrier]) {
| `- error: reference to member 'barrier' cannot be resolved without a contextual type
113 | rawState.cancelled = newValue
114 | }
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:115:4: error: cannot find 'didChangeValue' in scope
113 | rawState.cancelled = newValue
114 | }
115 | didChangeValue(forKey: "isCancelled")
| `- error: cannot find 'didChangeValue' in scope
116 | }
117 | }
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:128:3: error: 'super' cannot be used in class 'AsynchronousOperation' because it has no superclass
126 | /// Overridden method from NSOperation. Starts executing the operation work. This is final, because subclasses should use the execute() method instead.
127 | open override func start() {
128 | super.start()
| `- error: 'super' cannot be used in class 'AsynchronousOperation' because it has no superclass
129 |
130 | guard !isCancelled else {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:153:3: error: 'super' cannot be used in class 'AsynchronousOperation' because it has no superclass
151 | /// Overridden cancel method from NSOperation. Cancels the current execution, if possible.
152 | open override func cancel() {
153 | super.cancel()
| `- error: 'super' cannot be used in class 'AsynchronousOperation' because it has no superclass
154 | isCancelled = true
155 |
/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/ChainedAsynchronousResultOperation.swift:108:34: error: cannot find type 'Operation' in scope
106 | }
107 |
108 | extension Array where Element == Operation {
| `- error: cannot find type 'Operation' in scope
109 | func chained() -> [Element] {
110 | for item in enumerated() where item.offset > 0 {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/ChainedAsynchronousResultOperation.swift:102:10: error: cannot find 'dependencies' in scope
100 | /// Will always get the first result matching dependency.
101 | private var dependencyResult: Result<Input>? {
102 | return dependencies.compactMap { dependency in
| `- error: cannot find 'dependencies' in scope
103 | return dependency as? AsynchronousResultOperation<Input>
104 | }.first?.result
[20/32] Compiling WeTransfer ChainedAsynchronousResultOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:66:27: error: cannot find 'DispatchQueue' in scope
64 |
65 | /// The dispatch queue that's used for mutating and reading the operation state. The state should be able to be read by multiple threads at once, but should obviously only be mutated by 1 thread at a time.
66 | private let stateQueue = DispatchQueue(label: "com.wetransfer.swiftsdk.dataoperation.state", attributes: [.concurrent])
| `- error: cannot find 'DispatchQueue' in scope
67 |
68 | /// A private option set to define the operation state. Should only be mutated by the dedicated setters in AsynchronousOperation, to guarantee thread-safety.
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:66:109: error: reference to member 'concurrent' cannot be resolved without a contextual type
64 |
65 | /// The dispatch queue that's used for mutating and reading the operation state. The state should be able to be read by multiple threads at once, but should obviously only be mutated by 1 thread at a time.
66 | private let stateQueue = DispatchQueue(label: "com.wetransfer.swiftsdk.dataoperation.state", attributes: [.concurrent])
| `- error: reference to member 'concurrent' cannot be resolved without a contextual type
67 |
68 | /// A private option set to define the operation state. Should only be mutated by the dedicated setters in AsynchronousOperation, to guarantee thread-safety.
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:72:41: error: property does not override any property from its superclass
70 |
71 | /// A thread safe overridden isExecuting property from NSOperation. Returns whether the operation is currently executing its tasks. This is fully managed by the AsynchronousOperation class.
72 | private(set) public final override var isExecuting: Bool {
| `- error: property does not override any property from its superclass
73 | get {
74 | return stateQueue.sync {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:88:41: error: property does not override any property from its superclass
86 |
87 | /// A thread safe overridden isFinished property from NSOperation. Returns whether the operation is done with its task. This is fully managed by the AsynchronousOperation class.
88 | private(set) public final override var isFinished: Bool {
| `- error: property does not override any property from its superclass
89 | get {
90 | return stateQueue.sync {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:104:41: error: property does not override any property from its superclass
102 |
103 | /// A thread safe overridden isCancelled property from NSOperation. Returns whether the operation has been cancelled. This is fully managed by the AsynchronousOperation class.
104 | private(set) public final override var isCancelled: Bool {
| `- error: property does not override any property from its superclass
105 | get {
106 | return stateQueue.sync {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:122:28: error: property does not override any property from its superclass
120 |
121 | /// Overridden method from NSOperation.
122 | public final override var isAsynchronous: Bool {
| `- error: property does not override any property from its superclass
123 | return true
124 | }
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:127:21: error: method does not override any method from its superclass
125 |
126 | /// Overridden method from NSOperation. Starts executing the operation work. This is final, because subclasses should use the execute() method instead.
127 | open override func start() {
| `- error: method does not override any method from its superclass
128 | super.start()
129 |
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:152:21: error: method does not override any method from its superclass
150 |
151 | /// Overridden cancel method from NSOperation. Cancels the current execution, if possible.
152 | open override func cancel() {
| `- error: method does not override any method from its superclass
153 | super.cancel()
154 | isCancelled = true
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:12:35: error: cannot find type 'Operation' in scope
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 {
| `- error: cannot find type 'Operation' in scope
13 |
14 | // MARK: - Types
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:79:4: error: cannot find 'willChangeValue' in scope
77 | }
78 | set {
79 | willChangeValue(forKey: "isExecuting")
| `- error: cannot find 'willChangeValue' in scope
80 | stateQueue.sync(flags: [.barrier]) {
81 | rawState.executing = newValue
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:80:29: error: reference to member 'barrier' cannot be resolved without a contextual type
78 | set {
79 | willChangeValue(forKey: "isExecuting")
80 | stateQueue.sync(flags: [.barrier]) {
| `- error: reference to member 'barrier' cannot be resolved without a contextual type
81 | rawState.executing = newValue
82 | }
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:83:4: error: cannot find 'didChangeValue' in scope
81 | rawState.executing = newValue
82 | }
83 | didChangeValue(forKey: "isExecuting")
| `- error: cannot find 'didChangeValue' in scope
84 | }
85 | }
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:95:4: error: cannot find 'willChangeValue' in scope
93 | }
94 | set {
95 | willChangeValue(forKey: "isFinished")
| `- error: cannot find 'willChangeValue' in scope
96 | stateQueue.sync(flags: [.barrier]) {
97 | rawState.finished = newValue
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:96:29: error: reference to member 'barrier' cannot be resolved without a contextual type
94 | set {
95 | willChangeValue(forKey: "isFinished")
96 | stateQueue.sync(flags: [.barrier]) {
| `- error: reference to member 'barrier' cannot be resolved without a contextual type
97 | rawState.finished = newValue
98 | }
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:99:4: error: cannot find 'didChangeValue' in scope
97 | rawState.finished = newValue
98 | }
99 | didChangeValue(forKey: "isFinished")
| `- error: cannot find 'didChangeValue' in scope
100 | }
101 | }
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:111:4: error: cannot find 'willChangeValue' in scope
109 | }
110 | set {
111 | willChangeValue(forKey: "isCancelled")
| `- error: cannot find 'willChangeValue' in scope
112 | stateQueue.sync(flags: [.barrier]) {
113 | rawState.cancelled = newValue
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:112:29: error: reference to member 'barrier' cannot be resolved without a contextual type
110 | set {
111 | willChangeValue(forKey: "isCancelled")
112 | stateQueue.sync(flags: [.barrier]) {
| `- error: reference to member 'barrier' cannot be resolved without a contextual type
113 | rawState.cancelled = newValue
114 | }
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:115:4: error: cannot find 'didChangeValue' in scope
113 | rawState.cancelled = newValue
114 | }
115 | didChangeValue(forKey: "isCancelled")
| `- error: cannot find 'didChangeValue' in scope
116 | }
117 | }
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:128:3: error: 'super' cannot be used in class 'AsynchronousOperation' because it has no superclass
126 | /// Overridden method from NSOperation. Starts executing the operation work. This is final, because subclasses should use the execute() method instead.
127 | open override func start() {
128 | super.start()
| `- error: 'super' cannot be used in class 'AsynchronousOperation' because it has no superclass
129 |
130 | guard !isCancelled else {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:153:3: error: 'super' cannot be used in class 'AsynchronousOperation' because it has no superclass
151 | /// Overridden cancel method from NSOperation. Cancels the current execution, if possible.
152 | open override func cancel() {
153 | super.cancel()
| `- error: 'super' cannot be used in class 'AsynchronousOperation' because it has no superclass
154 | isCancelled = true
155 |
/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/ChainedAsynchronousResultOperation.swift:108:34: error: cannot find type 'Operation' in scope
106 | }
107 |
108 | extension Array where Element == Operation {
| `- error: cannot find type 'Operation' in scope
109 | func chained() -> [Element] {
110 | for item in enumerated() where item.offset > 0 {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/ChainedAsynchronousResultOperation.swift:102:10: error: cannot find 'dependencies' in scope
100 | /// Will always get the first result matching dependency.
101 | private var dependencyResult: Result<Input>? {
102 | return dependencies.compactMap { dependency in
| `- error: cannot find 'dependencies' in scope
103 | return dependency as? AsynchronousResultOperation<Input>
104 | }.first?.result
[21/32] Compiling WeTransfer AddFilesOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:66:27: error: cannot find 'DispatchQueue' in scope
64 |
65 | /// The dispatch queue that's used for mutating and reading the operation state. The state should be able to be read by multiple threads at once, but should obviously only be mutated by 1 thread at a time.
66 | private let stateQueue = DispatchQueue(label: "com.wetransfer.swiftsdk.dataoperation.state", attributes: [.concurrent])
| `- error: cannot find 'DispatchQueue' in scope
67 |
68 | /// A private option set to define the operation state. Should only be mutated by the dedicated setters in AsynchronousOperation, to guarantee thread-safety.
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:66:109: error: reference to member 'concurrent' cannot be resolved without a contextual type
64 |
65 | /// The dispatch queue that's used for mutating and reading the operation state. The state should be able to be read by multiple threads at once, but should obviously only be mutated by 1 thread at a time.
66 | private let stateQueue = DispatchQueue(label: "com.wetransfer.swiftsdk.dataoperation.state", attributes: [.concurrent])
| `- error: reference to member 'concurrent' cannot be resolved without a contextual type
67 |
68 | /// A private option set to define the operation state. Should only be mutated by the dedicated setters in AsynchronousOperation, to guarantee thread-safety.
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:72:41: error: property does not override any property from its superclass
70 |
71 | /// A thread safe overridden isExecuting property from NSOperation. Returns whether the operation is currently executing its tasks. This is fully managed by the AsynchronousOperation class.
72 | private(set) public final override var isExecuting: Bool {
| `- error: property does not override any property from its superclass
73 | get {
74 | return stateQueue.sync {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:88:41: error: property does not override any property from its superclass
86 |
87 | /// A thread safe overridden isFinished property from NSOperation. Returns whether the operation is done with its task. This is fully managed by the AsynchronousOperation class.
88 | private(set) public final override var isFinished: Bool {
| `- error: property does not override any property from its superclass
89 | get {
90 | return stateQueue.sync {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:104:41: error: property does not override any property from its superclass
102 |
103 | /// A thread safe overridden isCancelled property from NSOperation. Returns whether the operation has been cancelled. This is fully managed by the AsynchronousOperation class.
104 | private(set) public final override var isCancelled: Bool {
| `- error: property does not override any property from its superclass
105 | get {
106 | return stateQueue.sync {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:122:28: error: property does not override any property from its superclass
120 |
121 | /// Overridden method from NSOperation.
122 | public final override var isAsynchronous: Bool {
| `- error: property does not override any property from its superclass
123 | return true
124 | }
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:127:21: error: method does not override any method from its superclass
125 |
126 | /// Overridden method from NSOperation. Starts executing the operation work. This is final, because subclasses should use the execute() method instead.
127 | open override func start() {
| `- error: method does not override any method from its superclass
128 | super.start()
129 |
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:152:21: error: method does not override any method from its superclass
150 |
151 | /// Overridden cancel method from NSOperation. Cancels the current execution, if possible.
152 | open override func cancel() {
| `- error: method does not override any method from its superclass
153 | super.cancel()
154 | isCancelled = true
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:12:35: error: cannot find type 'Operation' in scope
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 {
| `- error: cannot find type 'Operation' in scope
13 |
14 | // MARK: - Types
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:79:4: error: cannot find 'willChangeValue' in scope
77 | }
78 | set {
79 | willChangeValue(forKey: "isExecuting")
| `- error: cannot find 'willChangeValue' in scope
80 | stateQueue.sync(flags: [.barrier]) {
81 | rawState.executing = newValue
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:80:29: error: reference to member 'barrier' cannot be resolved without a contextual type
78 | set {
79 | willChangeValue(forKey: "isExecuting")
80 | stateQueue.sync(flags: [.barrier]) {
| `- error: reference to member 'barrier' cannot be resolved without a contextual type
81 | rawState.executing = newValue
82 | }
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:83:4: error: cannot find 'didChangeValue' in scope
81 | rawState.executing = newValue
82 | }
83 | didChangeValue(forKey: "isExecuting")
| `- error: cannot find 'didChangeValue' in scope
84 | }
85 | }
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:95:4: error: cannot find 'willChangeValue' in scope
93 | }
94 | set {
95 | willChangeValue(forKey: "isFinished")
| `- error: cannot find 'willChangeValue' in scope
96 | stateQueue.sync(flags: [.barrier]) {
97 | rawState.finished = newValue
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:96:29: error: reference to member 'barrier' cannot be resolved without a contextual type
94 | set {
95 | willChangeValue(forKey: "isFinished")
96 | stateQueue.sync(flags: [.barrier]) {
| `- error: reference to member 'barrier' cannot be resolved without a contextual type
97 | rawState.finished = newValue
98 | }
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:99:4: error: cannot find 'didChangeValue' in scope
97 | rawState.finished = newValue
98 | }
99 | didChangeValue(forKey: "isFinished")
| `- error: cannot find 'didChangeValue' in scope
100 | }
101 | }
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:111:4: error: cannot find 'willChangeValue' in scope
109 | }
110 | set {
111 | willChangeValue(forKey: "isCancelled")
| `- error: cannot find 'willChangeValue' in scope
112 | stateQueue.sync(flags: [.barrier]) {
113 | rawState.cancelled = newValue
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:112:29: error: reference to member 'barrier' cannot be resolved without a contextual type
110 | set {
111 | willChangeValue(forKey: "isCancelled")
112 | stateQueue.sync(flags: [.barrier]) {
| `- error: reference to member 'barrier' cannot be resolved without a contextual type
113 | rawState.cancelled = newValue
114 | }
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:115:4: error: cannot find 'didChangeValue' in scope
113 | rawState.cancelled = newValue
114 | }
115 | didChangeValue(forKey: "isCancelled")
| `- error: cannot find 'didChangeValue' in scope
116 | }
117 | }
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:128:3: error: 'super' cannot be used in class 'AsynchronousOperation' because it has no superclass
126 | /// Overridden method from NSOperation. Starts executing the operation work. This is final, because subclasses should use the execute() method instead.
127 | open override func start() {
128 | super.start()
| `- error: 'super' cannot be used in class 'AsynchronousOperation' because it has no superclass
129 |
130 | guard !isCancelled else {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/AsynchronousOperation.swift:153:3: error: 'super' cannot be used in class 'AsynchronousOperation' because it has no superclass
151 | /// Overridden cancel method from NSOperation. Cancels the current execution, if possible.
152 | open override func cancel() {
153 | super.cancel()
| `- error: 'super' cannot be used in class 'AsynchronousOperation' because it has no superclass
154 | isCancelled = true
155 |
/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/ChainedAsynchronousResultOperation.swift:108:34: error: cannot find type 'Operation' in scope
106 | }
107 |
108 | extension Array where Element == Operation {
| `- error: cannot find type 'Operation' in scope
109 | func chained() -> [Element] {
110 | for item in enumerated() where item.offset > 0 {
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/ChainedAsynchronousResultOperation.swift:102:10: error: cannot find 'dependencies' in scope
100 | /// Will always get the first result matching dependency.
101 | private var dependencyResult: Result<Input>? {
102 | return dependencies.compactMap { dependency in
| `- error: cannot find 'dependencies' in scope
103 | return dependency as? AsynchronousResultOperation<Input>
104 | }.first?.result
[22/32] Compiling WeTransfer Endpoints.swift
/host/spi-builder-workspace/WeTransfer/Server/Methods/AddFiles.swift:24:4: error: cannot find 'DispatchQueue' in scope
22 | let operation = AddFilesOperation(board: board, files: files)
23 | operation.onResult = { result in
24 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
25 | completion(result)
26 | }
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:26:22: error: cannot find type 'OperationQueue' in scope
24 |
25 | /// Main operation queue handling all operations concurrently
26 | let operationQueue: OperationQueue = OperationQueue()
| `- error: cannot find type 'OperationQueue' in scope
27 |
28 | /// Used to decode all json repsonses
/host/spi-builder-workspace/WeTransfer/Server/Methods/AddFiles.swift:32:14: error: value of type 'AddFilesOperation' has no member 'addDependency'
30 | if board.identifier == nil && client.operationQueue.operations.first(where: { $0 is CreateBoardOperation }) == nil {
31 | let createBoardOperation = CreateBoardOperation(board: board)
32 | operation.addDependency(createBoardOperation)
| `- error: value of type 'AddFilesOperation' has no member 'addDependency'
33 | client.operationQueue.addOperation(createBoardOperation)
34 | }
/host/spi-builder-workspace/WeTransfer/Server/Methods/AddFiles.swift:38:14: error: value of type 'AddFilesOperation' has no member 'addDependency'
36 | // Add the latest AddFilesOperation in the queue as a dependency so all files are added in the correct order
37 | if let queuedAddFilesOperation = client.operationQueue.operations.last(where: { $0 is AddFilesOperation}) {
38 | operation.addDependency(queuedAddFilesOperation)
| `- error: value of type 'AddFilesOperation' has no member 'addDependency'
39 | }
40 | client.operationQueue.addOperation(operation)
/host/spi-builder-workspace/WeTransfer/Server/Methods/Authorize.swift:20:4: error: cannot find 'DispatchQueue' in scope
18 |
19 | let callCompletion = { result in
20 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
21 | completion(result)
22 | }
/host/spi-builder-workspace/WeTransfer/Server/Methods/Authorize.swift:26:20: error: cannot infer contextual base in reference to member 'success'
24 |
25 | guard !client.authenticator.isAuthenticated else {
26 | callCompletion(.success(()))
| `- error: cannot infer contextual base in reference to member 'success'
27 | return
28 | }
/host/spi-builder-workspace/WeTransfer/Server/Methods/Authorize.swift:30:3: error: generic parameter 'Response' could not be inferred
28 | }
29 |
30 | request(.authorize()) { result in
| `- error: generic parameter 'Response' could not be inferred
31 | switch result {
32 | case .failure(let error):
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:90:14: note: in call to function 'request(_:data:completion:)'
88 | /// - completion: Closure called when either request has failed, or succeeded with the decoded Response type
89 | /// - result: Result with either the decoded Response or and error describing where the request went wrong
90 | static func request<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil, completion: @escaping (_ result: Result<Response>) -> Void) {
| `- note: in call to function 'request(_:data:completion:)'
91 |
92 | guard !endpoint.requiresAuthentication || client.authenticator.isAuthenticated else {
/host/spi-builder-workspace/WeTransfer/Server/Methods/Authorize.swift:30:12: error: member 'authorize()' in 'APIEndpoint<Response>' produces result of type 'APIEndpoint<AuthorizeResponse>', but context expects 'APIEndpoint<Response>'
28 | }
29 |
30 | request(.authorize()) { result in
| `- error: member 'authorize()' in 'APIEndpoint<Response>' produces result of type 'APIEndpoint<AuthorizeResponse>', but context expects 'APIEndpoint<Response>'
31 | switch result {
32 | case .failure(let error):
/host/spi-builder-workspace/WeTransfer/Server/Methods/CreateBoard.swift:22:4: error: cannot find 'DispatchQueue' in scope
20 |
21 | let callCompletion = { result in
22 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
23 | completion(result)
24 | }
[23/32] Compiling WeTransfer AddFiles.swift
/host/spi-builder-workspace/WeTransfer/Server/Methods/AddFiles.swift:24:4: error: cannot find 'DispatchQueue' in scope
22 | let operation = AddFilesOperation(board: board, files: files)
23 | operation.onResult = { result in
24 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
25 | completion(result)
26 | }
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:26:22: error: cannot find type 'OperationQueue' in scope
24 |
25 | /// Main operation queue handling all operations concurrently
26 | let operationQueue: OperationQueue = OperationQueue()
| `- error: cannot find type 'OperationQueue' in scope
27 |
28 | /// Used to decode all json repsonses
/host/spi-builder-workspace/WeTransfer/Server/Methods/AddFiles.swift:32:14: error: value of type 'AddFilesOperation' has no member 'addDependency'
30 | if board.identifier == nil && client.operationQueue.operations.first(where: { $0 is CreateBoardOperation }) == nil {
31 | let createBoardOperation = CreateBoardOperation(board: board)
32 | operation.addDependency(createBoardOperation)
| `- error: value of type 'AddFilesOperation' has no member 'addDependency'
33 | client.operationQueue.addOperation(createBoardOperation)
34 | }
/host/spi-builder-workspace/WeTransfer/Server/Methods/AddFiles.swift:38:14: error: value of type 'AddFilesOperation' has no member 'addDependency'
36 | // Add the latest AddFilesOperation in the queue as a dependency so all files are added in the correct order
37 | if let queuedAddFilesOperation = client.operationQueue.operations.last(where: { $0 is AddFilesOperation}) {
38 | operation.addDependency(queuedAddFilesOperation)
| `- error: value of type 'AddFilesOperation' has no member 'addDependency'
39 | }
40 | client.operationQueue.addOperation(operation)
/host/spi-builder-workspace/WeTransfer/Server/Methods/Authorize.swift:20:4: error: cannot find 'DispatchQueue' in scope
18 |
19 | let callCompletion = { result in
20 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
21 | completion(result)
22 | }
/host/spi-builder-workspace/WeTransfer/Server/Methods/Authorize.swift:26:20: error: cannot infer contextual base in reference to member 'success'
24 |
25 | guard !client.authenticator.isAuthenticated else {
26 | callCompletion(.success(()))
| `- error: cannot infer contextual base in reference to member 'success'
27 | return
28 | }
/host/spi-builder-workspace/WeTransfer/Server/Methods/Authorize.swift:30:3: error: generic parameter 'Response' could not be inferred
28 | }
29 |
30 | request(.authorize()) { result in
| `- error: generic parameter 'Response' could not be inferred
31 | switch result {
32 | case .failure(let error):
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:90:14: note: in call to function 'request(_:data:completion:)'
88 | /// - completion: Closure called when either request has failed, or succeeded with the decoded Response type
89 | /// - result: Result with either the decoded Response or and error describing where the request went wrong
90 | static func request<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil, completion: @escaping (_ result: Result<Response>) -> Void) {
| `- note: in call to function 'request(_:data:completion:)'
91 |
92 | guard !endpoint.requiresAuthentication || client.authenticator.isAuthenticated else {
/host/spi-builder-workspace/WeTransfer/Server/Methods/Authorize.swift:30:12: error: member 'authorize()' in 'APIEndpoint<Response>' produces result of type 'APIEndpoint<AuthorizeResponse>', but context expects 'APIEndpoint<Response>'
28 | }
29 |
30 | request(.authorize()) { result in
| `- error: member 'authorize()' in 'APIEndpoint<Response>' produces result of type 'APIEndpoint<AuthorizeResponse>', but context expects 'APIEndpoint<Response>'
31 | switch result {
32 | case .failure(let error):
/host/spi-builder-workspace/WeTransfer/Server/Methods/CreateBoard.swift:22:4: error: cannot find 'DispatchQueue' in scope
20 |
21 | let callCompletion = { result in
22 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
23 | completion(result)
24 | }
[24/32] Compiling WeTransfer Authorize.swift
/host/spi-builder-workspace/WeTransfer/Server/Methods/AddFiles.swift:24:4: error: cannot find 'DispatchQueue' in scope
22 | let operation = AddFilesOperation(board: board, files: files)
23 | operation.onResult = { result in
24 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
25 | completion(result)
26 | }
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:26:22: error: cannot find type 'OperationQueue' in scope
24 |
25 | /// Main operation queue handling all operations concurrently
26 | let operationQueue: OperationQueue = OperationQueue()
| `- error: cannot find type 'OperationQueue' in scope
27 |
28 | /// Used to decode all json repsonses
/host/spi-builder-workspace/WeTransfer/Server/Methods/AddFiles.swift:32:14: error: value of type 'AddFilesOperation' has no member 'addDependency'
30 | if board.identifier == nil && client.operationQueue.operations.first(where: { $0 is CreateBoardOperation }) == nil {
31 | let createBoardOperation = CreateBoardOperation(board: board)
32 | operation.addDependency(createBoardOperation)
| `- error: value of type 'AddFilesOperation' has no member 'addDependency'
33 | client.operationQueue.addOperation(createBoardOperation)
34 | }
/host/spi-builder-workspace/WeTransfer/Server/Methods/AddFiles.swift:38:14: error: value of type 'AddFilesOperation' has no member 'addDependency'
36 | // Add the latest AddFilesOperation in the queue as a dependency so all files are added in the correct order
37 | if let queuedAddFilesOperation = client.operationQueue.operations.last(where: { $0 is AddFilesOperation}) {
38 | operation.addDependency(queuedAddFilesOperation)
| `- error: value of type 'AddFilesOperation' has no member 'addDependency'
39 | }
40 | client.operationQueue.addOperation(operation)
/host/spi-builder-workspace/WeTransfer/Server/Methods/Authorize.swift:20:4: error: cannot find 'DispatchQueue' in scope
18 |
19 | let callCompletion = { result in
20 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
21 | completion(result)
22 | }
/host/spi-builder-workspace/WeTransfer/Server/Methods/Authorize.swift:26:20: error: cannot infer contextual base in reference to member 'success'
24 |
25 | guard !client.authenticator.isAuthenticated else {
26 | callCompletion(.success(()))
| `- error: cannot infer contextual base in reference to member 'success'
27 | return
28 | }
/host/spi-builder-workspace/WeTransfer/Server/Methods/Authorize.swift:30:3: error: generic parameter 'Response' could not be inferred
28 | }
29 |
30 | request(.authorize()) { result in
| `- error: generic parameter 'Response' could not be inferred
31 | switch result {
32 | case .failure(let error):
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:90:14: note: in call to function 'request(_:data:completion:)'
88 | /// - completion: Closure called when either request has failed, or succeeded with the decoded Response type
89 | /// - result: Result with either the decoded Response or and error describing where the request went wrong
90 | static func request<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil, completion: @escaping (_ result: Result<Response>) -> Void) {
| `- note: in call to function 'request(_:data:completion:)'
91 |
92 | guard !endpoint.requiresAuthentication || client.authenticator.isAuthenticated else {
/host/spi-builder-workspace/WeTransfer/Server/Methods/Authorize.swift:30:12: error: member 'authorize()' in 'APIEndpoint<Response>' produces result of type 'APIEndpoint<AuthorizeResponse>', but context expects 'APIEndpoint<Response>'
28 | }
29 |
30 | request(.authorize()) { result in
| `- error: member 'authorize()' in 'APIEndpoint<Response>' produces result of type 'APIEndpoint<AuthorizeResponse>', but context expects 'APIEndpoint<Response>'
31 | switch result {
32 | case .failure(let error):
/host/spi-builder-workspace/WeTransfer/Server/Methods/CreateBoard.swift:22:4: error: cannot find 'DispatchQueue' in scope
20 |
21 | let callCompletion = { result in
22 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
23 | completion(result)
24 | }
[25/32] Compiling WeTransfer CreateBoard.swift
/host/spi-builder-workspace/WeTransfer/Server/Methods/AddFiles.swift:24:4: error: cannot find 'DispatchQueue' in scope
22 | let operation = AddFilesOperation(board: board, files: files)
23 | operation.onResult = { result in
24 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
25 | completion(result)
26 | }
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:26:22: error: cannot find type 'OperationQueue' in scope
24 |
25 | /// Main operation queue handling all operations concurrently
26 | let operationQueue: OperationQueue = OperationQueue()
| `- error: cannot find type 'OperationQueue' in scope
27 |
28 | /// Used to decode all json repsonses
/host/spi-builder-workspace/WeTransfer/Server/Methods/AddFiles.swift:32:14: error: value of type 'AddFilesOperation' has no member 'addDependency'
30 | if board.identifier == nil && client.operationQueue.operations.first(where: { $0 is CreateBoardOperation }) == nil {
31 | let createBoardOperation = CreateBoardOperation(board: board)
32 | operation.addDependency(createBoardOperation)
| `- error: value of type 'AddFilesOperation' has no member 'addDependency'
33 | client.operationQueue.addOperation(createBoardOperation)
34 | }
/host/spi-builder-workspace/WeTransfer/Server/Methods/AddFiles.swift:38:14: error: value of type 'AddFilesOperation' has no member 'addDependency'
36 | // Add the latest AddFilesOperation in the queue as a dependency so all files are added in the correct order
37 | if let queuedAddFilesOperation = client.operationQueue.operations.last(where: { $0 is AddFilesOperation}) {
38 | operation.addDependency(queuedAddFilesOperation)
| `- error: value of type 'AddFilesOperation' has no member 'addDependency'
39 | }
40 | client.operationQueue.addOperation(operation)
/host/spi-builder-workspace/WeTransfer/Server/Methods/Authorize.swift:20:4: error: cannot find 'DispatchQueue' in scope
18 |
19 | let callCompletion = { result in
20 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
21 | completion(result)
22 | }
/host/spi-builder-workspace/WeTransfer/Server/Methods/Authorize.swift:26:20: error: cannot infer contextual base in reference to member 'success'
24 |
25 | guard !client.authenticator.isAuthenticated else {
26 | callCompletion(.success(()))
| `- error: cannot infer contextual base in reference to member 'success'
27 | return
28 | }
/host/spi-builder-workspace/WeTransfer/Server/Methods/Authorize.swift:30:3: error: generic parameter 'Response' could not be inferred
28 | }
29 |
30 | request(.authorize()) { result in
| `- error: generic parameter 'Response' could not be inferred
31 | switch result {
32 | case .failure(let error):
/host/spi-builder-workspace/WeTransfer/Server/Methods/Request.swift:90:14: note: in call to function 'request(_:data:completion:)'
88 | /// - completion: Closure called when either request has failed, or succeeded with the decoded Response type
89 | /// - result: Result with either the decoded Response or and error describing where the request went wrong
90 | static func request<Response>(_ endpoint: APIEndpoint<Response>, data: Data? = nil, completion: @escaping (_ result: Result<Response>) -> Void) {
| `- note: in call to function 'request(_:data:completion:)'
91 |
92 | guard !endpoint.requiresAuthentication || client.authenticator.isAuthenticated else {
/host/spi-builder-workspace/WeTransfer/Server/Methods/Authorize.swift:30:12: error: member 'authorize()' in 'APIEndpoint<Response>' produces result of type 'APIEndpoint<AuthorizeResponse>', but context expects 'APIEndpoint<Response>'
28 | }
29 |
30 | request(.authorize()) { result in
| `- error: member 'authorize()' in 'APIEndpoint<Response>' produces result of type 'APIEndpoint<AuthorizeResponse>', but context expects 'APIEndpoint<Response>'
31 | switch result {
32 | case .failure(let error):
/host/spi-builder-workspace/WeTransfer/Server/Methods/CreateBoard.swift:22:4: error: cannot find 'DispatchQueue' in scope
20 |
21 | let callCompletion = { result in
22 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
23 | completion(result)
24 | }
[26/32] Compiling WeTransfer UploadFileOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:41:69: error: cannot find type 'OperationQueue' in scope
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: cannot find type 'OperationQueue' in scope
42 | self.container = container
43 | self.file = file
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:31:30: error: cannot find type 'OperationQueue' in scope
29 | private let file: File
30 | /// Queue to add the created operations to
31 | private let operationQueue: OperationQueue
| `- error: cannot find type 'OperationQueue' in scope
32 | /// URLSession handling the creation and actual uploading of the chunks
33 | private let session: URLSession
/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:53:91: error: cannot find type 'Operation' in scope
51 | /// - Parameter completeOperation: Operation depending on all upload operations. Should only be executed when all chunk operations have finished
52 | /// - Returns: An array of chunk operations, whith the each pair of create and upload operations being chained
53 | private func chainedChunkOperations(with completeOperation: CompleteUploadOperation) -> [Operation] {
| `- error: cannot find type 'Operation' in scope
54 | guard let numberOfChunks = file.numberOfChunks else {
55 | return []
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:57:21: error: cannot find 'Operation' in scope
55 | return []
56 | }
57 | var operations = [Operation]()
| `- error: cannot find 'Operation' in scope
58 | for chunkIndex in 0..<numberOfChunks {
59 | let createOperation = CreateChunkOperation(container: container, file: file, chunkIndex: chunkIndex)
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:57:20: error: cannot call value of non-function type '[Any]'
55 | return []
56 | }
57 | var operations = [Operation]()
| `- error: cannot call value of non-function type '[Any]'
58 | for chunkIndex in 0..<numberOfChunks {
59 | let createOperation = CreateChunkOperation(container: container, file: file, chunkIndex: chunkIndex)
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/ChainedAsynchronousResultOperation.swift:108:34: error: cannot find type 'Operation' in scope
106 | }
107 |
108 | extension Array where Element == Operation {
| `- error: cannot find type 'Operation' in scope
109 | func chained() -> [Element] {
110 | for item in enumerated() where item.offset > 0 {
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:63:22: error: value of type 'CompleteUploadOperation' has no member 'addDependency'
61 | operations.append(contentsOf: [createOperation, uploadOperation].chained())
62 |
63 | completeOperation.addDependency(uploadOperation)
| `- error: value of type 'CompleteUploadOperation' has no member 'addDependency'
64 | }
65 | return operations
/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:20:17: error: cannot find 'Progress' in scope
18 |
19 | /// The total progress for all files to be uploaded
20 | let progress = Progress(totalUnitCount: 1)
| `- error: cannot find 'Progress' in scope
21 |
22 | /// Initializes the operation with a transfer or a board. When initalized as part of a chain after `AddFilesOperation`, this operation can be initialized without any arguments
/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:41:28: error: cannot find 'OperationQueue' in scope
39 |
40 | // Each seperate files are handled in a queue
41 | let fileOperationQueue = OperationQueue()
| `- error: cannot find 'OperationQueue' in scope
42 |
43 | // OperationQueue that handles all chunks concurrently
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:44:29: error: cannot find 'OperationQueue' in scope
42 |
43 | // OperationQueue that handles all chunks concurrently
44 | let chunkOperationQueue = OperationQueue()
| `- error: cannot find 'OperationQueue' in scope
45 | chunkOperationQueue.maxConcurrentOperationCount = 5
46 |
/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:97:4: error: cannot find 'DispatchQueue' in scope
95 | // Make sure stateChanges closure is called on the main thread
96 | let changeState = { state in
97 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
98 | stateChanged(state)
99 | }
/host/spi-builder-workspace/WeTransfer/WeTransfer.swift:111:18: error: cannot infer contextual base in reference to member 'created'
109 | creationOperation.onResult = { [weak uploadFilesOperation] result in
110 | if case .success(let transfer) = result {
111 | changeState(.created(transfer))
| `- error: cannot infer contextual base in reference to member 'created'
112 |
113 | if let operation = uploadFilesOperation {
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:26:22: error: cannot find type 'OperationQueue' in scope
24 |
25 | /// Main operation queue handling all operations concurrently
26 | let operationQueue: OperationQueue = OperationQueue()
| `- error: cannot find type 'OperationQueue' in scope
27 |
28 | /// Used to decode all json repsonses
/host/spi-builder-workspace/WeTransfer/WeTransfer.swift:130:18: error: cannot infer contextual base in reference to member 'failed'
128 | switch result {
129 | case .failure(let error):
130 | changeState(.failed(error))
| `- error: cannot infer contextual base in reference to member 'failed'
131 | case .success(let transfer):
132 | changeState(.completed(transfer))
/host/spi-builder-workspace/WeTransfer/WeTransfer.swift:150:4: error: cannot find 'DispatchQueue' in scope
148 | // Make sure stateChanges closure is called on the main thread
149 | let changeState = { state in
150 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
151 | stateChanged(state)
152 | }
/host/spi-builder-workspace/WeTransfer/WeTransfer.swift:160:18: error: cannot infer contextual base in reference to member 'created'
158 | createOperation.onResult = { result in
159 | if case .success(let board) = result {
160 | changeState(.created(board))
| `- error: cannot infer contextual base in reference to member 'created'
161 | }
162 | }
/host/spi-builder-workspace/WeTransfer/Server/Methods/Upload.swift:18:18: error: cannot find type 'Progress' in scope
16 | case created(T)
17 | /// Upload has started, track progress with progress object
18 | case uploading(Progress)
| `- error: cannot find type 'Progress' in scope
19 | /// Transfer is completed
20 | case completed(T)
/host/spi-builder-workspace/WeTransfer/WeTransfer.swift:188:18: error: cannot infer contextual base in reference to member 'failed'
186 | switch result {
187 | case .failure(let error):
188 | changeState(.failed(error))
| `- error: cannot infer contextual base in reference to member 'failed'
189 | case .success(let transfer):
190 | changeState(.completed(transfer))
[27/32] Compiling WeTransfer UploadFilesOperation.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:41:69: error: cannot find type 'OperationQueue' in scope
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: cannot find type 'OperationQueue' in scope
42 | self.container = container
43 | self.file = file
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:31:30: error: cannot find type 'OperationQueue' in scope
29 | private let file: File
30 | /// Queue to add the created operations to
31 | private let operationQueue: OperationQueue
| `- error: cannot find type 'OperationQueue' in scope
32 | /// URLSession handling the creation and actual uploading of the chunks
33 | private let session: URLSession
/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:53:91: error: cannot find type 'Operation' in scope
51 | /// - Parameter completeOperation: Operation depending on all upload operations. Should only be executed when all chunk operations have finished
52 | /// - Returns: An array of chunk operations, whith the each pair of create and upload operations being chained
53 | private func chainedChunkOperations(with completeOperation: CompleteUploadOperation) -> [Operation] {
| `- error: cannot find type 'Operation' in scope
54 | guard let numberOfChunks = file.numberOfChunks else {
55 | return []
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:57:21: error: cannot find 'Operation' in scope
55 | return []
56 | }
57 | var operations = [Operation]()
| `- error: cannot find 'Operation' in scope
58 | for chunkIndex in 0..<numberOfChunks {
59 | let createOperation = CreateChunkOperation(container: container, file: file, chunkIndex: chunkIndex)
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:57:20: error: cannot call value of non-function type '[Any]'
55 | return []
56 | }
57 | var operations = [Operation]()
| `- error: cannot call value of non-function type '[Any]'
58 | for chunkIndex in 0..<numberOfChunks {
59 | let createOperation = CreateChunkOperation(container: container, file: file, chunkIndex: chunkIndex)
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/ChainedAsynchronousResultOperation.swift:108:34: error: cannot find type 'Operation' in scope
106 | }
107 |
108 | extension Array where Element == Operation {
| `- error: cannot find type 'Operation' in scope
109 | func chained() -> [Element] {
110 | for item in enumerated() where item.offset > 0 {
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:63:22: error: value of type 'CompleteUploadOperation' has no member 'addDependency'
61 | operations.append(contentsOf: [createOperation, uploadOperation].chained())
62 |
63 | completeOperation.addDependency(uploadOperation)
| `- error: value of type 'CompleteUploadOperation' has no member 'addDependency'
64 | }
65 | return operations
/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:20:17: error: cannot find 'Progress' in scope
18 |
19 | /// The total progress for all files to be uploaded
20 | let progress = Progress(totalUnitCount: 1)
| `- error: cannot find 'Progress' in scope
21 |
22 | /// Initializes the operation with a transfer or a board. When initalized as part of a chain after `AddFilesOperation`, this operation can be initialized without any arguments
/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:41:28: error: cannot find 'OperationQueue' in scope
39 |
40 | // Each seperate files are handled in a queue
41 | let fileOperationQueue = OperationQueue()
| `- error: cannot find 'OperationQueue' in scope
42 |
43 | // OperationQueue that handles all chunks concurrently
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:44:29: error: cannot find 'OperationQueue' in scope
42 |
43 | // OperationQueue that handles all chunks concurrently
44 | let chunkOperationQueue = OperationQueue()
| `- error: cannot find 'OperationQueue' in scope
45 | chunkOperationQueue.maxConcurrentOperationCount = 5
46 |
/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:97:4: error: cannot find 'DispatchQueue' in scope
95 | // Make sure stateChanges closure is called on the main thread
96 | let changeState = { state in
97 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
98 | stateChanged(state)
99 | }
/host/spi-builder-workspace/WeTransfer/WeTransfer.swift:111:18: error: cannot infer contextual base in reference to member 'created'
109 | creationOperation.onResult = { [weak uploadFilesOperation] result in
110 | if case .success(let transfer) = result {
111 | changeState(.created(transfer))
| `- error: cannot infer contextual base in reference to member 'created'
112 |
113 | if let operation = uploadFilesOperation {
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:26:22: error: cannot find type 'OperationQueue' in scope
24 |
25 | /// Main operation queue handling all operations concurrently
26 | let operationQueue: OperationQueue = OperationQueue()
| `- error: cannot find type 'OperationQueue' in scope
27 |
28 | /// Used to decode all json repsonses
/host/spi-builder-workspace/WeTransfer/WeTransfer.swift:130:18: error: cannot infer contextual base in reference to member 'failed'
128 | switch result {
129 | case .failure(let error):
130 | changeState(.failed(error))
| `- error: cannot infer contextual base in reference to member 'failed'
131 | case .success(let transfer):
132 | changeState(.completed(transfer))
/host/spi-builder-workspace/WeTransfer/WeTransfer.swift:150:4: error: cannot find 'DispatchQueue' in scope
148 | // Make sure stateChanges closure is called on the main thread
149 | let changeState = { state in
150 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
151 | stateChanged(state)
152 | }
/host/spi-builder-workspace/WeTransfer/WeTransfer.swift:160:18: error: cannot infer contextual base in reference to member 'created'
158 | createOperation.onResult = { result in
159 | if case .success(let board) = result {
160 | changeState(.created(board))
| `- error: cannot infer contextual base in reference to member 'created'
161 | }
162 | }
/host/spi-builder-workspace/WeTransfer/Server/Methods/Upload.swift:18:18: error: cannot find type 'Progress' in scope
16 | case created(T)
17 | /// Upload has started, track progress with progress object
18 | case uploading(Progress)
| `- error: cannot find type 'Progress' in scope
19 | /// Transfer is completed
20 | case completed(T)
/host/spi-builder-workspace/WeTransfer/WeTransfer.swift:188:18: error: cannot infer contextual base in reference to member 'failed'
186 | switch result {
187 | case .failure(let error):
188 | changeState(.failed(error))
| `- error: cannot infer contextual base in reference to member 'failed'
189 | case .success(let transfer):
190 | changeState(.completed(transfer))
[28/32] Compiling WeTransfer WeTransfer.swift
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:41:69: error: cannot find type 'OperationQueue' in scope
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: cannot find type 'OperationQueue' in scope
42 | self.container = container
43 | self.file = file
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:31:30: error: cannot find type 'OperationQueue' in scope
29 | private let file: File
30 | /// Queue to add the created operations to
31 | private let operationQueue: OperationQueue
| `- error: cannot find type 'OperationQueue' in scope
32 | /// URLSession handling the creation and actual uploading of the chunks
33 | private let session: URLSession
/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:53:91: error: cannot find type 'Operation' in scope
51 | /// - Parameter completeOperation: Operation depending on all upload operations. Should only be executed when all chunk operations have finished
52 | /// - Returns: An array of chunk operations, whith the each pair of create and upload operations being chained
53 | private func chainedChunkOperations(with completeOperation: CompleteUploadOperation) -> [Operation] {
| `- error: cannot find type 'Operation' in scope
54 | guard let numberOfChunks = file.numberOfChunks else {
55 | return []
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:57:21: error: cannot find 'Operation' in scope
55 | return []
56 | }
57 | var operations = [Operation]()
| `- error: cannot find 'Operation' in scope
58 | for chunkIndex in 0..<numberOfChunks {
59 | let createOperation = CreateChunkOperation(container: container, file: file, chunkIndex: chunkIndex)
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:57:20: error: cannot call value of non-function type '[Any]'
55 | return []
56 | }
57 | var operations = [Operation]()
| `- error: cannot call value of non-function type '[Any]'
58 | for chunkIndex in 0..<numberOfChunks {
59 | let createOperation = CreateChunkOperation(container: container, file: file, chunkIndex: chunkIndex)
/host/spi-builder-workspace/WeTransfer/Server/Operations/Abstract/ChainedAsynchronousResultOperation.swift:108:34: error: cannot find type 'Operation' in scope
106 | }
107 |
108 | extension Array where Element == Operation {
| `- error: cannot find type 'Operation' in scope
109 | func chained() -> [Element] {
110 | for item in enumerated() where item.offset > 0 {
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFileOperation.swift:63:22: error: value of type 'CompleteUploadOperation' has no member 'addDependency'
61 | operations.append(contentsOf: [createOperation, uploadOperation].chained())
62 |
63 | completeOperation.addDependency(uploadOperation)
| `- error: value of type 'CompleteUploadOperation' has no member 'addDependency'
64 | }
65 | return operations
/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:20:17: error: cannot find 'Progress' in scope
18 |
19 | /// The total progress for all files to be uploaded
20 | let progress = Progress(totalUnitCount: 1)
| `- error: cannot find 'Progress' in scope
21 |
22 | /// Initializes the operation with a transfer or a board. When initalized as part of a chain after `AddFilesOperation`, this operation can be initialized without any arguments
/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:41:28: error: cannot find 'OperationQueue' in scope
39 |
40 | // Each seperate files are handled in a queue
41 | let fileOperationQueue = OperationQueue()
| `- error: cannot find 'OperationQueue' in scope
42 |
43 | // OperationQueue that handles all chunks concurrently
/host/spi-builder-workspace/WeTransfer/Server/Operations/UploadFilesOperation.swift:44:29: error: cannot find 'OperationQueue' in scope
42 |
43 | // OperationQueue that handles all chunks concurrently
44 | let chunkOperationQueue = OperationQueue()
| `- error: cannot find 'OperationQueue' in scope
45 | chunkOperationQueue.maxConcurrentOperationCount = 5
46 |
/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:97:4: error: cannot find 'DispatchQueue' in scope
95 | // Make sure stateChanges closure is called on the main thread
96 | let changeState = { state in
97 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
98 | stateChanged(state)
99 | }
/host/spi-builder-workspace/WeTransfer/WeTransfer.swift:111:18: error: cannot infer contextual base in reference to member 'created'
109 | creationOperation.onResult = { [weak uploadFilesOperation] result in
110 | if case .success(let transfer) = result {
111 | changeState(.created(transfer))
| `- error: cannot infer contextual base in reference to member 'created'
112 |
113 | if let operation = uploadFilesOperation {
/host/spi-builder-workspace/WeTransfer/Server/APIClient.swift:26:22: error: cannot find type 'OperationQueue' in scope
24 |
25 | /// Main operation queue handling all operations concurrently
26 | let operationQueue: OperationQueue = OperationQueue()
| `- error: cannot find type 'OperationQueue' in scope
27 |
28 | /// Used to decode all json repsonses
/host/spi-builder-workspace/WeTransfer/WeTransfer.swift:130:18: error: cannot infer contextual base in reference to member 'failed'
128 | switch result {
129 | case .failure(let error):
130 | changeState(.failed(error))
| `- error: cannot infer contextual base in reference to member 'failed'
131 | case .success(let transfer):
132 | changeState(.completed(transfer))
/host/spi-builder-workspace/WeTransfer/WeTransfer.swift:150:4: error: cannot find 'DispatchQueue' in scope
148 | // Make sure stateChanges closure is called on the main thread
149 | let changeState = { state in
150 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
151 | stateChanged(state)
152 | }
/host/spi-builder-workspace/WeTransfer/WeTransfer.swift:160:18: error: cannot infer contextual base in reference to member 'created'
158 | createOperation.onResult = { result in
159 | if case .success(let board) = result {
160 | changeState(.created(board))
| `- error: cannot infer contextual base in reference to member 'created'
161 | }
162 | }
/host/spi-builder-workspace/WeTransfer/Server/Methods/Upload.swift:18:18: error: cannot find type 'Progress' in scope
16 | case created(T)
17 | /// Upload has started, track progress with progress object
18 | case uploading(Progress)
| `- error: cannot find type 'Progress' in scope
19 | /// Transfer is completed
20 | case completed(T)
/host/spi-builder-workspace/WeTransfer/WeTransfer.swift:188:18: error: cannot infer contextual base in reference to member 'failed'
186 | switch result {
187 | case .failure(let error):
188 | changeState(.failed(error))
| `- error: cannot infer contextual base in reference to member 'failed'
189 | case .success(let transfer):
190 | changeState(.completed(transfer))
[29/32] Compiling WeTransfer Board.swift
[30/32] Compiling WeTransfer Chunk.swift
[31/32] Compiling WeTransfer File.swift
[32/32] Compiling WeTransfer Transfer.swift
BUILD FAILURE 6.1 wasm