Build Information
Failed to build SkavokNetworking, reference 1.0.7 (c2397f), with Swift 6.1 for Wasm on 31 May 2025 02:08:13 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
17 | for request: Request<T>,
18 | delegate: URLSessionDataDelegate?,
19 | configure: sending ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
20 | ) async throws -> Response<Data>
21 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:36:19: error: cannot find type 'URLSessionTaskDelegate' in scope
34 | for request: Request<T>,
35 | fromFile fileURL: URL,
36 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
37 | configure: sending ((inout URLRequest) throws -> Void)?
38 | ) async throws -> Response<T>
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:37:36: error: cannot find type 'URLRequest' in scope
35 | fromFile fileURL: URL,
36 | delegate: URLSessionTaskDelegate?,
37 | configure: sending ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
38 | ) async throws -> Response<T>
39 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:52:19: error: cannot find type 'URLSessionTaskDelegate' in scope
50 | for request: Request<Void>,
51 | fromFile fileURL: URL,
52 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
53 | configure: sending ((inout URLRequest) throws -> Void)?
54 | ) async throws -> Response<Void>
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:53:36: error: cannot find type 'URLRequest' in scope
51 | fromFile fileURL: URL,
52 | delegate: URLSessionTaskDelegate?,
53 | configure: sending ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
54 | ) async throws -> Response<Void>
55 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:70:19: error: cannot find type 'URLSessionTaskDelegate' in scope
68 | for request: Request<T>,
69 | from data: Data,
70 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
71 | configure: sending ((inout URLRequest) throws -> Void)?
72 | ) async throws -> Response<T>
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:71:36: error: cannot find type 'URLRequest' in scope
69 | from data: Data,
70 | delegate: URLSessionTaskDelegate?,
71 | configure: sending ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
72 | ) async throws -> Response<T>
73 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:86:19: error: cannot find type 'URLSessionTaskDelegate' in scope
84 | for request: Request<Void>,
85 | from data: Data,
86 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
87 | configure: sending ((inout URLRequest) throws -> Void)?
88 | ) async throws -> Response<Void>
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:87:36: error: cannot find type 'URLRequest' in scope
85 | from data: Data,
86 | delegate: URLSessionTaskDelegate?,
87 | configure: sending ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
88 | ) async throws -> Response<Void>
89 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:92:69: error: cannot find type 'URLRequest' in scope
90 | // MARK: Making Requests
91 | /// Creates `URLRequest` for the given request.
92 | func makeURLRequest<T>(for request: Request<T>) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
93 |
94 | /// Clears URL Cache.
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:65:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
63 | self.configuration = configuration
64 | let delegateQueue = configuration.sessionDelegateQueue ?? .serial()
65 | self.session = URLSession(configuration: configuration.sessionConfiguration, delegate: dataLoader, delegateQueue: delegateQueue)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
66 | self.dataLoader.userSessionDelegate = configuration.sessionDelegate
67 | self.delegate = configuration.delegate ?? DefaultAPIClientDelegate()
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:7:30: error: cannot find type 'URLSessionDelegate' in scope
5 | private let handlers = TaskHandlersDictionary()
6 |
7 | var userSessionDelegate: URLSessionDelegate? {
| `- error: cannot find type 'URLSessionDelegate' in scope
8 | didSet {
9 | userTaskDelegate = userSessionDelegate as? URLSessionTaskDelegate
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientDelegate.swift:26:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | /// ``APIError/unacceptableStatusCode(_:)`` if the code is outside of
25 | /// the `200..<300` range.
26 | func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |
28 | /// Gets called after a networking failure. Only one retry attempt is allowed.
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/Sources/SkavokNetworking/APIClientDelegate.swift:26:100: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | /// ``APIError/unacceptableStatusCode(_:)`` if the code is outside of
25 | /// the `200..<300` range.
26 | func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |
28 | /// Gets called after a networking failure. Only one retry attempt is allowed.
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/Sources/SkavokNetworking/APIClientDelegate.swift:41:56: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | ///
40 | /// - returns: Return `true` to retry the request.
41 | func client(_ client: APIClient, shouldRetry task: URLSessionTask, error: Error, attempts: Int) async throws -> Bool
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |
43 | /// Constructs URL for the given request.
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/Sources/SkavokNetworking/APIClientDelegate.swift:74:69: error: cannot find type 'URLRequest' in scope
72 |
73 | public extension APIClientDelegate {
74 | func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
75 | // Do nothing
76 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientDelegate.swift:78:56: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | }
77 |
78 | func client(_ client: APIClient, shouldRetry task: URLSessionTask, error: Error, attempts: Int) async throws -> Bool {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | false // Disabled by default
80 | }
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/Sources/SkavokNetworking/APIClientDelegate.swift:82:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 | }
81 |
82 | func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
83 | guard (200..<300).contains(response.statusCode) else {
84 | throw APIError.unacceptableStatusCode(response.statusCode)
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/Sources/SkavokNetworking/APIClientDelegate.swift:82:100: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 | }
81 |
82 | func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
83 | guard (200..<300).contains(response.statusCode) else {
84 | throw APIError.unacceptableStatusCode(response.statusCode)
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/Sources/SkavokNetworking/DataLoader.swift:4:35: error: cannot find type 'URLSessionDataDelegate' in scope
2 |
3 | // A simple URLSession wrapper adding async/await APIs compatible with older platforms.
4 | final class DataLoader: NSObject, URLSessionDataDelegate, URLSessionDownloadDelegate, @unchecked Sendable {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
5 | private let handlers = TaskHandlersDictionary()
6 |
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:4:59: error: cannot find type 'URLSessionDownloadDelegate' in scope
2 |
3 | // A simple URLSession wrapper adding async/await APIs compatible with older platforms.
4 | final class DataLoader: NSObject, URLSessionDataDelegate, URLSessionDownloadDelegate, @unchecked Sendable {
| `- error: cannot find type 'URLSessionDownloadDelegate' in scope
5 | private let handlers = TaskHandlersDictionary()
6 |
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:368:28: error: type 'URLSessionTask' (aka 'AnyObject') does not conform to protocol 'Hashable'
366 | private final class TaskHandlersDictionary {
367 | private let lock = NSLock()
368 | private var handlers = [URLSessionTask: TaskHandler]()
| `- error: type 'URLSessionTask' (aka 'AnyObject') does not conform to protocol 'Hashable'
369 |
370 | subscript(task: URLSessionTask) -> TaskHandler? {
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:368:28: error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
366 | private final class TaskHandlersDictionary {
367 | private let lock = NSLock()
368 | private var handlers = [URLSessionTask: TaskHandler]()
| `- error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
369 |
370 | subscript(task: URLSessionTask) -> TaskHandler? {
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:14:35: error: cannot find type 'URLSessionTaskDelegate' in scope
12 | }
13 | }
14 | private var userTaskDelegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
15 | private var userDataDelegate: URLSessionDataDelegate?
16 | private var userDownloadDelegate: URLSessionDownloadDelegate?
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:9:56: error: cannot find type 'URLSessionTaskDelegate' in scope
7 | var userSessionDelegate: URLSessionDelegate? {
8 | didSet {
9 | userTaskDelegate = userSessionDelegate as? URLSessionTaskDelegate
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
10 | userDataDelegate = userSessionDelegate as? URLSessionDataDelegate
11 | userDownloadDelegate = userSessionDelegate as? URLSessionDownloadDelegate
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:15:35: error: cannot find type 'URLSessionDataDelegate' in scope
13 | }
14 | private var userTaskDelegate: URLSessionTaskDelegate?
15 | private var userDataDelegate: URLSessionDataDelegate?
| `- error: cannot find type 'URLSessionDataDelegate' in scope
16 | private var userDownloadDelegate: URLSessionDownloadDelegate?
17 |
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:10:56: error: cannot find type 'URLSessionDataDelegate' in scope
8 | didSet {
9 | userTaskDelegate = userSessionDelegate as? URLSessionTaskDelegate
10 | userDataDelegate = userSessionDelegate as? URLSessionDataDelegate
| `- error: cannot find type 'URLSessionDataDelegate' in scope
11 | userDownloadDelegate = userSessionDelegate as? URLSessionDownloadDelegate
12 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:16:39: error: cannot find type 'URLSessionDownloadDelegate' in scope
14 | private var userTaskDelegate: URLSessionTaskDelegate?
15 | private var userDataDelegate: URLSessionDataDelegate?
16 | private var userDownloadDelegate: URLSessionDownloadDelegate?
| `- error: cannot find type 'URLSessionDownloadDelegate' in scope
17 |
18 | private static let downloadDirectoryURL: URL = {
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:11:60: error: cannot find type 'URLSessionDownloadDelegate' in scope
9 | userTaskDelegate = userSessionDelegate as? URLSessionTaskDelegate
10 | userDataDelegate = userSessionDelegate as? URLSessionDataDelegate
11 | userDownloadDelegate = userSessionDelegate as? URLSessionDownloadDelegate
| `- error: cannot find type 'URLSessionDownloadDelegate' in scope
12 | }
13 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:24:83: error: cannot find type 'URLSessionDataDelegate' in scope
22 | }()
23 |
24 | func startDataTask(_ task: URLSessionDataTask, session: URLSession, delegate: URLSessionDataDelegate?) async throws -> Response<Data> {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
25 | try await withTaskCancellationHandler(operation: {
26 | try await withUnsafeThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:24:32: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | }()
23 |
24 | func startDataTask(_ task: URLSessionDataTask, session: URLSession, delegate: URLSessionDataDelegate?) async throws -> Response<Data> {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | try await withTaskCancellationHandler(operation: {
26 | try await withUnsafeThrowingContinuation { continuation in
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:24:61: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | }()
23 |
24 | func startDataTask(_ task: URLSessionDataTask, session: URLSession, delegate: URLSessionDataDelegate?) async throws -> Response<Data> {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | try await withTaskCancellationHandler(operation: {
26 | try await withUnsafeThrowingContinuation { continuation in
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/Sources/SkavokNetworking/DataLoader.swift:40:91: error: cannot find type 'URLSessionDownloadDelegate' in scope
38 | }
39 |
40 | func startDownloadTask(_ task: URLSessionDownloadTask, session: URLSession, delegate: URLSessionDownloadDelegate?) async throws -> Response<URL> {
| `- error: cannot find type 'URLSessionDownloadDelegate' in scope
41 | try await withTaskCancellationHandler(operation: {
42 | try await withUnsafeThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:40:36: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | }
39 |
40 | func startDownloadTask(_ task: URLSessionDownloadTask, session: URLSession, delegate: URLSessionDownloadDelegate?) async throws -> Response<URL> {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | try await withTaskCancellationHandler(operation: {
42 | try await withUnsafeThrowingContinuation { continuation in
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:40:69: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | }
39 |
40 | func startDownloadTask(_ task: URLSessionDownloadTask, session: URLSession, delegate: URLSessionDownloadDelegate?) async throws -> Response<URL> {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | try await withTaskCancellationHandler(operation: {
42 | try await withUnsafeThrowingContinuation { continuation in
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/Sources/SkavokNetworking/DataLoader.swift:56:87: error: cannot find type 'URLSessionTaskDelegate' in scope
54 | }
55 |
56 | func startUploadTask(_ task: URLSessionUploadTask, session: URLSession, delegate: URLSessionTaskDelegate?) async throws -> Response<Data> {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
57 | try await withTaskCancellationHandler(operation: {
58 | try await withUnsafeThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:56:34: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 | }
55 |
56 | func startUploadTask(_ task: URLSessionUploadTask, session: URLSession, delegate: URLSessionTaskDelegate?) async throws -> Response<Data> {
| `- error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | try await withTaskCancellationHandler(operation: {
58 | try await withUnsafeThrowingContinuation { continuation in
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' 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 URLSessionUploadTask = AnyObject
| `- note: 'URLSessionUploadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:56:65: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 | }
55 |
56 | func startUploadTask(_ task: URLSessionUploadTask, session: URLSession, delegate: URLSessionTaskDelegate?) async throws -> Response<Data> {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | try await withTaskCancellationHandler(operation: {
58 | try await withUnsafeThrowingContinuation { continuation in
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/Sources/SkavokNetworking/DataLoader.swift:74:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | // MARK: - URLSessionDelegate
73 |
74 | func urlSession(_ session: URLSession, didBecomeInvalidWithError error: Error?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | userSessionDelegate?.urlSession?(session, didBecomeInvalidWithError: error)
76 | }
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/Sources/SkavokNetworking/DataLoader.swift:78:69: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | }
77 |
78 | func urlSessionDidFinishEvents(forBackgroundURLSession session: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | if #available(macOS 11.0, *) {
80 | userSessionDelegate?.urlSessionDidFinishEvents?(forBackgroundURLSession: 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/Sources/SkavokNetworking/DataLoader.swift:88:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
86 | // MARK: - URLSessionTaskDelegate
87 |
88 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | guard let handler = handlers[task] else { return assertionFailure() }
90 | handlers[task] = nil
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/Sources/SkavokNetworking/DataLoader.swift:88:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
86 | // MARK: - URLSessionTaskDelegate
87 |
88 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | guard let handler = handlers[task] else { return assertionFailure() }
90 | handlers[task] = nil
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/Sources/SkavokNetworking/DataLoader.swift:114:95: error: cannot find type 'URLSessionTaskMetrics' in scope
112 | }
113 |
114 | func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
115 | let handler = handlers[task]
116 | handler?.metrics = metrics
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:114:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 | }
113 |
114 | func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | let handler = handlers[task]
116 | handler?.metrics = metrics
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/Sources/SkavokNetworking/DataLoader.swift:114:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 | }
113 |
114 | func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | let handler = handlers[task]
116 | handler?.metrics = metrics
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/Sources/SkavokNetworking/DataLoader.swift:125:29: error: cannot find type 'URLRequest' in scope
123 | task: URLSessionTask,
124 | willPerformHTTPRedirection response: HTTPURLResponse,
125 | newRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
126 | completionHandler: @escaping @Sendable (URLRequest?) -> Void
127 | ) {
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:126:49: error: cannot find type 'URLRequest' in scope
124 | willPerformHTTPRedirection response: HTTPURLResponse,
125 | newRequest request: URLRequest,
126 | completionHandler: @escaping @Sendable (URLRequest?) -> Void
| `- error: cannot find type 'URLRequest' in scope
127 | ) {
128 | handlers[task]?.delegate?.urlSession?(
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:122:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
120 |
121 | func urlSession(
122 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
123 | task: URLSessionTask,
124 | willPerformHTTPRedirection response: HTTPURLResponse,
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/Sources/SkavokNetworking/DataLoader.swift:123:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 | func urlSession(
122 | _ session: URLSession,
123 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 | willPerformHTTPRedirection response: HTTPURLResponse,
125 | newRequest request: URLRequest,
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/Sources/SkavokNetworking/DataLoader.swift:124:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 | _ session: URLSession,
123 | task: URLSessionTask,
124 | willPerformHTTPRedirection response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | newRequest request: URLRequest,
126 | completionHandler: @escaping @Sendable (URLRequest?) -> Void
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/Sources/SkavokNetworking/DataLoader.swift:145:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 | }
144 |
145 | func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 | handlers[task]?.delegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
147 | userTaskDelegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
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/Sources/SkavokNetworking/DataLoader.swift:145:79: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 | }
144 |
145 | func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 | handlers[task]?.delegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
147 | userTaskDelegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
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/Sources/SkavokNetworking/DataLoader.swift:154:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
152 | task: URLSessionTask,
153 | didReceive challenge: URLAuthenticationChallenge,
154 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
155 | ) {
156 | handlers[task]?.delegate?.urlSession?(
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:151:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
149 |
150 | func urlSession(
151 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
152 | task: URLSessionTask,
153 | didReceive challenge: URLAuthenticationChallenge,
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/Sources/SkavokNetworking/DataLoader.swift:152:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
150 | func urlSession(
151 | _ session: URLSession,
152 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
153 | didReceive challenge: URLAuthenticationChallenge,
154 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
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/Sources/SkavokNetworking/DataLoader.swift:153:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
151 | _ session: URLSession,
152 | task: URLSessionTask,
153 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
155 | ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:171:99: error: cannot find type 'URLRequest' in scope
169 | }
170 |
171 | func urlSession(_ session: URLSession, task: URLSessionTask, willBeginDelayedRequest request: URLRequest, completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
172 | handlers[task]?.delegate?.urlSession?(
173 | session,
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:171:162: error: 'DelayedRequestDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
169 | }
170 |
171 | func urlSession(_ session: URLSession, task: URLSessionTask, willBeginDelayedRequest request: URLRequest, completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) {
| `- error: 'DelayedRequestDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
172 | handlers[task]?.delegate?.urlSession?(
173 | session,
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:171:189: error: cannot find type 'URLRequest' in scope
169 | }
170 |
171 | func urlSession(_ session: URLSession, task: URLSessionTask, willBeginDelayedRequest request: URLRequest, completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
172 | handlers[task]?.delegate?.urlSession?(
173 | session,
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:171:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
169 | }
170 |
171 | func urlSession(_ session: URLSession, task: URLSessionTask, willBeginDelayedRequest request: URLRequest, completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
172 | handlers[task]?.delegate?.urlSession?(
173 | 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/Sources/SkavokNetworking/DataLoader.swift:171:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
169 | }
170 |
171 | func urlSession(_ session: URLSession, task: URLSessionTask, willBeginDelayedRequest request: URLRequest, completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
172 | handlers[task]?.delegate?.urlSession?(
173 | session,
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/Sources/SkavokNetworking/DataLoader.swift:192:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
190 | dataTask: URLSessionDataTask,
191 | didReceive response: URLResponse,
192 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
193 | ) {
194 | (handlers[dataTask] as? DataTaskHandler)?.dataDelegate?.urlSession?(
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:189:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
187 | // MARK: - URLSessionDataDelegate
188 | func urlSession(
189 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 | dataTask: URLSessionDataTask,
191 | didReceive response: URLResponse,
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/Sources/SkavokNetworking/DataLoader.swift:190:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
188 | func urlSession(
189 | _ session: URLSession,
190 | dataTask: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
191 | didReceive response: URLResponse,
192 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:191:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 | _ session: URLSession,
190 | dataTask: URLSessionDataTask,
191 | didReceive response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
193 | ) {
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:209:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 | }
208 |
209 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
210 | guard let handler = handlers[dataTask] as? DataTaskHandler else { return }
211 |
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/Sources/SkavokNetworking/DataLoader.swift:209:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 | }
208 |
209 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
210 | guard let handler = handlers[dataTask] as? DataTaskHandler else { return }
211 |
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:223:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
221 |
222 | func urlSession(
223 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
224 | dataTask: URLSessionDataTask,
225 | willCacheResponse proposedResponse: CachedURLResponse,
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/Sources/SkavokNetworking/DataLoader.swift:224:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
222 | func urlSession(
223 | _ session: URLSession,
224 | dataTask: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
225 | willCacheResponse proposedResponse: CachedURLResponse,
226 | completionHandler: @escaping @Sendable (CachedURLResponse?) -> Void
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:225:45: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
223 | _ session: URLSession,
224 | dataTask: URLSessionDataTask,
225 | willCacheResponse proposedResponse: CachedURLResponse,
| `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 | completionHandler: @escaping @Sendable (CachedURLResponse?) -> Void
227 | ) {
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' 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 CachedURLResponse = AnyObject
| `- note: 'CachedURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:226:49: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
224 | dataTask: URLSessionDataTask,
225 | willCacheResponse proposedResponse: CachedURLResponse,
226 | completionHandler: @escaping @Sendable (CachedURLResponse?) -> Void
| `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
227 | ) {
228 | (handlers[dataTask] as? DataTaskHandler)?.dataDelegate?.urlSession?(
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' 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 CachedURLResponse = AnyObject
| `- note: 'CachedURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:244:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
242 |
243 | // MARK: - URLSessionDownloadDelegate
244 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
245 | let handler = (handlers[downloadTask] as? DownloadTaskHandler)
246 | let downloadsURL = DataLoader.downloadDirectoryURL
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/Sources/SkavokNetworking/DataLoader.swift:244:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
242 |
243 | // MARK: - URLSessionDownloadDelegate
244 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
245 | let handler = (handlers[downloadTask] as? DownloadTaskHandler)
246 | let downloadsURL = DataLoader.downloadDirectoryURL
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:255:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
253 | }
254 |
255 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
256 | (handlers[downloadTask] as? DownloadTaskHandler)?.downloadDelegate?.urlSession?(session, downloadTask: downloadTask, didWriteData: bytesWritten, totalBytesWritten: totalBytesWritten, totalBytesExpectedToWrite: totalBytesExpectedToWrite)
257 | userDownloadDelegate?.urlSession?(session, downloadTask: downloadTask, didWriteData: bytesWritten, totalBytesWritten: totalBytesWritten, totalBytesExpectedToWrite: totalBytesExpectedToWrite)
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/Sources/SkavokNetworking/DataLoader.swift:255:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
253 | }
254 |
255 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
256 | (handlers[downloadTask] as? DownloadTaskHandler)?.downloadDelegate?.urlSession?(session, downloadTask: downloadTask, didWriteData: bytesWritten, totalBytesWritten: totalBytesWritten, totalBytesExpectedToWrite: totalBytesExpectedToWrite)
257 | userDownloadDelegate?.urlSession?(session, downloadTask: downloadTask, didWriteData: bytesWritten, totalBytesWritten: totalBytesWritten, totalBytesExpectedToWrite: totalBytesExpectedToWrite)
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:260:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
258 | }
259 |
260 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didResumeAtOffset fileOffset: Int64, expectedTotalBytes: Int64) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
261 | (handlers[downloadTask] as? DownloadTaskHandler)?.downloadDelegate?.urlSession?(session, downloadTask: downloadTask, didResumeAtOffset: fileOffset, expectedTotalBytes: expectedTotalBytes)
262 | userDownloadDelegate?.urlSession?(session, downloadTask: downloadTask, didResumeAtOffset: fileOffset, expectedTotalBytes: expectedTotalBytes)
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/Sources/SkavokNetworking/DataLoader.swift:260:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
258 | }
259 |
260 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didResumeAtOffset fileOffset: Int64, expectedTotalBytes: Int64) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
261 | (handlers[downloadTask] as? DownloadTaskHandler)?.downloadDelegate?.urlSession?(session, downloadTask: downloadTask, didResumeAtOffset: fileOffset, expectedTotalBytes: expectedTotalBytes)
262 | userDownloadDelegate?.urlSession?(session, downloadTask: downloadTask, didResumeAtOffset: fileOffset, expectedTotalBytes: expectedTotalBytes)
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:268:19: error: cannot find type 'URLSessionTaskDelegate' in scope
266 | // MARK: - TaskHandlers
267 | private class TaskHandler {
268 | let delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
269 | var metrics: URLSessionTaskMetrics?
270 |
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:269:18: error: cannot find type 'URLSessionTaskMetrics' in scope
267 | private class TaskHandler {
268 | let delegate: URLSessionTaskDelegate?
269 | var metrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
270 |
271 | init(delegate: URLSessionTaskDelegate?) {
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:271:20: error: cannot find type 'URLSessionTaskDelegate' in scope
269 | var metrics: URLSessionTaskMetrics?
270 |
271 | init(delegate: URLSessionTaskDelegate?) {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
272 | self.delegate = delegate
273 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:279:23: error: cannot find type 'URLSessionDataDelegate' in scope
277 | typealias Completion = (Result<Response<Data>, Error>) -> Void
278 |
279 | let dataDelegate: URLSessionDataDelegate?
| `- error: cannot find type 'URLSessionDataDelegate' in scope
280 | var completion: Completion?
281 | var data: Data?
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:283:29: error: cannot find type 'URLSessionTaskDelegate' in scope
281 | var data: Data?
282 |
283 | override init(delegate: URLSessionTaskDelegate?) {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
284 | self.dataDelegate = delegate as? URLSessionDataDelegate
285 | super.init(delegate: delegate)
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:292:27: error: cannot find type 'URLSessionDownloadDelegate' in scope
290 | typealias Completion = (Result<Response<URL>, Error>) -> Void
291 |
292 | let downloadDelegate: URLSessionDownloadDelegate?
| `- error: cannot find type 'URLSessionDownloadDelegate' in scope
293 | var completion: Completion?
294 | var location: URL?
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:296:20: error: cannot find type 'URLSessionDownloadDelegate' in scope
294 | var location: URL?
295 |
296 | init(delegate: URLSessionDownloadDelegate?) {
| `- error: cannot find type 'URLSessionDownloadDelegate' in scope
297 | self.downloadDelegate = delegate
298 | super.init(delegate: delegate)
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:306:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
304 |
305 | struct DataLoaderError: Error {
306 | let task: URLSessionTask
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
307 | let error: Error
308 | }
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/Sources/SkavokNetworking/DataLoader.swift:306:9: error: stored property 'task' of 'Sendable'-conforming struct 'DataLoaderError' has non-sendable type 'URLSessionTask' (aka 'AnyObject')
304 |
305 | struct DataLoaderError: Error {
306 | let task: URLSessionTask
| `- error: stored property 'task' of 'Sendable'-conforming struct 'DataLoaderError' has non-sendable type 'URLSessionTask' (aka 'AnyObject')
307 | let error: Error
308 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:318:11: error: cannot find type 'OperationQueue' in scope
316 | }
317 |
318 | extension OperationQueue {
| `- error: cannot find type 'OperationQueue' in scope
319 | static func serial() -> OperationQueue {
320 | let queue = OperationQueue()
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:370:21: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
368 | private var handlers = [URLSessionTask: TaskHandler]()
369 |
370 | subscript(task: URLSessionTask) -> TaskHandler? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
371 | get {
372 | lock.lock()
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/Sources/SkavokNetworking/Models/APIConfiguration.swift:8:38: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | public var baseURL: URL?
7 | /// By default, `URLSessionConfiguration.default`.
8 | public var sessionConfiguration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | /// The (optional) URLSession delegate that allows you to monitor the underlying URLSession.
10 | public var sessionDelegate: URLSessionDelegate?
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/APIConfiguration.swift:8:65: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
6 | public var baseURL: URL?
7 | /// By default, `URLSessionConfiguration.default`.
8 | public var sessionConfiguration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
9 | /// The (optional) URLSession delegate that allows you to monitor the underlying URLSession.
10 | public var sessionDelegate: URLSessionDelegate?
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/APIConfiguration.swift:10:33: error: cannot find type 'URLSessionDelegate' in scope
8 | public var sessionConfiguration: URLSessionConfiguration = .default
9 | /// The (optional) URLSession delegate that allows you to monitor the underlying URLSession.
10 | public var sessionDelegate: URLSessionDelegate?
| `- error: cannot find type 'URLSessionDelegate' in scope
11 | /// Overrides the default delegate queue.
12 | public var sessionDelegateQueue: OperationQueue?
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/APIConfiguration.swift:12:38: error: cannot find type 'OperationQueue' in scope
10 | public var sessionDelegate: URLSessionDelegate?
11 | /// Overrides the default delegate queue.
12 | public var sessionDelegateQueue: OperationQueue?
| `- error: cannot find type 'OperationQueue' in scope
13 | /// By default, uses `.iso8601` date decoding strategy.
14 | public var decoder: JSONDecoder
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/APIConfiguration.swift:21:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | public init(
20 | baseURL: URL?,
21 | sessionConfiguration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | ) {
23 | self.baseURL = baseURL
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/APIConfiguration.swift:21:58: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
19 | public init(
20 | baseURL: URL?,
21 | sessionConfiguration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
22 | ) {
23 | self.baseURL = baseURL
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/Request.swift:20:29: error: cannot find type 'NSURLRequest' in scope
18 | public var id: String?
19 | /// The constants used to specify interaction with the cached responses.
20 | public var cachePolicy: NSURLRequest.CachePolicy = .useProtocolCachePolicy
| `- error: cannot find type 'NSURLRequest' in scope
21 |
22 | /// Initializes the request with the given parameters.
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/Request.swift:30:22: error: cannot find type 'NSURLRequest' in scope
28 | headers: [String: String]? = nil,
29 | id: String? = nil,
30 | cachePolicy: NSURLRequest.CachePolicy = .useProtocolCachePolicy
| `- error: cannot find type 'NSURLRequest' in scope
31 | ) {
32 | self.method = method
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/Request.swift:49:22: error: cannot find type 'NSURLRequest' in scope
47 | headers: [String: String]? = nil,
48 | id: String? = nil,
49 | cachePolicy: NSURLRequest.CachePolicy = .useProtocolCachePolicy
| `- error: cannot find type 'NSURLRequest' in scope
50 | ) {
51 | self.method = method
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/Request.swift:86:22: error: cannot find type 'NSURLRequest' in scope
84 | headers: [String: String]? = nil,
85 | id: String? = nil,
86 | cachePolicy: NSURLRequest.CachePolicy = .useProtocolCachePolicy
| `- error: cannot find type 'NSURLRequest' in scope
87 | ) {
88 | self.method = method
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/Request.swift:105:22: error: cannot find type 'NSURLRequest' in scope
103 | headers: [String: String]? = nil,
104 | id: String? = nil,
105 | cachePolicy: NSURLRequest.CachePolicy = .useProtocolCachePolicy
| `- error: cannot find type 'NSURLRequest' in scope
106 | ) {
107 | self.method = method
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/Response.swift:8:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | public let value: T
7 | /// Original response.
8 | public let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | /// Response HTTP status code.
10 | public var statusCode: Int? { (response as? HTTPURLResponse)?.statusCode }
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/Response.swift:14:33: error: cannot find type 'URLRequest' in scope
12 | public let data: Data
13 | /// Original request.
14 | public var originalRequest: URLRequest? { task.originalRequest }
| `- error: cannot find type 'URLRequest' in scope
15 | /// The URL request object currently being handled by the task. May be
16 | /// different from the original request.
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/Response.swift:17:32: error: cannot find type 'URLRequest' in scope
15 | /// The URL request object currently being handled by the task. May be
16 | /// different from the original request.
17 | public var currentRequest: URLRequest? { task.currentRequest }
| `- error: cannot find type 'URLRequest' in scope
18 | /// Completed task.
19 | public let task: URLSessionTask
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/Response.swift:19:22: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | public var currentRequest: URLRequest? { task.currentRequest }
18 | /// Completed task.
19 | public let task: URLSessionTask
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | /// Task metrics collected for the request.
21 | public let metrics: URLSessionTaskMetrics?
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/Sources/SkavokNetworking/Models/Response.swift:21:25: error: cannot find type 'URLSessionTaskMetrics' in scope
19 | public let task: URLSessionTask
20 | /// Task metrics collected for the request.
21 | public let metrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
22 |
23 | /// Initializes the response.
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/Response.swift:24:93: error: cannot find type 'URLSessionTaskMetrics' in scope
22 |
23 | /// Initializes the response.
24 | public init(value: T, data: Data, response: URLResponse, task: URLSessionTask, metrics: URLSessionTaskMetrics? = nil) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
25 | self.value = value
26 | self.data = data
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/Response.swift:24:49: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | /// Initializes the response.
24 | public init(value: T, data: Data, response: URLResponse, task: URLSessionTask, metrics: URLSessionTaskMetrics? = nil) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | self.value = value
26 | self.data = data
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/Response.swift:24:68: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | /// Initializes the response.
24 | public init(value: T, data: Data, response: URLResponse, task: URLSessionTask, metrics: URLSessionTaskMetrics? = nil) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | self.value = value
26 | self.data = data
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
[6/9] Compiling SkavokNetworking APIClientProtocol.swift
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:6:19: error: cannot find type 'URLSessionDataDelegate' in scope
4 | func send<T: Decodable & Sendable>(
5 | _ request: Request<T>,
6 | delegate: URLSessionDataDelegate?,
| `- error: cannot find type 'URLSessionDataDelegate' in scope
7 | configure: sending ((inout URLRequest) throws -> Void)?
8 | ) async throws -> Response<T>
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:7:36: error: cannot find type 'URLRequest' in scope
5 | _ request: Request<T>,
6 | delegate: URLSessionDataDelegate?,
7 | configure: sending ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
8 | ) async throws -> Response<T>
9 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:12:19: error: cannot find type 'URLSessionDataDelegate' in scope
10 | func send(
11 | _ request: Request<Void>,
12 | delegate: URLSessionDataDelegate?,
| `- error: cannot find type 'URLSessionDataDelegate' in scope
13 | configure: sending ((inout URLRequest) throws -> Void)?
14 | ) async throws -> Response<Void>
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:13:36: error: cannot find type 'URLRequest' in scope
11 | _ request: Request<Void>,
12 | delegate: URLSessionDataDelegate?,
13 | configure: sending ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
14 | ) async throws -> Response<Void>
15 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:18:19: error: cannot find type 'URLSessionDataDelegate' in scope
16 | func data<T>(
17 | for request: Request<T>,
18 | delegate: URLSessionDataDelegate?,
| `- error: cannot find type 'URLSessionDataDelegate' in scope
19 | configure: sending ((inout URLRequest) throws -> Void)?
20 | ) async throws -> Response<Data>
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:19:36: error: cannot find type 'URLRequest' in scope
17 | for request: Request<T>,
18 | delegate: URLSessionDataDelegate?,
19 | configure: sending ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
20 | ) async throws -> Response<Data>
21 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:36:19: error: cannot find type 'URLSessionTaskDelegate' in scope
34 | for request: Request<T>,
35 | fromFile fileURL: URL,
36 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
37 | configure: sending ((inout URLRequest) throws -> Void)?
38 | ) async throws -> Response<T>
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:37:36: error: cannot find type 'URLRequest' in scope
35 | fromFile fileURL: URL,
36 | delegate: URLSessionTaskDelegate?,
37 | configure: sending ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
38 | ) async throws -> Response<T>
39 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:52:19: error: cannot find type 'URLSessionTaskDelegate' in scope
50 | for request: Request<Void>,
51 | fromFile fileURL: URL,
52 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
53 | configure: sending ((inout URLRequest) throws -> Void)?
54 | ) async throws -> Response<Void>
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:53:36: error: cannot find type 'URLRequest' in scope
51 | fromFile fileURL: URL,
52 | delegate: URLSessionTaskDelegate?,
53 | configure: sending ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
54 | ) async throws -> Response<Void>
55 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:70:19: error: cannot find type 'URLSessionTaskDelegate' in scope
68 | for request: Request<T>,
69 | from data: Data,
70 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
71 | configure: sending ((inout URLRequest) throws -> Void)?
72 | ) async throws -> Response<T>
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:71:36: error: cannot find type 'URLRequest' in scope
69 | from data: Data,
70 | delegate: URLSessionTaskDelegate?,
71 | configure: sending ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
72 | ) async throws -> Response<T>
73 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:86:19: error: cannot find type 'URLSessionTaskDelegate' in scope
84 | for request: Request<Void>,
85 | from data: Data,
86 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
87 | configure: sending ((inout URLRequest) throws -> Void)?
88 | ) async throws -> Response<Void>
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:87:36: error: cannot find type 'URLRequest' in scope
85 | from data: Data,
86 | delegate: URLSessionTaskDelegate?,
87 | configure: sending ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
88 | ) async throws -> Response<Void>
89 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:92:69: error: cannot find type 'URLRequest' in scope
90 | // MARK: Making Requests
91 | /// Creates `URLRequest` for the given request.
92 | func makeURLRequest<T>(for request: Request<T>) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
93 |
94 | /// Clears URL Cache.
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:100:13: error: cannot convert return expression of type 'Int' to return type 'Response<T>'
98 | public extension ApiClientProtocol {
99 | func send<T: Decodable & Sendable>(_ request: Request<T>) async throws -> Response<T> {
100 | try await send(request, delegate: nil, configure: nil)
| `- error: cannot convert return expression of type 'Int' to return type 'Response<T>'
101 | }
102 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:100:23: error: extraneous argument labels 'delegate:configure:' in call
98 | public extension ApiClientProtocol {
99 | func send<T: Decodable & Sendable>(_ request: Request<T>) async throws -> Response<T> {
100 | try await send(request, delegate: nil, configure: nil)
| `- error: extraneous argument labels 'delegate:configure:' in call
101 | }
102 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:100:62: error: missing argument for parameter #4 in call
98 | public extension ApiClientProtocol {
99 | func send<T: Decodable & Sendable>(_ request: Request<T>) async throws -> Response<T> {
100 | try await send(request, delegate: nil, configure: nil)
| `- error: missing argument for parameter #4 in call
101 | }
102 |
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/sys/socket.h:425:9: note: 'send' declared here
423 | #endif
424 |
425 | ssize_t send (int, const void *, size_t, int);
| `- note: 'send' declared here
426 | ssize_t recv (int, void *, size_t, int);
427 | #if (defined __wasilibc_unmodified_upstream) || (defined __wasilibc_use_wasip2)
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:100:24: error: cannot convert value of type 'Request<T>' to expected argument type 'Int32'
98 | public extension ApiClientProtocol {
99 | func send<T: Decodable & Sendable>(_ request: Request<T>) async throws -> Response<T> {
100 | try await send(request, delegate: nil, configure: nil)
| `- error: cannot convert value of type 'Request<T>' to expected argument type 'Int32'
101 | }
102 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:100:59: error: 'nil' is not compatible with expected argument type 'Int'
98 | public extension ApiClientProtocol {
99 | func send<T: Decodable & Sendable>(_ request: Request<T>) async throws -> Response<T> {
100 | try await send(request, delegate: nil, configure: nil)
| `- error: 'nil' is not compatible with expected argument type 'Int'
101 | }
102 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:100:19: error: use of 'send' refers to instance method rather than global function 'send' in module 'SwiftWASILibc'
98 | public extension ApiClientProtocol {
99 | func send<T: Decodable & Sendable>(_ request: Request<T>) async throws -> Response<T> {
100 | try await send(request, delegate: nil, configure: nil)
| |- error: use of 'send' refers to instance method rather than global function 'send' in module 'SwiftWASILibc'
| `- note: use 'SwiftWASILibc.' to reference the global function in module 'SwiftWASILibc'
101 | }
102 |
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/sys/socket.h:425:9: note: 'send' declared here
423 | #endif
424 |
425 | ssize_t send (int, const void *, size_t, int);
| `- note: 'send' declared here
426 | ssize_t recv (int, void *, size_t, int);
427 | #if (defined __wasilibc_unmodified_upstream) || (defined __wasilibc_use_wasip2)
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:105:13: error: cannot convert return expression of type 'Int' to return type 'Response<Void>'
103 | @discardableResult
104 | func send(_ request: Request<Void>) async throws -> Response<Void> {
105 | try await send(request, delegate: nil, configure: nil)
| `- error: cannot convert return expression of type 'Int' to return type 'Response<Void>'
106 | }
107 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:105:19: error: use of 'send' refers to instance method rather than global function 'send' in module 'SwiftWASILibc'
103 | @discardableResult
104 | func send(_ request: Request<Void>) async throws -> Response<Void> {
105 | try await send(request, delegate: nil, configure: nil)
| |- error: use of 'send' refers to instance method rather than global function 'send' in module 'SwiftWASILibc'
| `- note: use 'SwiftWASILibc.' to reference the global function in module 'SwiftWASILibc'
106 | }
107 |
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/sys/socket.h:425:9: note: 'send' declared here
423 | #endif
424 |
425 | ssize_t send (int, const void *, size_t, int);
| `- note: 'send' declared here
426 | ssize_t recv (int, void *, size_t, int);
427 | #if (defined __wasilibc_unmodified_upstream) || (defined __wasilibc_use_wasip2)
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:105:23: error: extraneous argument labels 'delegate:configure:' in call
103 | @discardableResult
104 | func send(_ request: Request<Void>) async throws -> Response<Void> {
105 | try await send(request, delegate: nil, configure: nil)
| `- error: extraneous argument labels 'delegate:configure:' in call
106 | }
107 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:105:62: error: missing argument for parameter #4 in call
103 | @discardableResult
104 | func send(_ request: Request<Void>) async throws -> Response<Void> {
105 | try await send(request, delegate: nil, configure: nil)
| `- error: missing argument for parameter #4 in call
106 | }
107 |
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/sys/socket.h:425:9: note: 'send' declared here
423 | #endif
424 |
425 | ssize_t send (int, const void *, size_t, int);
| `- note: 'send' declared here
426 | ssize_t recv (int, void *, size_t, int);
427 | #if (defined __wasilibc_unmodified_upstream) || (defined __wasilibc_use_wasip2)
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:105:24: error: cannot convert value of type 'Request<Void>' to expected argument type 'Int32'
103 | @discardableResult
104 | func send(_ request: Request<Void>) async throws -> Response<Void> {
105 | try await send(request, delegate: nil, configure: nil)
| `- error: cannot convert value of type 'Request<Void>' to expected argument type 'Int32'
106 | }
107 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:105:59: error: 'nil' is not compatible with expected argument type 'Int'
103 | @discardableResult
104 | func send(_ request: Request<Void>) async throws -> Response<Void> {
105 | try await send(request, delegate: nil, configure: nil)
| `- error: 'nil' is not compatible with expected argument type 'Int'
106 | }
107 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:110:25: error: extra arguments at positions #3, #4 in call
107 |
108 | @discardableResult
109 | func upload(for request: Request<Void>, from data: Data) async throws -> Response<Void> {
| `- note: 'upload(for:from:)' declared here
110 | try await upload(for: request, from: data, delegate: nil, configure: nil)
| `- error: extra arguments at positions #3, #4 in call
111 | }
112 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:110:62: error: 'nil' requires a contextual type
108 | @discardableResult
109 | func upload(for request: Request<Void>, from data: Data) async throws -> Response<Void> {
110 | try await upload(for: request, from: data, delegate: nil, configure: nil)
| `- error: 'nil' requires a contextual type
111 | }
112 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:110:78: error: 'nil' requires a contextual type
108 | @discardableResult
109 | func upload(for request: Request<Void>, from data: Data) async throws -> Response<Void> {
110 | try await upload(for: request, from: data, delegate: nil, configure: nil)
| `- error: 'nil' requires a contextual type
111 | }
112 | }
[7/9] Compiling SkavokNetworking DataLoader.swift
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:4:35: error: cannot find type 'URLSessionDataDelegate' in scope
2 |
3 | // A simple URLSession wrapper adding async/await APIs compatible with older platforms.
4 | final class DataLoader: NSObject, URLSessionDataDelegate, URLSessionDownloadDelegate, @unchecked Sendable {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
5 | private let handlers = TaskHandlersDictionary()
6 |
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:4:59: error: cannot find type 'URLSessionDownloadDelegate' in scope
2 |
3 | // A simple URLSession wrapper adding async/await APIs compatible with older platforms.
4 | final class DataLoader: NSObject, URLSessionDataDelegate, URLSessionDownloadDelegate, @unchecked Sendable {
| `- error: cannot find type 'URLSessionDownloadDelegate' in scope
5 | private let handlers = TaskHandlersDictionary()
6 |
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:368:28: error: type 'URLSessionTask' (aka 'AnyObject') does not conform to protocol 'Hashable'
366 | private final class TaskHandlersDictionary {
367 | private let lock = NSLock()
368 | private var handlers = [URLSessionTask: TaskHandler]()
| `- error: type 'URLSessionTask' (aka 'AnyObject') does not conform to protocol 'Hashable'
369 |
370 | subscript(task: URLSessionTask) -> TaskHandler? {
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:368:28: error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
366 | private final class TaskHandlersDictionary {
367 | private let lock = NSLock()
368 | private var handlers = [URLSessionTask: TaskHandler]()
| `- error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
369 |
370 | subscript(task: URLSessionTask) -> TaskHandler? {
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:7:30: error: cannot find type 'URLSessionDelegate' in scope
5 | private let handlers = TaskHandlersDictionary()
6 |
7 | var userSessionDelegate: URLSessionDelegate? {
| `- error: cannot find type 'URLSessionDelegate' in scope
8 | didSet {
9 | userTaskDelegate = userSessionDelegate as? URLSessionTaskDelegate
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:14:35: error: cannot find type 'URLSessionTaskDelegate' in scope
12 | }
13 | }
14 | private var userTaskDelegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
15 | private var userDataDelegate: URLSessionDataDelegate?
16 | private var userDownloadDelegate: URLSessionDownloadDelegate?
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:9:56: error: cannot find type 'URLSessionTaskDelegate' in scope
7 | var userSessionDelegate: URLSessionDelegate? {
8 | didSet {
9 | userTaskDelegate = userSessionDelegate as? URLSessionTaskDelegate
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
10 | userDataDelegate = userSessionDelegate as? URLSessionDataDelegate
11 | userDownloadDelegate = userSessionDelegate as? URLSessionDownloadDelegate
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:15:35: error: cannot find type 'URLSessionDataDelegate' in scope
13 | }
14 | private var userTaskDelegate: URLSessionTaskDelegate?
15 | private var userDataDelegate: URLSessionDataDelegate?
| `- error: cannot find type 'URLSessionDataDelegate' in scope
16 | private var userDownloadDelegate: URLSessionDownloadDelegate?
17 |
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:10:56: error: cannot find type 'URLSessionDataDelegate' in scope
8 | didSet {
9 | userTaskDelegate = userSessionDelegate as? URLSessionTaskDelegate
10 | userDataDelegate = userSessionDelegate as? URLSessionDataDelegate
| `- error: cannot find type 'URLSessionDataDelegate' in scope
11 | userDownloadDelegate = userSessionDelegate as? URLSessionDownloadDelegate
12 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:16:39: error: cannot find type 'URLSessionDownloadDelegate' in scope
14 | private var userTaskDelegate: URLSessionTaskDelegate?
15 | private var userDataDelegate: URLSessionDataDelegate?
16 | private var userDownloadDelegate: URLSessionDownloadDelegate?
| `- error: cannot find type 'URLSessionDownloadDelegate' in scope
17 |
18 | private static let downloadDirectoryURL: URL = {
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:11:60: error: cannot find type 'URLSessionDownloadDelegate' in scope
9 | userTaskDelegate = userSessionDelegate as? URLSessionTaskDelegate
10 | userDataDelegate = userSessionDelegate as? URLSessionDataDelegate
11 | userDownloadDelegate = userSessionDelegate as? URLSessionDownloadDelegate
| `- error: cannot find type 'URLSessionDownloadDelegate' in scope
12 | }
13 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:24:83: error: cannot find type 'URLSessionDataDelegate' in scope
22 | }()
23 |
24 | func startDataTask(_ task: URLSessionDataTask, session: URLSession, delegate: URLSessionDataDelegate?) async throws -> Response<Data> {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
25 | try await withTaskCancellationHandler(operation: {
26 | try await withUnsafeThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:24:32: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | }()
23 |
24 | func startDataTask(_ task: URLSessionDataTask, session: URLSession, delegate: URLSessionDataDelegate?) async throws -> Response<Data> {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | try await withTaskCancellationHandler(operation: {
26 | try await withUnsafeThrowingContinuation { continuation in
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:24:61: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | }()
23 |
24 | func startDataTask(_ task: URLSessionDataTask, session: URLSession, delegate: URLSessionDataDelegate?) async throws -> Response<Data> {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | try await withTaskCancellationHandler(operation: {
26 | try await withUnsafeThrowingContinuation { continuation in
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/Sources/SkavokNetworking/DataLoader.swift:40:91: error: cannot find type 'URLSessionDownloadDelegate' in scope
38 | }
39 |
40 | func startDownloadTask(_ task: URLSessionDownloadTask, session: URLSession, delegate: URLSessionDownloadDelegate?) async throws -> Response<URL> {
| `- error: cannot find type 'URLSessionDownloadDelegate' in scope
41 | try await withTaskCancellationHandler(operation: {
42 | try await withUnsafeThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:40:36: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | }
39 |
40 | func startDownloadTask(_ task: URLSessionDownloadTask, session: URLSession, delegate: URLSessionDownloadDelegate?) async throws -> Response<URL> {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | try await withTaskCancellationHandler(operation: {
42 | try await withUnsafeThrowingContinuation { continuation in
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:40:69: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | }
39 |
40 | func startDownloadTask(_ task: URLSessionDownloadTask, session: URLSession, delegate: URLSessionDownloadDelegate?) async throws -> Response<URL> {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | try await withTaskCancellationHandler(operation: {
42 | try await withUnsafeThrowingContinuation { continuation in
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/Sources/SkavokNetworking/DataLoader.swift:56:87: error: cannot find type 'URLSessionTaskDelegate' in scope
54 | }
55 |
56 | func startUploadTask(_ task: URLSessionUploadTask, session: URLSession, delegate: URLSessionTaskDelegate?) async throws -> Response<Data> {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
57 | try await withTaskCancellationHandler(operation: {
58 | try await withUnsafeThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:56:34: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 | }
55 |
56 | func startUploadTask(_ task: URLSessionUploadTask, session: URLSession, delegate: URLSessionTaskDelegate?) async throws -> Response<Data> {
| `- error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | try await withTaskCancellationHandler(operation: {
58 | try await withUnsafeThrowingContinuation { continuation in
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' 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 URLSessionUploadTask = AnyObject
| `- note: 'URLSessionUploadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:56:65: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 | }
55 |
56 | func startUploadTask(_ task: URLSessionUploadTask, session: URLSession, delegate: URLSessionTaskDelegate?) async throws -> Response<Data> {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | try await withTaskCancellationHandler(operation: {
58 | try await withUnsafeThrowingContinuation { continuation in
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/Sources/SkavokNetworking/DataLoader.swift:74:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
72 | // MARK: - URLSessionDelegate
73 |
74 | func urlSession(_ session: URLSession, didBecomeInvalidWithError error: Error?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | userSessionDelegate?.urlSession?(session, didBecomeInvalidWithError: error)
76 | }
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/Sources/SkavokNetworking/DataLoader.swift:78:69: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | }
77 |
78 | func urlSessionDidFinishEvents(forBackgroundURLSession session: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | if #available(macOS 11.0, *) {
80 | userSessionDelegate?.urlSessionDidFinishEvents?(forBackgroundURLSession: 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/Sources/SkavokNetworking/DataLoader.swift:88:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
86 | // MARK: - URLSessionTaskDelegate
87 |
88 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | guard let handler = handlers[task] else { return assertionFailure() }
90 | handlers[task] = nil
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/Sources/SkavokNetworking/DataLoader.swift:88:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
86 | // MARK: - URLSessionTaskDelegate
87 |
88 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | guard let handler = handlers[task] else { return assertionFailure() }
90 | handlers[task] = nil
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/Sources/SkavokNetworking/DataLoader.swift:114:95: error: cannot find type 'URLSessionTaskMetrics' in scope
112 | }
113 |
114 | func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
115 | let handler = handlers[task]
116 | handler?.metrics = metrics
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:114:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 | }
113 |
114 | func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | let handler = handlers[task]
116 | handler?.metrics = metrics
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/Sources/SkavokNetworking/DataLoader.swift:114:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 | }
113 |
114 | func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | let handler = handlers[task]
116 | handler?.metrics = metrics
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/Sources/SkavokNetworking/DataLoader.swift:125:29: error: cannot find type 'URLRequest' in scope
123 | task: URLSessionTask,
124 | willPerformHTTPRedirection response: HTTPURLResponse,
125 | newRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
126 | completionHandler: @escaping @Sendable (URLRequest?) -> Void
127 | ) {
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:126:49: error: cannot find type 'URLRequest' in scope
124 | willPerformHTTPRedirection response: HTTPURLResponse,
125 | newRequest request: URLRequest,
126 | completionHandler: @escaping @Sendable (URLRequest?) -> Void
| `- error: cannot find type 'URLRequest' in scope
127 | ) {
128 | handlers[task]?.delegate?.urlSession?(
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:122:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
120 |
121 | func urlSession(
122 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
123 | task: URLSessionTask,
124 | willPerformHTTPRedirection response: HTTPURLResponse,
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/Sources/SkavokNetworking/DataLoader.swift:123:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 | func urlSession(
122 | _ session: URLSession,
123 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 | willPerformHTTPRedirection response: HTTPURLResponse,
125 | newRequest request: URLRequest,
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/Sources/SkavokNetworking/DataLoader.swift:124:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 | _ session: URLSession,
123 | task: URLSessionTask,
124 | willPerformHTTPRedirection response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | newRequest request: URLRequest,
126 | completionHandler: @escaping @Sendable (URLRequest?) -> Void
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/Sources/SkavokNetworking/DataLoader.swift:145:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 | }
144 |
145 | func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 | handlers[task]?.delegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
147 | userTaskDelegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
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/Sources/SkavokNetworking/DataLoader.swift:145:79: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 | }
144 |
145 | func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 | handlers[task]?.delegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
147 | userTaskDelegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
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/Sources/SkavokNetworking/DataLoader.swift:154:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
152 | task: URLSessionTask,
153 | didReceive challenge: URLAuthenticationChallenge,
154 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
155 | ) {
156 | handlers[task]?.delegate?.urlSession?(
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:151:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
149 |
150 | func urlSession(
151 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
152 | task: URLSessionTask,
153 | didReceive challenge: URLAuthenticationChallenge,
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/Sources/SkavokNetworking/DataLoader.swift:152:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
150 | func urlSession(
151 | _ session: URLSession,
152 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
153 | didReceive challenge: URLAuthenticationChallenge,
154 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
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/Sources/SkavokNetworking/DataLoader.swift:153:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
151 | _ session: URLSession,
152 | task: URLSessionTask,
153 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
155 | ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
| `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:171:99: error: cannot find type 'URLRequest' in scope
169 | }
170 |
171 | func urlSession(_ session: URLSession, task: URLSessionTask, willBeginDelayedRequest request: URLRequest, completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
172 | handlers[task]?.delegate?.urlSession?(
173 | session,
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:171:162: error: 'DelayedRequestDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
169 | }
170 |
171 | func urlSession(_ session: URLSession, task: URLSessionTask, willBeginDelayedRequest request: URLRequest, completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) {
| `- error: 'DelayedRequestDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
172 | handlers[task]?.delegate?.urlSession?(
173 | session,
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:171:189: error: cannot find type 'URLRequest' in scope
169 | }
170 |
171 | func urlSession(_ session: URLSession, task: URLSessionTask, willBeginDelayedRequest request: URLRequest, completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
172 | handlers[task]?.delegate?.urlSession?(
173 | session,
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:171:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
169 | }
170 |
171 | func urlSession(_ session: URLSession, task: URLSessionTask, willBeginDelayedRequest request: URLRequest, completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
172 | handlers[task]?.delegate?.urlSession?(
173 | 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/Sources/SkavokNetworking/DataLoader.swift:171:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
169 | }
170 |
171 | func urlSession(_ session: URLSession, task: URLSessionTask, willBeginDelayedRequest request: URLRequest, completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
172 | handlers[task]?.delegate?.urlSession?(
173 | session,
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/Sources/SkavokNetworking/DataLoader.swift:192:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
190 | dataTask: URLSessionDataTask,
191 | didReceive response: URLResponse,
192 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
193 | ) {
194 | (handlers[dataTask] as? DataTaskHandler)?.dataDelegate?.urlSession?(
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:189:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
187 | // MARK: - URLSessionDataDelegate
188 | func urlSession(
189 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 | dataTask: URLSessionDataTask,
191 | didReceive response: URLResponse,
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/Sources/SkavokNetworking/DataLoader.swift:190:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
188 | func urlSession(
189 | _ session: URLSession,
190 | dataTask: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
191 | didReceive response: URLResponse,
192 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:191:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 | _ session: URLSession,
190 | dataTask: URLSessionDataTask,
191 | didReceive response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
193 | ) {
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:209:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 | }
208 |
209 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
210 | guard let handler = handlers[dataTask] as? DataTaskHandler else { return }
211 |
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/Sources/SkavokNetworking/DataLoader.swift:209:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 | }
208 |
209 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
210 | guard let handler = handlers[dataTask] as? DataTaskHandler else { return }
211 |
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:223:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
221 |
222 | func urlSession(
223 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
224 | dataTask: URLSessionDataTask,
225 | willCacheResponse proposedResponse: CachedURLResponse,
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/Sources/SkavokNetworking/DataLoader.swift:224:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
222 | func urlSession(
223 | _ session: URLSession,
224 | dataTask: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
225 | willCacheResponse proposedResponse: CachedURLResponse,
226 | completionHandler: @escaping @Sendable (CachedURLResponse?) -> Void
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:225:45: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
223 | _ session: URLSession,
224 | dataTask: URLSessionDataTask,
225 | willCacheResponse proposedResponse: CachedURLResponse,
| `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 | completionHandler: @escaping @Sendable (CachedURLResponse?) -> Void
227 | ) {
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' 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 CachedURLResponse = AnyObject
| `- note: 'CachedURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:226:49: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
224 | dataTask: URLSessionDataTask,
225 | willCacheResponse proposedResponse: CachedURLResponse,
226 | completionHandler: @escaping @Sendable (CachedURLResponse?) -> Void
| `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
227 | ) {
228 | (handlers[dataTask] as? DataTaskHandler)?.dataDelegate?.urlSession?(
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' 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 CachedURLResponse = AnyObject
| `- note: 'CachedURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:244:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
242 |
243 | // MARK: - URLSessionDownloadDelegate
244 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
245 | let handler = (handlers[downloadTask] as? DownloadTaskHandler)
246 | let downloadsURL = DataLoader.downloadDirectoryURL
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/Sources/SkavokNetworking/DataLoader.swift:244:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
242 |
243 | // MARK: - URLSessionDownloadDelegate
244 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didFinishDownloadingTo location: URL) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
245 | let handler = (handlers[downloadTask] as? DownloadTaskHandler)
246 | let downloadsURL = DataLoader.downloadDirectoryURL
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:255:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
253 | }
254 |
255 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
256 | (handlers[downloadTask] as? DownloadTaskHandler)?.downloadDelegate?.urlSession?(session, downloadTask: downloadTask, didWriteData: bytesWritten, totalBytesWritten: totalBytesWritten, totalBytesExpectedToWrite: totalBytesExpectedToWrite)
257 | userDownloadDelegate?.urlSession?(session, downloadTask: downloadTask, didWriteData: bytesWritten, totalBytesWritten: totalBytesWritten, totalBytesExpectedToWrite: totalBytesExpectedToWrite)
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/Sources/SkavokNetworking/DataLoader.swift:255:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
253 | }
254 |
255 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
256 | (handlers[downloadTask] as? DownloadTaskHandler)?.downloadDelegate?.urlSession?(session, downloadTask: downloadTask, didWriteData: bytesWritten, totalBytesWritten: totalBytesWritten, totalBytesExpectedToWrite: totalBytesExpectedToWrite)
257 | userDownloadDelegate?.urlSession?(session, downloadTask: downloadTask, didWriteData: bytesWritten, totalBytesWritten: totalBytesWritten, totalBytesExpectedToWrite: totalBytesExpectedToWrite)
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:260:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
258 | }
259 |
260 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didResumeAtOffset fileOffset: Int64, expectedTotalBytes: Int64) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
261 | (handlers[downloadTask] as? DownloadTaskHandler)?.downloadDelegate?.urlSession?(session, downloadTask: downloadTask, didResumeAtOffset: fileOffset, expectedTotalBytes: expectedTotalBytes)
262 | userDownloadDelegate?.urlSession?(session, downloadTask: downloadTask, didResumeAtOffset: fileOffset, expectedTotalBytes: expectedTotalBytes)
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/Sources/SkavokNetworking/DataLoader.swift:260:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
258 | }
259 |
260 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didResumeAtOffset fileOffset: Int64, expectedTotalBytes: Int64) {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
261 | (handlers[downloadTask] as? DownloadTaskHandler)?.downloadDelegate?.urlSession?(session, downloadTask: downloadTask, didResumeAtOffset: fileOffset, expectedTotalBytes: expectedTotalBytes)
262 | userDownloadDelegate?.urlSession?(session, downloadTask: downloadTask, didResumeAtOffset: fileOffset, expectedTotalBytes: expectedTotalBytes)
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
| `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:268:19: error: cannot find type 'URLSessionTaskDelegate' in scope
266 | // MARK: - TaskHandlers
267 | private class TaskHandler {
268 | let delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
269 | var metrics: URLSessionTaskMetrics?
270 |
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:269:18: error: cannot find type 'URLSessionTaskMetrics' in scope
267 | private class TaskHandler {
268 | let delegate: URLSessionTaskDelegate?
269 | var metrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
270 |
271 | init(delegate: URLSessionTaskDelegate?) {
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:271:20: error: cannot find type 'URLSessionTaskDelegate' in scope
269 | var metrics: URLSessionTaskMetrics?
270 |
271 | init(delegate: URLSessionTaskDelegate?) {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
272 | self.delegate = delegate
273 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:279:23: error: cannot find type 'URLSessionDataDelegate' in scope
277 | typealias Completion = (Result<Response<Data>, Error>) -> Void
278 |
279 | let dataDelegate: URLSessionDataDelegate?
| `- error: cannot find type 'URLSessionDataDelegate' in scope
280 | var completion: Completion?
281 | var data: Data?
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:283:29: error: cannot find type 'URLSessionTaskDelegate' in scope
281 | var data: Data?
282 |
283 | override init(delegate: URLSessionTaskDelegate?) {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
284 | self.dataDelegate = delegate as? URLSessionDataDelegate
285 | super.init(delegate: delegate)
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:292:27: error: cannot find type 'URLSessionDownloadDelegate' in scope
290 | typealias Completion = (Result<Response<URL>, Error>) -> Void
291 |
292 | let downloadDelegate: URLSessionDownloadDelegate?
| `- error: cannot find type 'URLSessionDownloadDelegate' in scope
293 | var completion: Completion?
294 | var location: URL?
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:296:20: error: cannot find type 'URLSessionDownloadDelegate' in scope
294 | var location: URL?
295 |
296 | init(delegate: URLSessionDownloadDelegate?) {
| `- error: cannot find type 'URLSessionDownloadDelegate' in scope
297 | self.downloadDelegate = delegate
298 | super.init(delegate: delegate)
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:306:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
304 |
305 | struct DataLoaderError: Error {
306 | let task: URLSessionTask
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
307 | let error: Error
308 | }
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/Sources/SkavokNetworking/DataLoader.swift:306:9: error: stored property 'task' of 'Sendable'-conforming struct 'DataLoaderError' has non-sendable type 'URLSessionTask' (aka 'AnyObject')
304 |
305 | struct DataLoaderError: Error {
306 | let task: URLSessionTask
| `- error: stored property 'task' of 'Sendable'-conforming struct 'DataLoaderError' has non-sendable type 'URLSessionTask' (aka 'AnyObject')
307 | let error: Error
308 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:318:11: error: cannot find type 'OperationQueue' in scope
316 | }
317 |
318 | extension OperationQueue {
| `- error: cannot find type 'OperationQueue' in scope
319 | static func serial() -> OperationQueue {
320 | let queue = OperationQueue()
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:370:21: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
368 | private var handlers = [URLSessionTask: TaskHandler]()
369 |
370 | subscript(task: URLSessionTask) -> TaskHandler? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
371 | get {
372 | lock.lock()
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/Sources/SkavokNetworking/DataLoader.swift:36:18: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
34 | }
35 | }, onCancel: {
36 | task.cancel()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
37 | })
38 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:52:18: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'cancel'
50 | }
51 | }, onCancel: {
52 | task.cancel()
| `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'cancel'
53 | })
54 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:68:18: error: value of type 'URLSessionUploadTask' (aka 'AnyObject') has no member 'cancel'
66 | }
67 | }, onCancel: {
68 | task.cancel()
| `- error: value of type 'URLSessionUploadTask' (aka 'AnyObject') has no member 'cancel'
69 | })
70 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:95:36: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
93 | switch handler {
94 | case let handler as DataTaskHandler:
95 | if let response = task.response, error == nil {
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
96 | let data = handler.data ?? Data()
97 | let response = Response(value: data, data: data, response: response, task: task, metrics: handler.metrics)
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/Response.swift:24:93: error: cannot find type 'URLSessionTaskMetrics' in scope
22 |
23 | /// Initializes the response.
24 | public init(value: T, data: Data, response: URLResponse, task: URLSessionTask, metrics: URLSessionTaskMetrics? = nil) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
25 | self.value = value
26 | self.data = data
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:97:32: error: generic parameter 'T' could not be inferred
95 | if let response = task.response, error == nil {
96 | let data = handler.data ?? Data()
97 | let response = Response(value: data, data: data, response: response, task: task, metrics: handler.metrics)
| |- error: generic parameter 'T' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
98 | handler.completion?(.success(response))
99 | } else {
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/Response.swift:4:24: note: 'T' declared as parameter to type 'Response'
2 |
3 | /// A response with an associated value and metadata.
4 | public struct Response<T> {
| `- note: 'T' declared as parameter to type 'Response'
5 | /// Decoded response value.
6 | public let value: T
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:103:69: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
101 | }
102 | case let handler as DownloadTaskHandler:
103 | if let location = handler.location, let response = task.response, error == nil {
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
104 | let response = Response(value: location, data: Data(), response: response, task: task, metrics: handler.metrics)
105 | handler.completion?(.success(response))
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:104:32: error: generic parameter 'T' could not be inferred
102 | case let handler as DownloadTaskHandler:
103 | if let location = handler.location, let response = task.response, error == nil {
104 | let response = Response(value: location, data: Data(), response: response, task: task, metrics: handler.metrics)
| |- error: generic parameter 'T' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
105 | handler.completion?(.success(response))
106 | } else {
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/Response.swift:4:24: note: 'T' declared as parameter to type 'Response'
2 |
3 | /// A response with an associated value and metadata.
4 | public struct Response<T> {
| `- note: 'T' declared as parameter to type 'Response'
5 | /// Decoded response value.
6 | public let value: T
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:128:9: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
126 | completionHandler: @escaping @Sendable (URLRequest?) -> Void
127 | ) {
128 | handlers[task]?.delegate?.urlSession?(
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
129 | session,
130 | task: task,
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:156:9: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
154 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
155 | ) {
156 | handlers[task]?.delegate?.urlSession?(
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
157 | session,
158 | task: task,
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:172:9: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
170 |
171 | func urlSession(_ session: URLSession, task: URLSessionTask, willBeginDelayedRequest request: URLRequest, completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) {
172 | handlers[task]?.delegate?.urlSession?(
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
173 | session,
174 | task: task,
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:194:9: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
192 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
193 | ) {
194 | (handlers[dataTask] as? DataTaskHandler)?.dataDelegate?.urlSession?(
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
195 | session,
196 | dataTask: dataTask,
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:284:42: error: cannot find type 'URLSessionDataDelegate' in scope
282 |
283 | override init(delegate: URLSessionTaskDelegate?) {
284 | self.dataDelegate = delegate as? URLSessionDataDelegate
| `- error: cannot find type 'URLSessionDataDelegate' in scope
285 | super.init(delegate: delegate)
286 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:319:29: error: cannot find type 'OperationQueue' in scope
317 |
318 | extension OperationQueue {
319 | static func serial() -> OperationQueue {
| `- error: cannot find type 'OperationQueue' in scope
320 | let queue = OperationQueue()
321 | queue.maxConcurrentOperationCount = 1
[8/9] Compiling SkavokNetworking APIClientDelegate.swift
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientDelegate.swift:13:69: error: cannot find type 'URLRequest' in scope
11 | /// - client: The client that sends the request.
12 | /// - request: The request about to be sent. Can be modified
13 | func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
14 |
15 | /// Validates response for the given request.
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientDelegate.swift:26:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | /// ``APIError/unacceptableStatusCode(_:)`` if the code is outside of
25 | /// the `200..<300` range.
26 | func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |
28 | /// Gets called after a networking failure. Only one retry attempt is allowed.
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/Sources/SkavokNetworking/APIClientDelegate.swift:26:100: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | /// ``APIError/unacceptableStatusCode(_:)`` if the code is outside of
25 | /// the `200..<300` range.
26 | func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |
28 | /// Gets called after a networking failure. Only one retry attempt is allowed.
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/Sources/SkavokNetworking/APIClientDelegate.swift:41:56: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | ///
40 | /// - returns: Return `true` to retry the request.
41 | func client(_ client: APIClient, shouldRetry task: URLSessionTask, error: Error, attempts: Int) async throws -> Bool
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |
43 | /// Constructs URL for the given request.
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/Sources/SkavokNetworking/APIClientDelegate.swift:74:69: error: cannot find type 'URLRequest' in scope
72 |
73 | public extension APIClientDelegate {
74 | func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
75 | // Do nothing
76 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientDelegate.swift:78:56: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | }
77 |
78 | func client(_ client: APIClient, shouldRetry task: URLSessionTask, error: Error, attempts: Int) async throws -> Bool {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | false // Disabled by default
80 | }
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/Sources/SkavokNetworking/APIClientDelegate.swift:82:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 | }
81 |
82 | func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
83 | guard (200..<300).contains(response.statusCode) else {
84 | throw APIError.unacceptableStatusCode(response.statusCode)
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/Sources/SkavokNetworking/APIClientDelegate.swift:82:100: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 | }
81 |
82 | func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
83 | guard (200..<300).contains(response.statusCode) else {
84 | throw APIError.unacceptableStatusCode(response.statusCode)
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/Sources/SkavokNetworking/APIClientDelegate.swift:83:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
81 |
82 | func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
83 | guard (200..<300).contains(response.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
84 | throw APIError.unacceptableStatusCode(response.statusCode)
85 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientDelegate.swift:84:60: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
82 | func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
83 | guard (200..<300).contains(response.statusCode) else {
84 | throw APIError.unacceptableStatusCode(response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
85 | }
86 | }
[9/9] Compiling SkavokNetworking APIClient.swift
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:8:12: error: 'nonisolated' can not be applied to variable with non-'Sendable' type 'URLSession' (aka 'AnyObject')
6 | public nonisolated let configuration: Configuration
7 | /// The underlying `URLSession` instance.
8 | public nonisolated let session: URLSession
| `- error: 'nonisolated' can not be applied to variable with non-'Sendable' type 'URLSession' (aka 'AnyObject')
9 |
10 | private let decoder: JSONDecoder
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:8:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | public nonisolated let configuration: Configuration
7 | /// The underlying `URLSession` instance.
8 | public nonisolated let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | private let decoder: JSONDecoder
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/Sources/SkavokNetworking/APIClientDelegate.swift:13:69: error: cannot find type 'URLRequest' in scope
11 | /// - client: The client that sends the request.
12 | /// - request: The request about to be sent. Can be modified
13 | func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws
| `- error: cannot find type 'URLRequest' in scope
14 |
15 | /// Validates response for the given request.
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:24:42: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | public var delegate: APIClientDelegate?
23 | /// By default, `URLSessionConfiguration.default`.
24 | public var sessionConfiguration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | /// The (optional) URLSession delegate that allows you to monitor the underlying URLSession.
26 | public var sessionDelegate: URLSessionDelegate?
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:24:69: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
22 | public var delegate: APIClientDelegate?
23 | /// By default, `URLSessionConfiguration.default`.
24 | public var sessionConfiguration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
25 | /// The (optional) URLSession delegate that allows you to monitor the underlying URLSession.
26 | public var sessionDelegate: URLSessionDelegate?
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:26:37: error: cannot find type 'URLSessionDelegate' in scope
24 | public var sessionConfiguration: URLSessionConfiguration = .default
25 | /// The (optional) URLSession delegate that allows you to monitor the underlying URLSession.
26 | public var sessionDelegate: URLSessionDelegate?
| `- error: cannot find type 'URLSessionDelegate' in scope
27 | /// Overrides the default delegate queue.
28 | public var sessionDelegateQueue: OperationQueue?
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:28:42: error: cannot find type 'OperationQueue' in scope
26 | public var sessionDelegate: URLSessionDelegate?
27 | /// Overrides the default delegate queue.
28 | public var sessionDelegateQueue: OperationQueue?
| `- error: cannot find type 'OperationQueue' in scope
29 | /// By default, uses `.iso8601` date decoding strategy.
30 | public var decoder: JSONDecoder
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:37:35: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | public init(
36 | baseURL: URL?,
37 | sessionConfiguration: URLSessionConfiguration = .default,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | delegate: APIClientDelegate? = nil
39 | ) {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:37:62: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
35 | public init(
36 | baseURL: URL?,
37 | sessionConfiguration: URLSessionConfiguration = .default,
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
38 | delegate: APIClientDelegate? = nil
39 | ) {
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:84:19: error: cannot find type 'URLSessionDataDelegate' in scope
82 | @discardableResult public func send<T: Decodable & Sendable>(
83 | _ request: Request<T>,
84 | delegate: URLSessionDataDelegate? = nil,
| `- error: cannot find type 'URLSessionDataDelegate' in scope
85 | configure: sending ((inout URLRequest) throws -> Void)? = nil
86 | ) async throws -> Response<T> {
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:85:36: error: cannot find type 'URLRequest' in scope
83 | _ request: Request<T>,
84 | delegate: URLSessionDataDelegate? = nil,
85 | configure: sending ((inout URLRequest) throws -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
86 | ) async throws -> Response<T> {
87 | let response = try await data(for: request, delegate: delegate, configure: configure)
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:103:19: error: cannot find type 'URLSessionDataDelegate' in scope
101 | @discardableResult public func send(
102 | _ request: Request<Void>,
103 | delegate: URLSessionDataDelegate? = nil,
| `- error: cannot find type 'URLSessionDataDelegate' in scope
104 | configure: sending ((inout URLRequest) throws -> Void)? = nil
105 | ) async throws -> Response<Void> {
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:104:36: error: cannot find type 'URLRequest' in scope
102 | _ request: Request<Void>,
103 | delegate: URLSessionDataDelegate? = nil,
104 | configure: sending ((inout URLRequest) throws -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
105 | ) async throws -> Response<Void> {
106 | try await data(for: request, delegate: delegate, configure: configure).map { _ in () }
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:120:19: error: cannot find type 'URLSessionDataDelegate' in scope
118 | public func data<T>(
119 | for request: Request<T>,
120 | delegate: URLSessionDataDelegate? = nil,
| `- error: cannot find type 'URLSessionDataDelegate' in scope
121 | configure: sending ((inout URLRequest) throws -> Void)? = nil
122 | ) async throws -> Response<Data> {
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:121:36: error: cannot find type 'URLRequest' in scope
119 | for request: Request<T>,
120 | delegate: URLSessionDataDelegate? = nil,
121 | configure: sending ((inout URLRequest) throws -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
122 | ) async throws -> Response<Data> {
123 | let request = try await makeURLRequest(for: request, configure)
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:152:19: error: cannot find type 'URLSessionTaskDelegate' in scope
150 | for request: Request<T>,
151 | fromFile fileURL: URL,
152 | delegate: URLSessionTaskDelegate? = nil,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
153 | configure: sending ((inout URLRequest) throws -> Void)? = nil
154 | ) async throws -> Response<T> {
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:153:36: error: cannot find type 'URLRequest' in scope
151 | fromFile fileURL: URL,
152 | delegate: URLSessionTaskDelegate? = nil,
153 | configure: sending ((inout URLRequest) throws -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
154 | ) async throws -> Response<T> {
155 | let response = try await _upload(for: request, fromFile: fileURL, delegate: delegate, configure: configure)
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:173:19: error: cannot find type 'URLSessionTaskDelegate' in scope
171 | for request: Request<Void>,
172 | fromFile fileURL: URL,
173 | delegate: URLSessionTaskDelegate? = nil,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
174 | configure: sending ((inout URLRequest) throws -> Void)? = nil
175 | ) async throws -> Response<Void> {
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:174:36: error: cannot find type 'URLRequest' in scope
172 | fromFile fileURL: URL,
173 | delegate: URLSessionTaskDelegate? = nil,
174 | configure: sending ((inout URLRequest) throws -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
175 | ) async throws -> Response<Void> {
176 | try await _upload(for: request, fromFile: fileURL, delegate: delegate, configure: configure).map { _ in () }
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:182:19: error: cannot find type 'URLSessionTaskDelegate' in scope
180 | for request: Request<T>,
181 | fromFile fileURL: URL,
182 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
183 | configure: ((inout URLRequest) throws -> Void)?
184 | ) async throws -> Response<Data> {
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:183:28: error: cannot find type 'URLRequest' in scope
181 | fromFile fileURL: URL,
182 | delegate: URLSessionTaskDelegate?,
183 | configure: ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
184 | ) async throws -> Response<Data> {
185 | let request = try await makeURLRequest(for: request, configure)
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:214:19: error: cannot find type 'URLSessionTaskDelegate' in scope
212 | for request: Request<T>,
213 | from data: Data,
214 | delegate: URLSessionTaskDelegate? = nil,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
215 | configure: sending ((inout URLRequest) throws -> Void)? = nil
216 | ) async throws -> Response<T> {
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:215:36: error: cannot find type 'URLRequest' in scope
213 | from data: Data,
214 | delegate: URLSessionTaskDelegate? = nil,
215 | configure: sending ((inout URLRequest) throws -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
216 | ) async throws -> Response<T> {
217 | let response = try await _upload(for: request, from: data, delegate: delegate, configure: configure)
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:235:19: error: cannot find type 'URLSessionTaskDelegate' in scope
233 | for request: Request<Void>,
234 | from data: Data,
235 | delegate: URLSessionTaskDelegate? = nil,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
236 | configure: sending ((inout URLRequest) throws -> Void)? = nil
237 | ) async throws -> Response<Void> {
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:236:36: error: cannot find type 'URLRequest' in scope
234 | from data: Data,
235 | delegate: URLSessionTaskDelegate? = nil,
236 | configure: sending ((inout URLRequest) throws -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
237 | ) async throws -> Response<Void> {
238 | try await _upload(for: request, from: data, delegate: delegate, configure: configure).map { _ in () }
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:244:19: error: cannot find type 'URLSessionTaskDelegate' in scope
242 | for request: Request<T>,
243 | from data: Data,
244 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
245 | configure: sending ((inout URLRequest) throws -> Void)?
246 | ) async throws -> Response<Data> {
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:245:36: error: cannot find type 'URLRequest' in scope
243 | from data: Data,
244 | delegate: URLSessionTaskDelegate?,
245 | configure: sending ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
246 | ) async throws -> Response<Data> {
247 | let request = try await makeURLRequest(for: request, configure)
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:264:76: error: cannot find type 'URLRequest' in scope
262 | // MARK: Making Requests
263 | /// Creates `URLRequest` for the given request.
264 | public func makeURLRequest<T>(for request: Request<T>) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
265 | try await makeURLRequest(for: request, { _ in })
266 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:275:30: error: cannot find type 'URLRequest' in scope
273 | private func makeURLRequest<T>(
274 | for request: Request<T>,
275 | _ configure: ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
276 | ) async throws -> URLRequest {
277 | let url = try makeURL(for: request)
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:276:23: error: cannot find type 'URLRequest' in scope
274 | for request: Request<T>,
275 | _ configure: ((inout URLRequest) throws -> Void)?
276 | ) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
277 | let url = try makeURL(for: request)
278 | var urlRequest = URLRequest(url: url)
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:6:19: error: cannot find type 'URLSessionDataDelegate' in scope
4 | func send<T: Decodable & Sendable>(
5 | _ request: Request<T>,
6 | delegate: URLSessionDataDelegate?,
| `- error: cannot find type 'URLSessionDataDelegate' in scope
7 | configure: sending ((inout URLRequest) throws -> Void)?
8 | ) async throws -> Response<T>
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:7:36: error: cannot find type 'URLRequest' in scope
5 | _ request: Request<T>,
6 | delegate: URLSessionDataDelegate?,
7 | configure: sending ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
8 | ) async throws -> Response<T>
9 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:12:19: error: cannot find type 'URLSessionDataDelegate' in scope
10 | func send(
11 | _ request: Request<Void>,
12 | delegate: URLSessionDataDelegate?,
| `- error: cannot find type 'URLSessionDataDelegate' in scope
13 | configure: sending ((inout URLRequest) throws -> Void)?
14 | ) async throws -> Response<Void>
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:13:36: error: cannot find type 'URLRequest' in scope
11 | _ request: Request<Void>,
12 | delegate: URLSessionDataDelegate?,
13 | configure: sending ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
14 | ) async throws -> Response<Void>
15 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:18:19: error: cannot find type 'URLSessionDataDelegate' in scope
16 | func data<T>(
17 | for request: Request<T>,
18 | delegate: URLSessionDataDelegate?,
| `- error: cannot find type 'URLSessionDataDelegate' in scope
19 | configure: sending ((inout URLRequest) throws -> Void)?
20 | ) async throws -> Response<Data>
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:19:36: error: cannot find type 'URLRequest' in scope
17 | for request: Request<T>,
18 | delegate: URLSessionDataDelegate?,
19 | configure: sending ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
20 | ) async throws -> Response<Data>
21 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:36:19: error: cannot find type 'URLSessionTaskDelegate' in scope
34 | for request: Request<T>,
35 | fromFile fileURL: URL,
36 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
37 | configure: sending ((inout URLRequest) throws -> Void)?
38 | ) async throws -> Response<T>
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:37:36: error: cannot find type 'URLRequest' in scope
35 | fromFile fileURL: URL,
36 | delegate: URLSessionTaskDelegate?,
37 | configure: sending ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
38 | ) async throws -> Response<T>
39 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:52:19: error: cannot find type 'URLSessionTaskDelegate' in scope
50 | for request: Request<Void>,
51 | fromFile fileURL: URL,
52 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
53 | configure: sending ((inout URLRequest) throws -> Void)?
54 | ) async throws -> Response<Void>
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:53:36: error: cannot find type 'URLRequest' in scope
51 | fromFile fileURL: URL,
52 | delegate: URLSessionTaskDelegate?,
53 | configure: sending ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
54 | ) async throws -> Response<Void>
55 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:70:19: error: cannot find type 'URLSessionTaskDelegate' in scope
68 | for request: Request<T>,
69 | from data: Data,
70 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
71 | configure: sending ((inout URLRequest) throws -> Void)?
72 | ) async throws -> Response<T>
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:71:36: error: cannot find type 'URLRequest' in scope
69 | from data: Data,
70 | delegate: URLSessionTaskDelegate?,
71 | configure: sending ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
72 | ) async throws -> Response<T>
73 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:86:19: error: cannot find type 'URLSessionTaskDelegate' in scope
84 | for request: Request<Void>,
85 | from data: Data,
86 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
87 | configure: sending ((inout URLRequest) throws -> Void)?
88 | ) async throws -> Response<Void>
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:87:36: error: cannot find type 'URLRequest' in scope
85 | from data: Data,
86 | delegate: URLSessionTaskDelegate?,
87 | configure: sending ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
88 | ) async throws -> Response<Void>
89 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:92:69: error: cannot find type 'URLRequest' in scope
90 | // MARK: Making Requests
91 | /// Creates `URLRequest` for the given request.
92 | func makeURLRequest<T>(for request: Request<T>) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
93 |
94 | /// Clears URL Cache.
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:65:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
63 | self.configuration = configuration
64 | let delegateQueue = configuration.sessionDelegateQueue ?? .serial()
65 | self.session = URLSession(configuration: configuration.sessionConfiguration, delegate: dataLoader, delegateQueue: delegateQueue)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
66 | self.dataLoader.userSessionDelegate = configuration.sessionDelegate
67 | self.delegate = configuration.delegate ?? DefaultAPIClientDelegate()
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:7:30: error: cannot find type 'URLSessionDelegate' in scope
5 | private let handlers = TaskHandlersDictionary()
6 |
7 | var userSessionDelegate: URLSessionDelegate? {
| `- error: cannot find type 'URLSessionDelegate' in scope
8 | didSet {
9 | userTaskDelegate = userSessionDelegate as? URLSessionTaskDelegate
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientDelegate.swift:74:69: error: cannot find type 'URLRequest' in scope
72 |
73 | public extension APIClientDelegate {
74 | func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
75 | // Do nothing
76 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:270:18: error: type 'URLCache' (aka 'AnyObject') has no member 'shared'
268 | /// Clears URL Cache.
269 | public func clearCache() {
270 | URLCache.shared.removeAllCachedResponses()
| `- error: type 'URLCache' (aka 'AnyObject') has no member 'shared'
271 | }
272 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:278:26: error: cannot find 'URLRequest' in scope
276 | ) async throws -> URLRequest {
277 | let url = try makeURL(for: request)
278 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
279 | urlRequest.allHTTPHeaderFields = request.headers
280 | urlRequest.httpMethod = request.method.rawValue
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/Request.swift:20:29: error: cannot find type 'NSURLRequest' in scope
18 | public var id: String?
19 | /// The constants used to specify interaction with the cached responses.
20 | public var cachePolicy: NSURLRequest.CachePolicy = .useProtocolCachePolicy
| `- error: cannot find type 'NSURLRequest' in scope
21 |
22 | /// Initializes the request with the given parameters.
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:286:25: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
284 | urlRequest.httpBody = try await encode(body, using: encoder)
285 | if urlRequest.value(forHTTPHeaderField: "Content-Type") == nil &&
286 | session.configuration.httpAdditionalHeaders?["Content-Type"] == nil {
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
287 | urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
288 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:291:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
289 | }
290 | if urlRequest.value(forHTTPHeaderField: "Accept") == nil &&
291 | session.configuration.httpAdditionalHeaders?["Accept"] == nil {
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
292 | urlRequest.setValue("application/json", forHTTPHeaderField: "Accept")
293 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:341:52: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
339 |
340 | private func validate<T>(_ response: Response<T>) throws {
341 | guard let httpResponse = response.response as? HTTPURLResponse else { return }
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
342 | try delegate.client(self, validateResponse: httpResponse, data: response.data, task: response.task)
343 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:341:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
339 |
340 | private func validate<T>(_ response: Response<T>) throws {
341 | guard let httpResponse = response.response as? HTTPURLResponse else { return }
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
342 | try delegate.client(self, validateResponse: httpResponse, data: response.data, task: response.task)
343 | }
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
BUILD FAILURE 6.1 wasm