Build Information
Failed to build SkavokNetworking, reference main (df65f7), with Swift 6.2 for Wasm on 3 Sep 2026 15:12:47 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
179 | task: URLSessionTask,
180 | didSendBodyData bytesSent: Int64,
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:179:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
177 | func urlSession(
178 | _ session: URLSession,
179 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
180 | didSendBodyData bytesSent: Int64,
181 | totalBytesSent: Int64,
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:201:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 |
200 | func urlSession(
201 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
202 | task: URLSessionTask,
203 | needNewBodyStream completionHandler: @escaping @Sendable (InputStream?) -> Void
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:202:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 | func urlSession(
201 | _ session: URLSession,
202 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
203 | needNewBodyStream completionHandler: @escaping @Sendable (InputStream?) -> Void
204 | ) {
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:222:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
220 | task: URLSessionTask,
221 | didReceive challenge: URLAuthenticationChallenge,
222 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
223 | ) {
224 | handlers[task]?.delegate?.urlSession?(
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:219:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
217 |
218 | func urlSession(
219 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
220 | task: URLSessionTask,
221 | 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:220:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
218 | func urlSession(
219 | _ session: URLSession,
220 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
221 | didReceive challenge: URLAuthenticationChallenge,
222 | 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:221:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
219 | _ session: URLSession,
220 | task: URLSessionTask,
221 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
222 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
223 | ) {
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:239:99: error: cannot find type 'URLRequest' in scope
237 | }
238 |
239 | func urlSession(_ session: URLSession, task: URLSessionTask, willBeginDelayedRequest request: URLRequest, completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
240 | handlers[task]?.delegate?.urlSession?(
241 | session,
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:239:162: error: 'DelayedRequestDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
237 | }
238 |
239 | 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')
240 | handlers[task]?.delegate?.urlSession?(
241 | session,
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:239:189: error: cannot find type 'URLRequest' in scope
237 | }
238 |
239 | func urlSession(_ session: URLSession, task: URLSessionTask, willBeginDelayedRequest request: URLRequest, completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
240 | handlers[task]?.delegate?.urlSession?(
241 | session,
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:239:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
237 | }
238 |
239 | 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.
240 | handlers[task]?.delegate?.urlSession?(
241 | 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:239:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
237 | }
238 |
239 | 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.
240 | handlers[task]?.delegate?.urlSession?(
241 | 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:260:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
258 | dataTask: URLSessionDataTask,
259 | didReceive response: URLResponse,
260 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
261 | ) {
262 | completionHandler(.allow)
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:257:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
255 | // MARK: - URLSessionDataDelegate
256 | func urlSession(
257 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
258 | dataTask: URLSessionDataTask,
259 | 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:258:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
256 | func urlSession(
257 | _ session: URLSession,
258 | dataTask: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
259 | didReceive response: URLResponse,
260 | 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:259:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
257 | _ session: URLSession,
258 | dataTask: URLSessionDataTask,
259 | didReceive response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
260 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
261 | ) {
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:265:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
263 | }
264 |
265 | 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.
266 | guard let handler = handlers[dataTask] as? DataTaskHandler else { return }
267 |
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:265:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
263 | }
264 |
265 | 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.
266 | guard let handler = handlers[dataTask] as? DataTaskHandler else { return }
267 |
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:276:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
274 |
275 | func urlSession(
276 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
277 | dataTask: URLSessionDataTask,
278 | 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:277:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 | func urlSession(
276 | _ session: URLSession,
277 | dataTask: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
278 | willCacheResponse proposedResponse: CachedURLResponse,
279 | 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:278:45: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
276 | _ session: URLSession,
277 | dataTask: URLSessionDataTask,
278 | willCacheResponse proposedResponse: CachedURLResponse,
| `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
279 | completionHandler: @escaping @Sendable (CachedURLResponse?) -> Void
280 | ) {
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:279:49: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
277 | dataTask: URLSessionDataTask,
278 | willCacheResponse proposedResponse: CachedURLResponse,
279 | completionHandler: @escaping @Sendable (CachedURLResponse?) -> Void
| `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
280 | ) {
281 | completionHandler(proposedResponse)
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:285:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
283 |
284 | // MARK: - URLSessionDownloadDelegate
285 | 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.
286 | guard let handler = handlers[downloadTask] as? DownloadTaskHandler else { return }
287 | 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:285:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
283 |
284 | // MARK: - URLSessionDownloadDelegate
285 | 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.
286 | guard let handler = handlers[downloadTask] as? DownloadTaskHandler else { return }
287 | 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:307:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
305 | }
306 |
307 | 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.
308 |
309 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didResumeAtOffset fileOffset: Int64, expectedTotalBytes: Int64) {}
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:307:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
305 | }
306 |
307 | 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.
308 |
309 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didResumeAtOffset fileOffset: Int64, expectedTotalBytes: Int64) {}
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:309:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
307 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {}
308 |
309 | 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.
310 | }
311 |
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:309:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
307 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {}
308 |
309 | 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.
310 | }
311 |
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:314:19: error: cannot find type 'URLSessionTaskDelegate' in scope
312 | // MARK: - TaskHandlers
313 | private class TaskHandler {
314 | let delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
315 | var metrics: URLSessionTaskMetrics?
316 |
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:315:18: error: cannot find type 'URLSessionTaskMetrics' in scope
313 | private class TaskHandler {
314 | let delegate: URLSessionTaskDelegate?
315 | var metrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
316 |
317 | init(delegate: URLSessionTaskDelegate?) {
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:317:20: error: cannot find type 'URLSessionTaskDelegate' in scope
315 | var metrics: URLSessionTaskMetrics?
316 |
317 | init(delegate: URLSessionTaskDelegate?) {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
318 | self.delegate = delegate
319 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:335:29: error: cannot find type 'URLSessionTaskDelegate' in scope
333 | var fileResult: Result<URL, Error>?
334 |
335 | override init(delegate: URLSessionTaskDelegate?) {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
336 | super.init(delegate: delegate)
337 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:344:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
342 |
343 | struct DataLoaderError: Error {
344 | let task: URLSessionTask
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
345 | let error: Error
346 | }
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:344:9: warning: stored property 'task' of 'Sendable'-conforming struct 'DataLoaderError' has non-Sendable type 'URLSessionTask' (aka 'AnyObject')
342 |
343 | struct DataLoaderError: Error {
344 | let task: URLSessionTask
| `- warning: stored property 'task' of 'Sendable'-conforming struct 'DataLoaderError' has non-Sendable type 'URLSessionTask' (aka 'AnyObject')
345 | let error: Error
346 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:389:21: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
387 | private var handlers = [URLSessionTask: TaskHandler]()
388 |
389 | subscript(task: URLSessionTask) -> TaskHandler? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
390 | get {
391 | 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/APIError.swift:77:25: error: cannot find type 'URLRequest' in scope
75 | public struct TransportError: Error, LocalizedError, Sendable {
76 | public let requestID: String?
77 | public let request: URLRequest?
| `- error: cannot find type 'URLRequest' in scope
78 | public let underlyingError: any Error
79 |
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/APIError.swift:80:46: error: cannot find type 'URLRequest' in scope
78 | public let underlyingError: any Error
79 |
80 | public init(requestID: String?, request: URLRequest?, underlyingError: any Error) {
| `- error: cannot find type 'URLRequest' in scope
81 | self.requestID = requestID
82 | self.request = request
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/APIError.swift:120:20: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | }
119 |
120 | init(response: HTTPURLResponse, data: Data, requestID: String?) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 | self.init(
122 | statusCode: 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/Models/Request.swift:37:29: error: cannot find type 'NSURLRequest' in scope
35 | public var id: String?
36 | /// The constants used to specify interaction with the cached responses.
37 | public var cachePolicy: NSURLRequest.CachePolicy = .useProtocolCachePolicy
| `- error: cannot find type 'NSURLRequest' in scope
38 |
39 | /// Initializes the request with the given parameters.
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/Request.swift:47:22: error: cannot find type 'NSURLRequest' in scope
45 | headers: [String: String]? = nil,
46 | id: String? = nil,
47 | cachePolicy: NSURLRequest.CachePolicy = .useProtocolCachePolicy
| `- error: cannot find type 'NSURLRequest' in scope
48 | ) {
49 | self.method = method
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/Request.swift:66:22: error: cannot find type 'NSURLRequest' in scope
64 | headers: [String: String]? = nil,
65 | id: String? = nil,
66 | cachePolicy: NSURLRequest.CachePolicy = .useProtocolCachePolicy
| `- error: cannot find type 'NSURLRequest' in scope
67 | ) {
68 | 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:15:33: error: cannot find type 'URLRequest' in scope
13 | public let data: Data
14 | /// Original request.
15 | public var originalRequest: URLRequest? { task.originalRequest }
| `- error: cannot find type 'URLRequest' in scope
16 | /// The URL request object currently being handled by the task. May be
17 | /// different from the original request.
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/Response.swift:18:32: error: cannot find type 'URLRequest' in scope
16 | /// The URL request object currently being handled by the task. May be
17 | /// different from the original request.
18 | public var currentRequest: URLRequest? { task.currentRequest }
| `- error: cannot find type 'URLRequest' in scope
19 | /// Completed task.
20 | public let task: URLSessionTask
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/Response.swift:20:22: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | public var currentRequest: URLRequest? { task.currentRequest }
19 | /// Completed task.
20 | public let task: URLSessionTask
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | /// Task metrics collected for the request.
22 | 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:22:25: error: cannot find type 'URLSessionTaskMetrics' in scope
20 | public let task: URLSessionTask
21 | /// Task metrics collected for the request.
22 | public let metrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
23 |
24 | /// Initializes the response.
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/Response.swift:25:93: error: cannot find type 'URLSessionTaskMetrics' in scope
23 |
24 | /// Initializes the response.
25 | public init(value: T, data: Data, response: URLResponse, task: URLSessionTask, metrics: URLSessionTaskMetrics? = nil) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
26 | self.value = value
27 | self.data = data
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/Response.swift:25:49: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |
24 | /// Initializes the response.
25 | 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.
26 | self.value = value
27 | 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:25:68: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |
24 | /// Initializes the response.
25 | 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.
26 | self.value = value
27 | 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
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/Response.swift:8:16: error: stored property 'response' of 'Sendable'-conforming generic struct 'Response' has non-Sendable type 'URLResponse' (aka 'AnyObject')
6 | public let value: T
7 | /// Original response.
8 | public let response: URLResponse
| `- error: stored property 'response' of 'Sendable'-conforming generic struct 'Response' has non-Sendable type 'URLResponse' (aka 'AnyObject')
9 | /// Response HTTP status code.
10 | public var statusCode: Int? { (response as? HTTPURLResponse)?.statusCode }
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/Response.swift:20:16: error: stored property 'task' of 'Sendable'-conforming generic struct 'Response' has non-Sendable type 'URLSessionTask' (aka 'AnyObject')
18 | public var currentRequest: URLRequest? { task.currentRequest }
19 | /// Completed task.
20 | public let task: URLSessionTask
| `- error: stored property 'task' of 'Sendable'-conforming generic struct 'Response' has non-Sendable type 'URLSessionTask' (aka 'AnyObject')
21 | /// Task metrics collected for the request.
22 | public let metrics: URLSessionTaskMetrics?
[4/10] Compiling SkavokNetworking APIClient.swift
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:8:26: 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 |
8 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | private let decoderFactory: @Sendable () -> JSONDecoder
10 | private let encoderFactory: @Sendable () -> JSONEncoder
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:26:42: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | /// Background configurations are rejected when executing a request because
25 | /// this client supports foreground, one-shot transfers only.
26 | public var sessionConfiguration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | /// The optional URLSession delegate used for session and task callbacks,
28 | /// including authentication, redirection, upload progress, and metrics.
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:26:69: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
24 | /// Background configurations are rejected when executing a request because
25 | /// this client supports foreground, one-shot transfers only.
26 | public var sessionConfiguration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
27 | /// The optional URLSession delegate used for session and task callbacks,
28 | /// including authentication, redirection, upload progress, and metrics.
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:26:69: error: value of type '_' expected to be instance of class or class-constrained type
24 | /// Background configurations are rejected when executing a request because
25 | /// this client supports foreground, one-shot transfers only.
26 | public var sessionConfiguration: URLSessionConfiguration = .default
| `- error: value of type '_' expected to be instance of class or class-constrained type
27 | /// The optional URLSession delegate used for session and task callbacks,
28 | /// including authentication, redirection, upload progress, and metrics.
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:30:37: error: cannot find type 'URLSessionDelegate' in scope
28 | /// including authentication, redirection, upload progress, and metrics.
29 | /// Data- and download-specific callbacks remain managed by the client.
30 | public var sessionDelegate: URLSessionDelegate?
| `- error: cannot find type 'URLSessionDelegate' in scope
31 | /// An optional underlying queue used for URLSession delegate callbacks.
32 | /// The client wraps it in an internally owned serial operation queue to
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:34:52: error: cannot find type 'DispatchQueue' in scope
32 | /// The client wraps it in an internally owned serial operation queue to
33 | /// preserve callback ordering.
34 | public var sessionDelegateUnderlyingQueue: DispatchQueue?
| `- error: cannot find type 'DispatchQueue' in scope
35 | /// Maximum number of retries after the initial request. By default, one retry is allowed.
36 | /// Values below zero are treated as zero.
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:49:35: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | public init(
48 | baseURL: URL?,
49 | sessionConfiguration: URLSessionConfiguration = .default,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | delegate: APIClientDelegate? = nil
51 | ) {
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:49:62: error: value of type '_' expected to be instance of class or class-constrained type
47 | public init(
48 | baseURL: URL?,
49 | sessionConfiguration: URLSessionConfiguration = .default,
| `- error: value of type '_' expected to be instance of class or class-constrained type
50 | delegate: APIClientDelegate? = nil
51 | ) {
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:49:62: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
47 | public init(
48 | baseURL: URL?,
49 | sessionConfiguration: URLSessionConfiguration = .default,
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
50 | delegate: APIClientDelegate? = nil
51 | ) {
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:26:20: error: stored property 'sessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
24 | /// Background configurations are rejected when executing a request because
25 | /// this client supports foreground, one-shot transfers only.
26 | public var sessionConfiguration: URLSessionConfiguration = .default
| `- error: stored property 'sessionConfiguration' of 'Sendable'-conforming struct 'Configuration' has non-Sendable type 'URLSessionConfiguration' (aka 'AnyObject')
27 | /// The optional URLSession delegate used for session and task callbacks,
28 | /// including authentication, redirection, upload progress, and metrics.
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:118:19: error: cannot find type 'URLSessionTaskDelegate' in scope
116 | @discardableResult public func send<T: Decodable & Sendable>(
117 | _ request: Request<T>,
118 | delegate: URLSessionTaskDelegate? = nil,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
119 | configure: sending ((inout URLRequest) throws -> Void)? = nil
120 | ) async throws -> Response<T> {
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:119:36: error: cannot find type 'URLRequest' in scope
117 | _ request: Request<T>,
118 | delegate: URLSessionTaskDelegate? = nil,
119 | configure: sending ((inout URLRequest) throws -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
120 | ) async throws -> Response<T> {
121 | let response = try await data(for: request, delegate: delegate, configure: configure)
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:135:19: error: cannot find type 'URLSessionTaskDelegate' in scope
133 | @discardableResult public func send(
134 | _ request: Request<Void>,
135 | delegate: URLSessionTaskDelegate? = nil,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
136 | configure: sending ((inout URLRequest) throws -> Void)? = nil
137 | ) async throws -> Response<Void> {
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:136:36: error: cannot find type 'URLRequest' in scope
134 | _ request: Request<Void>,
135 | delegate: URLSessionTaskDelegate? = nil,
136 | configure: sending ((inout URLRequest) throws -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
137 | ) async throws -> Response<Void> {
138 | try await data(for: request, delegate: delegate, configure: configure).map { _ in () }
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:152:19: error: cannot find type 'URLSessionTaskDelegate' in scope
150 | public func data<T>(
151 | for request: Request<T>,
152 | delegate: URLSessionTaskDelegate? = nil,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
153 | configure: sending ((inout URLRequest) throws -> Void)? = nil
154 | ) async throws -> Response<Data> {
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:153:36: error: cannot find type 'URLRequest' in scope
151 | for request: Request<T>,
152 | delegate: URLSessionTaskDelegate? = nil,
153 | configure: sending ((inout URLRequest) throws -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
154 | ) async throws -> Response<Data> {
155 | let urlRequest = try await makeURLRequest(for: request, configure)
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:187:19: error: cannot find type 'URLSessionTaskDelegate' in scope
185 | for request: Request<Void>,
186 | destination: URL? = nil,
187 | delegate: URLSessionTaskDelegate? = nil,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
188 | configure: sending ((inout URLRequest) throws -> Void)? = nil
189 | ) async throws -> Response<URL> {
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:188:36: error: cannot find type 'URLRequest' in scope
186 | destination: URL? = nil,
187 | delegate: URLSessionTaskDelegate? = nil,
188 | configure: sending ((inout URLRequest) throws -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
189 | ) async throws -> Response<URL> {
190 | try validateDownloadDestination(destination)
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:237:19: error: cannot find type 'URLSessionTaskDelegate' in scope
235 | for request: Request<T>,
236 | fromFile fileURL: URL,
237 | delegate: URLSessionTaskDelegate? = nil,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
238 | configure: sending ((inout URLRequest) throws -> Void)? = nil
239 | ) async throws -> Response<T> {
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:238:36: error: cannot find type 'URLRequest' in scope
236 | fromFile fileURL: URL,
237 | delegate: URLSessionTaskDelegate? = nil,
238 | configure: sending ((inout URLRequest) throws -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
239 | ) async throws -> Response<T> {
240 | let response = try await _upload(for: request, fromFile: fileURL, delegate: delegate, configure: configure)
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:256:19: error: cannot find type 'URLSessionTaskDelegate' in scope
254 | for request: Request<Void>,
255 | fromFile fileURL: URL,
256 | delegate: URLSessionTaskDelegate? = nil,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
257 | configure: sending ((inout URLRequest) throws -> Void)? = nil
258 | ) async throws -> Response<Void> {
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:257:36: error: cannot find type 'URLRequest' in scope
255 | fromFile fileURL: URL,
256 | delegate: URLSessionTaskDelegate? = nil,
257 | configure: sending ((inout URLRequest) throws -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
258 | ) async throws -> Response<Void> {
259 | try await _upload(for: request, fromFile: fileURL, delegate: delegate, configure: configure).map { _ in () }
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:265:19: error: cannot find type 'URLSessionTaskDelegate' in scope
263 | for request: Request<T>,
264 | fromFile fileURL: URL,
265 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
266 | configure: ((inout URLRequest) throws -> Void)?
267 | ) async throws -> Response<Data> {
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:266:28: error: cannot find type 'URLRequest' in scope
264 | fromFile fileURL: URL,
265 | delegate: URLSessionTaskDelegate?,
266 | configure: ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
267 | ) async throws -> Response<Data> {
268 | let urlRequest = try await makeURLRequest(for: request, configure)
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:298:19: error: cannot find type 'URLSessionTaskDelegate' in scope
296 | for request: Request<T>,
297 | from data: Data,
298 | delegate: URLSessionTaskDelegate? = nil,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
299 | configure: sending ((inout URLRequest) throws -> Void)? = nil
300 | ) async throws -> Response<T> {
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:299:36: error: cannot find type 'URLRequest' in scope
297 | from data: Data,
298 | delegate: URLSessionTaskDelegate? = nil,
299 | configure: sending ((inout URLRequest) throws -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
300 | ) async throws -> Response<T> {
301 | let response = try await _upload(for: request, from: data, delegate: delegate, configure: configure)
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:317:19: error: cannot find type 'URLSessionTaskDelegate' in scope
315 | for request: Request<Void>,
316 | from data: Data,
317 | delegate: URLSessionTaskDelegate? = nil,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
318 | configure: sending ((inout URLRequest) throws -> Void)? = nil
319 | ) async throws -> Response<Void> {
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:318:36: error: cannot find type 'URLRequest' in scope
316 | from data: Data,
317 | delegate: URLSessionTaskDelegate? = nil,
318 | configure: sending ((inout URLRequest) throws -> Void)? = nil
| `- error: cannot find type 'URLRequest' in scope
319 | ) async throws -> Response<Void> {
320 | try await _upload(for: request, from: data, delegate: delegate, configure: configure).map { _ in () }
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:326:19: error: cannot find type 'URLSessionTaskDelegate' in scope
324 | for request: Request<T>,
325 | from data: Data,
326 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
327 | configure: sending ((inout URLRequest) throws -> Void)?
328 | ) async throws -> Response<Data> {
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:327:36: error: cannot find type 'URLRequest' in scope
325 | from data: Data,
326 | delegate: URLSessionTaskDelegate?,
327 | configure: sending ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
328 | ) async throws -> Response<Data> {
329 | let urlRequest = try await makeURLRequest(for: request, configure)
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:347:76: error: cannot find type 'URLRequest' in scope
345 | // MARK: Making Requests
346 | /// Creates `URLRequest` for the given request.
347 | public func makeURLRequest<T>(for request: Request<T>) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
348 | try await makeURLRequest(for: request, { _ in })
349 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:359:30: error: cannot find type 'URLRequest' in scope
357 | private func makeURLRequest<T>(
358 | for request: Request<T>,
359 | _ configure: ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
360 | ) async throws -> URLRequest {
361 | let url = try makeURL(for: request)
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:360:23: error: cannot find type 'URLRequest' in scope
358 | for request: Request<T>,
359 | _ configure: ((inout URLRequest) throws -> Void)?
360 | ) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
361 | let url = try makeURL(for: request)
362 | var urlRequest = URLRequest(url: url)
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:6:19: error: cannot find type 'URLSessionTaskDelegate' in scope
4 | func send<T: Decodable & Sendable>(
5 | _ request: Request<T>,
6 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' 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: URLSessionTaskDelegate?,
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 'URLSessionTaskDelegate' in scope
10 | func send(
11 | _ request: Request<Void>,
12 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' 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: URLSessionTaskDelegate?,
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 'URLSessionTaskDelegate' in scope
16 | func data<T>(
17 | for request: Request<T>,
18 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' 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: URLSessionTaskDelegate?,
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:26:19: error: cannot find type 'URLSessionTaskDelegate' in scope
24 | for request: Request<Void>,
25 | destination: URL?,
26 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
27 | configure: sending ((inout URLRequest) throws -> Void)?
28 | ) async throws -> Response<URL>
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:27:36: error: cannot find type 'URLRequest' in scope
25 | destination: URL?,
26 | delegate: URLSessionTaskDelegate?,
27 | configure: sending ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
28 | ) async throws -> Response<URL>
29 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:44:19: error: cannot find type 'URLSessionTaskDelegate' in scope
42 | for request: Request<T>,
43 | fromFile fileURL: URL,
44 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
45 | configure: sending ((inout URLRequest) throws -> Void)?
46 | ) async throws -> Response<T>
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:45:36: error: cannot find type 'URLRequest' in scope
43 | fromFile fileURL: URL,
44 | delegate: URLSessionTaskDelegate?,
45 | configure: sending ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
46 | ) async throws -> Response<T>
47 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:60:19: error: cannot find type 'URLSessionTaskDelegate' in scope
58 | for request: Request<Void>,
59 | fromFile fileURL: URL,
60 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
61 | configure: sending ((inout URLRequest) throws -> Void)?
62 | ) async throws -> Response<Void>
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:61:36: error: cannot find type 'URLRequest' in scope
59 | fromFile fileURL: URL,
60 | delegate: URLSessionTaskDelegate?,
61 | configure: sending ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
62 | ) async throws -> Response<Void>
63 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:78:19: error: cannot find type 'URLSessionTaskDelegate' in scope
76 | for request: Request<T>,
77 | from data: Data,
78 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
79 | configure: sending ((inout URLRequest) throws -> Void)?
80 | ) async throws -> Response<T>
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:79:36: error: cannot find type 'URLRequest' in scope
77 | from data: Data,
78 | delegate: URLSessionTaskDelegate?,
79 | configure: sending ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
80 | ) async throws -> Response<T>
81 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:94:19: error: cannot find type 'URLSessionTaskDelegate' in scope
92 | for request: Request<Void>,
93 | from data: Data,
94 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
95 | configure: sending ((inout URLRequest) throws -> Void)?
96 | ) async throws -> Response<Void>
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:95:36: error: cannot find type 'URLRequest' in scope
93 | from data: Data,
94 | delegate: URLSessionTaskDelegate?,
95 | configure: sending ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
96 | ) async throws -> Response<Void>
97 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:100:69: error: cannot find type 'URLRequest' in scope
98 | // MARK: Making Requests
99 | /// Creates `URLRequest` for the given request.
100 | func makeURLRequest<T>(for request: Request<T>) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
101 |
102 | /// Clears responses stored in the client's configured URL cache.
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:82:81: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
80 | public init(configuration: Configuration) {
81 | var configuration = configuration
82 | configuration.sessionConfiguration = configuration.sessionConfiguration.copy() as! URLSessionConfiguration
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
83 | let sharedCache = URLCache.shared
84 | if configuration.sessionConfiguration.urlCache === sharedCache {
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:83:36: error: type 'URLCache' (aka 'AnyObject') has no member 'shared'
81 | var configuration = configuration
82 | configuration.sessionConfiguration = configuration.sessionConfiguration.copy() as! URLSessionConfiguration
83 | let sharedCache = URLCache.shared
| `- error: type 'URLCache' (aka 'AnyObject') has no member 'shared'
84 | if configuration.sessionConfiguration.urlCache === sharedCache {
85 | configuration.sessionConfiguration.urlCache = URLCache(
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:84:47: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'urlCache'
82 | configuration.sessionConfiguration = configuration.sessionConfiguration.copy() as! URLSessionConfiguration
83 | let sharedCache = URLCache.shared
84 | if configuration.sessionConfiguration.urlCache === sharedCache {
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'urlCache'
85 | configuration.sessionConfiguration.urlCache = URLCache(
86 | memoryCapacity: sharedCache.memoryCapacity,
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:85:48: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'urlCache'
83 | let sharedCache = URLCache.shared
84 | if configuration.sessionConfiguration.urlCache === sharedCache {
85 | configuration.sessionConfiguration.urlCache = URLCache(
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'urlCache'
86 | memoryCapacity: sharedCache.memoryCapacity,
87 | diskCapacity: sharedCache.diskCapacity
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:85:59: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
83 | let sharedCache = URLCache.shared
84 | if configuration.sessionConfiguration.urlCache === sharedCache {
85 | configuration.sessionConfiguration.urlCache = URLCache(
| `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
86 | memoryCapacity: sharedCache.memoryCapacity,
87 | diskCapacity: sharedCache.diskCapacity
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:92:29: error: cannot find 'OperationQueue' in scope
90 |
91 | self.configuration = configuration
92 | let delegateQueue = OperationQueue()
| `- error: cannot find 'OperationQueue' in scope
93 | delegateQueue.maxConcurrentOperationCount = 1
94 | delegateQueue.underlyingQueue = configuration.sessionDelegateUnderlyingQueue
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:95:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
93 | delegateQueue.maxConcurrentOperationCount = 1
94 | delegateQueue.underlyingQueue = configuration.sessionDelegateUnderlyingQueue
95 | self.session = URLSession(configuration: configuration.sessionConfiguration, delegate: dataLoader, delegateQueue: delegateQueue)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
96 | self.dataLoader.userSessionDelegate = configuration.sessionDelegate
97 | 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/APIClient.swift:103:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
101 |
102 | deinit {
103 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
104 | }
105 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:121:38: error: extra arguments at positions #2, #3 in call
119 | configure: sending ((inout URLRequest) throws -> Void)? = nil
120 | ) async throws -> Response<T> {
121 | let response = try await data(for: request, delegate: delegate, configure: configure)
| `- error: extra arguments at positions #2, #3 in call
122 | return try decodeResponse(response, for: request)
123 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:117:10: note: 'data(for:)' declared here
115 | }
116 |
117 | func data<T>(for request: Request<T>) async throws -> Response<Data> {
| `- note: 'data(for:)' declared here
118 | try await data(for: request, delegate: nil, configure: nil)
119 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:138:23: error: extra arguments at positions #2, #3 in call
136 | configure: sending ((inout URLRequest) throws -> Void)? = nil
137 | ) async throws -> Response<Void> {
138 | try await data(for: request, delegate: delegate, configure: configure).map { _ in () }
| `- error: extra arguments at positions #2, #3 in call
139 | }
140 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:117:10: note: 'data(for:)' declared here
115 | }
116 |
117 | func data<T>(for request: Request<T>) async throws -> Response<Data> {
| `- note: 'data(for:)' declared here
118 | try await data(for: request, delegate: nil, configure: nil)
119 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:354:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
352 | /// If multiple clients explicitly share a custom cache, all of them are affected.
353 | public func clearCache() async {
354 | session.configuration.urlCache?.removeAllCachedResponses()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
355 | }
356 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:362:26: error: cannot find 'URLRequest' in scope
360 | ) async throws -> URLRequest {
361 | let url = try makeURL(for: request)
362 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
363 | urlRequest.allHTTPHeaderFields = makeHTTPHeaders(requestHeaders: request.headers)
364 | urlRequest.httpMethod = request.method.rawValue
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/Request.swift:37:29: error: cannot find type 'NSURLRequest' in scope
35 | public var id: String?
36 | /// The constants used to specify interaction with the cached responses.
37 | public var cachePolicy: NSURLRequest.CachePolicy = .useProtocolCachePolicy
| `- error: cannot find type 'NSURLRequest' in scope
38 |
39 | /// Initializes the request with the given parameters.
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientDelegate.swift:93:69: error: cannot find type 'URLRequest' in scope
91 |
92 | public extension APIClientDelegate {
93 | func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
94 | // Do nothing
95 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:416:38: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
414 | }
415 |
416 | let sessionHeaders = session.configuration.httpAdditionalHeaders?.reduce(into: [String: String]()) {
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
417 | headers, entry in
418 | guard let name = entry.key as? String, let value = entry.value as? String else { return }
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:512:40: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
510 | data: response.data,
511 | statusCode: response.statusCode,
512 | url: response.response.url,
| `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'url'
513 | underlyingError: error
514 | ))
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:559:67: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'identifier'
557 |
558 | private func validateSessionConfiguration() throws {
559 | guard let identifier = configuration.sessionConfiguration.identifier else { return }
| `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'identifier'
560 | throw APIError.configuration(.backgroundSessionUnsupported(identifier: identifier))
561 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/APIError.swift:80:46: error: cannot find type 'URLRequest' in scope
78 | public let underlyingError: any Error
79 |
80 | public init(requestID: String?, request: URLRequest?, underlyingError: any Error) {
| `- error: cannot find type 'URLRequest' in scope
81 | self.requestID = requestID
82 | self.request = request
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:566:33: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'currentRequest'
564 | .transport(TransportError(
565 | requestID: requestID,
566 | request: error.task.currentRequest ?? error.task.originalRequest,
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'currentRequest'
567 | underlyingError: error.error
568 | ))
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:566:62: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
564 | .transport(TransportError(
565 | requestID: requestID,
566 | request: error.task.currentRequest ?? error.task.originalRequest,
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
567 | underlyingError: error.error
568 | ))
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:572:52: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
570 |
571 | private func validate<T>(_ response: Response<T>, requestID: String?) throws {
572 | guard let httpResponse = response.response as? HTTPURLResponse else { return }
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
573 | try delegate.client(
574 | self,
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:572:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
570 |
571 | private func validate<T>(_ response: Response<T>, requestID: String?) throws {
572 | 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.
573 | try delegate.client(
574 | self,
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/APIClient.swift:583:52: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
581 |
582 | private func validateDownload(_ response: Response<URL>, requestID: String?) throws {
583 | guard let httpResponse = response.response as? HTTPURLResponse,
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
584 | let task = response.task as? URLSessionDownloadTask else { return }
585 | try delegate.client(
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:583:56: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
581 |
582 | private func validateDownload(_ response: Response<URL>, requestID: String?) throws {
583 | guard let httpResponse = response.response as? HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
584 | let task = response.task as? URLSessionDownloadTask else { return }
585 | try delegate.client(
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/APIClient.swift:584:40: warning: conditional cast from 'URLSessionTask' (aka 'AnyObject') to 'URLSessionDownloadTask' (aka 'AnyObject') always succeeds
582 | private func validateDownload(_ response: Response<URL>, requestID: String?) throws {
583 | guard let httpResponse = response.response as? HTTPURLResponse,
584 | let task = response.task as? URLSessionDownloadTask else { return }
| `- warning: conditional cast from 'URLSessionTask' (aka 'AnyObject') to 'URLSessionDownloadTask' (aka 'AnyObject') always succeeds
585 | try delegate.client(
586 | self,
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClient.swift:584:44: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
582 | private func validateDownload(_ response: Response<URL>, requestID: String?) throws {
583 | guard let httpResponse = response.response as? HTTPURLResponse,
584 | let task = response.task as? URLSessionDownloadTask else { return }
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
585 | try delegate.client(
586 | self,
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
[5/10] 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:29:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | func client(
28 | _ client: APIClient,
29 | validateResponse response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | data: Data,
31 | task: URLSessionTask,
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:31:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | validateResponse response: HTTPURLResponse,
30 | data: Data,
31 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | requestID: String?
33 | ) throws
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:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | func client(
40 | _ client: APIClient,
41 | validateDownloadResponse response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | fileURL: URL,
43 | task: URLSessionDownloadTask,
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:43:15: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | validateDownloadResponse response: HTTPURLResponse,
42 | fileURL: URL,
43 | task: URLSessionDownloadTask,
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | requestID: String?
45 | ) throws
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/APIClientDelegate.swift:60:56: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | ///
59 | /// - returns: Return `true` to retry the request.
60 | 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.
61 |
62 | /// 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:93:69: error: cannot find type 'URLRequest' in scope
91 |
92 | public extension APIClientDelegate {
93 | func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws {
| `- error: cannot find type 'URLRequest' in scope
94 | // Do nothing
95 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientDelegate.swift:97:56: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
95 | }
96 |
97 | 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.
98 | false // Disabled by default
99 | }
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:103:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | func client(
102 | _ client: APIClient,
103 | validateResponse response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 | data: Data,
105 | task: URLSessionTask,
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:105:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 | validateResponse response: HTTPURLResponse,
104 | data: Data,
105 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 | requestID: String?
107 | ) throws {
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:117:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 | func client(
116 | _ client: APIClient,
117 | validateDownloadResponse response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | fileURL: URL,
119 | task: URLSessionDownloadTask,
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:119:15: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 | validateDownloadResponse response: HTTPURLResponse,
118 | fileURL: URL,
119 | task: URLSessionDownloadTask,
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
120 | requestID: String?
121 | ) throws {
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/APIClientDelegate.swift:108:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
106 | requestID: String?
107 | ) throws {
108 | guard (200..<300).contains(response.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
109 | throw APIError.unacceptableResponse(
110 | HTTPError(response: response, data: data, requestID: requestID)
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientDelegate.swift:122:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
120 | requestID: String?
121 | ) throws {
122 | guard !(200..<300).contains(response.statusCode) else { return }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
123 |
124 | let limit = max(0, client.configuration.maximumDownloadErrorBodySize)
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientDelegate.swift:131:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
129 |
130 | throw APIError.unacceptableResponse(HTTPError(
131 | statusCode: response.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
132 | data: data,
133 | headers: response.allHeaderFields.reduce(into: [:]) { headers, field in
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientDelegate.swift:133:31: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
131 | statusCode: response.statusCode,
132 | data: data,
133 | headers: response.allHeaderFields.reduce(into: [:]) { headers, field in
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
134 | headers[String(describing: field.key)] = String(describing: field.value)
135 | },
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientDelegate.swift:136:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
134 | headers[String(describing: field.key)] = String(describing: field.value)
135 | },
136 | url: response.url,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
137 | requestID: requestID,
138 | isBodyTruncated: fileSize > data.count
[6/10] Compiling SkavokNetworking Request.swift
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/Request.swift:37:29: error: cannot find type 'NSURLRequest' in scope
35 | public var id: String?
36 | /// The constants used to specify interaction with the cached responses.
37 | public var cachePolicy: NSURLRequest.CachePolicy = .useProtocolCachePolicy
| `- error: cannot find type 'NSURLRequest' in scope
38 |
39 | /// Initializes the request with the given parameters.
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/Request.swift:47:22: error: cannot find type 'NSURLRequest' in scope
45 | headers: [String: String]? = nil,
46 | id: String? = nil,
47 | cachePolicy: NSURLRequest.CachePolicy = .useProtocolCachePolicy
| `- error: cannot find type 'NSURLRequest' in scope
48 | ) {
49 | self.method = method
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/Request.swift:66:22: error: cannot find type 'NSURLRequest' in scope
64 | headers: [String: String]? = nil,
65 | id: String? = nil,
66 | cachePolicy: NSURLRequest.CachePolicy = .useProtocolCachePolicy
| `- error: cannot find type 'NSURLRequest' in scope
67 | ) {
68 | self.method = method
[7/10] Compiling SkavokNetworking Response.swift
/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:15:33: error: cannot find type 'URLRequest' in scope
13 | public let data: Data
14 | /// Original request.
15 | public var originalRequest: URLRequest? { task.originalRequest }
| `- error: cannot find type 'URLRequest' in scope
16 | /// The URL request object currently being handled by the task. May be
17 | /// different from the original request.
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/Response.swift:18:32: error: cannot find type 'URLRequest' in scope
16 | /// The URL request object currently being handled by the task. May be
17 | /// different from the original request.
18 | public var currentRequest: URLRequest? { task.currentRequest }
| `- error: cannot find type 'URLRequest' in scope
19 | /// Completed task.
20 | public let task: URLSessionTask
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/Response.swift:20:22: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | public var currentRequest: URLRequest? { task.currentRequest }
19 | /// Completed task.
20 | public let task: URLSessionTask
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | /// Task metrics collected for the request.
22 | 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:22:25: error: cannot find type 'URLSessionTaskMetrics' in scope
20 | public let task: URLSessionTask
21 | /// Task metrics collected for the request.
22 | public let metrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
23 |
24 | /// Initializes the response.
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/Response.swift:25:93: error: cannot find type 'URLSessionTaskMetrics' in scope
23 |
24 | /// Initializes the response.
25 | public init(value: T, data: Data, response: URLResponse, task: URLSessionTask, metrics: URLSessionTaskMetrics? = nil) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
26 | self.value = value
27 | self.data = data
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/Response.swift:25:49: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |
24 | /// Initializes the response.
25 | 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.
26 | self.value = value
27 | 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:25:68: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |
24 | /// Initializes the response.
25 | 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.
26 | self.value = value
27 | 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
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/Response.swift:8:16: error: stored property 'response' of 'Sendable'-conforming generic struct 'Response' has non-Sendable type 'URLResponse' (aka 'AnyObject')
6 | public let value: T
7 | /// Original response.
8 | public let response: URLResponse
| `- error: stored property 'response' of 'Sendable'-conforming generic struct 'Response' has non-Sendable type 'URLResponse' (aka 'AnyObject')
9 | /// Response HTTP status code.
10 | public var statusCode: Int? { (response as? HTTPURLResponse)?.statusCode }
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/Response.swift:20:16: error: stored property 'task' of 'Sendable'-conforming generic struct 'Response' has non-Sendable type 'URLSessionTask' (aka 'AnyObject')
18 | public var currentRequest: URLRequest? { task.currentRequest }
19 | /// Completed task.
20 | public let task: URLSessionTask
| `- error: stored property 'task' of 'Sendable'-conforming generic struct 'Response' has non-Sendable type 'URLSessionTask' (aka 'AnyObject')
21 | /// Task metrics collected for the request.
22 | public let metrics: URLSessionTaskMetrics?
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/Response.swift:10:45: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
8 | public let response: URLResponse
9 | /// Response HTTP status code.
10 | public var statusCode: Int? { (response as? HTTPURLResponse)?.statusCode }
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
11 | /// Original response data. Empty for file-backed download responses; use
12 | /// ``location`` to access downloaded content.
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/Response.swift:10:67: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
8 | public let response: URLResponse
9 | /// Response HTTP status code.
10 | public var statusCode: Int? { (response as? HTTPURLResponse)?.statusCode }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
11 | /// Original response data. Empty for file-backed download responses; use
12 | /// ``location`` to access downloaded content.
[8/10] 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:387:28: error: type 'URLSessionTask' (aka 'AnyObject') does not conform to protocol 'Hashable'
385 | private final class TaskHandlersDictionary {
386 | private let lock = NSLock()
387 | private var handlers = [URLSessionTask: TaskHandler]()
| `- error: type 'URLSessionTask' (aka 'AnyObject') does not conform to protocol 'Hashable'
388 |
389 | subscript(task: URLSessionTask) -> TaskHandler? {
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:387:28: error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
385 | private final class TaskHandlersDictionary {
386 | private let lock = NSLock()
387 | private var handlers = [URLSessionTask: TaskHandler]()
| `- error: 'URLSessionTask' (aka 'AnyObject') cannot be used as a type conforming to protocol 'Hashable' because 'Hashable' has static requirements
388 |
389 | 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:12:35: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | }
11 | }
12 | private var userTaskDelegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 | private static let downloadDirectoryURL = FileManager.default.temporaryDirectory
/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 | }
11 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:18:62: error: cannot find type 'URLSessionTaskDelegate' in scope
16 | .appendingPathComponent("Downloads", isDirectory: true)
17 |
18 | func startDataTask(_ task: URLSessionDataTask, delegate: URLSessionTaskDelegate?) async throws -> Response<Data> {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
19 | try await withTaskCancellationHandler(operation: {
20 | try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:18:32: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | .appendingPathComponent("Downloads", isDirectory: true)
17 |
18 | func startDataTask(_ task: URLSessionDataTask, delegate: URLSessionTaskDelegate?) async throws -> Response<Data> {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | try await withTaskCancellationHandler(operation: {
20 | try await withCheckedThrowingContinuation { 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:34:70: error: cannot find type 'URLSessionTaskDelegate' in scope
32 | }
33 |
34 | func startDownloadTask(_ task: URLSessionDownloadTask, delegate: URLSessionTaskDelegate?) async throws -> Response<URL> {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
35 | try await withTaskCancellationHandler(operation: {
36 | try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:34:36: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | }
33 |
34 | func startDownloadTask(_ task: URLSessionDownloadTask, delegate: URLSessionTaskDelegate?) async throws -> Response<URL> {
| `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | try await withTaskCancellationHandler(operation: {
36 | try await withCheckedThrowingContinuation { 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:50:66: error: cannot find type 'URLSessionTaskDelegate' in scope
48 | }
49 |
50 | func startUploadTask(_ task: URLSessionUploadTask, delegate: URLSessionTaskDelegate?) async throws -> Response<Data> {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
51 | try await withTaskCancellationHandler(operation: {
52 | try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:50:34: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | }
49 |
50 | func startUploadTask(_ task: URLSessionUploadTask, delegate: URLSessionTaskDelegate?) async throws -> Response<Data> {
| `- error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | try await withTaskCancellationHandler(operation: {
52 | try await withCheckedThrowingContinuation { 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:68:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | // MARK: - URLSessionDelegate
67 |
68 | 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.
69 | userSessionDelegate?.urlSession?(session, didBecomeInvalidWithError: error)
70 | }
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:72:69: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 | }
71 |
72 | func urlSessionDidFinishEvents(forBackgroundURLSession session: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 | if #available(macOS 11.0, *) {
74 | 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:83:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
81 | _ session: URLSession,
82 | didReceive challenge: URLAuthenticationChallenge,
83 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
84 | ) {
85 | userSessionDelegate?.urlSession?(
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:81:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 |
80 | func urlSession(
81 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 | didReceive challenge: URLAuthenticationChallenge,
83 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
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:82:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 | func urlSession(
81 | _ session: URLSession,
82 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
83 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
84 | ) {
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:94:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 | // MARK: - URLSessionTaskDelegate
93 |
94 | 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.
95 | guard let handler = handlers[task] else { return assertionFailure() }
96 | 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:94:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 | // MARK: - URLSessionTaskDelegate
93 |
94 | 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.
95 | guard let handler = handlers[task] else { return assertionFailure() }
96 | 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:141:95: error: cannot find type 'URLSessionTaskMetrics' in scope
139 | }
140 |
141 | func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
142 | let handler = handlers[task]
143 | handler?.metrics = metrics
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:141:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | }
140 |
141 | 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.
142 | let handler = handlers[task]
143 | 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:141:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | }
140 |
141 | 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.
142 | let handler = handlers[task]
143 | 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:152:29: error: cannot find type 'URLRequest' in scope
150 | task: URLSessionTask,
151 | willPerformHTTPRedirection response: HTTPURLResponse,
152 | newRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
153 | completionHandler: @escaping @Sendable (URLRequest?) -> Void
154 | ) {
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:153:49: error: cannot find type 'URLRequest' in scope
151 | willPerformHTTPRedirection response: HTTPURLResponse,
152 | newRequest request: URLRequest,
153 | completionHandler: @escaping @Sendable (URLRequest?) -> Void
| `- error: cannot find type 'URLRequest' in scope
154 | ) {
155 | handlers[task]?.delegate?.urlSession?(
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:149:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
147 |
148 | func urlSession(
149 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
150 | task: URLSessionTask,
151 | 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:150:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 | func urlSession(
149 | _ session: URLSession,
150 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
151 | willPerformHTTPRedirection response: HTTPURLResponse,
152 | 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:151:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
149 | _ session: URLSession,
150 | task: URLSessionTask,
151 | willPerformHTTPRedirection response: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
152 | newRequest request: URLRequest,
153 | 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:172:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 | }
171 |
172 | 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.
173 | handlers[task]?.delegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
174 | 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:172:79: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 | }
171 |
172 | 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.
173 | handlers[task]?.delegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
174 | 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:178:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
176 |
177 | func urlSession(
178 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
179 | task: URLSessionTask,
180 | didSendBodyData bytesSent: Int64,
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:179:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
177 | func urlSession(
178 | _ session: URLSession,
179 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
180 | didSendBodyData bytesSent: Int64,
181 | totalBytesSent: Int64,
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:201:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 |
200 | func urlSession(
201 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
202 | task: URLSessionTask,
203 | needNewBodyStream completionHandler: @escaping @Sendable (InputStream?) -> Void
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:202:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 | func urlSession(
201 | _ session: URLSession,
202 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
203 | needNewBodyStream completionHandler: @escaping @Sendable (InputStream?) -> Void
204 | ) {
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:222:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
220 | task: URLSessionTask,
221 | didReceive challenge: URLAuthenticationChallenge,
222 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
| `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
223 | ) {
224 | handlers[task]?.delegate?.urlSession?(
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:219:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
217 |
218 | func urlSession(
219 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
220 | task: URLSessionTask,
221 | 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:220:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
218 | func urlSession(
219 | _ session: URLSession,
220 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
221 | didReceive challenge: URLAuthenticationChallenge,
222 | 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:221:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
219 | _ session: URLSession,
220 | task: URLSessionTask,
221 | didReceive challenge: URLAuthenticationChallenge,
| `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
222 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
223 | ) {
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:239:99: error: cannot find type 'URLRequest' in scope
237 | }
238 |
239 | func urlSession(_ session: URLSession, task: URLSessionTask, willBeginDelayedRequest request: URLRequest, completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
240 | handlers[task]?.delegate?.urlSession?(
241 | session,
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:239:162: error: 'DelayedRequestDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
237 | }
238 |
239 | 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')
240 | handlers[task]?.delegate?.urlSession?(
241 | session,
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:239:189: error: cannot find type 'URLRequest' in scope
237 | }
238 |
239 | func urlSession(_ session: URLSession, task: URLSessionTask, willBeginDelayedRequest request: URLRequest, completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) {
| `- error: cannot find type 'URLRequest' in scope
240 | handlers[task]?.delegate?.urlSession?(
241 | session,
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:239:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
237 | }
238 |
239 | 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.
240 | handlers[task]?.delegate?.urlSession?(
241 | 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:239:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
237 | }
238 |
239 | 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.
240 | handlers[task]?.delegate?.urlSession?(
241 | 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:260:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
258 | dataTask: URLSessionDataTask,
259 | didReceive response: URLResponse,
260 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
261 | ) {
262 | completionHandler(.allow)
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:257:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
255 | // MARK: - URLSessionDataDelegate
256 | func urlSession(
257 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
258 | dataTask: URLSessionDataTask,
259 | 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:258:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
256 | func urlSession(
257 | _ session: URLSession,
258 | dataTask: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
259 | didReceive response: URLResponse,
260 | 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:259:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
257 | _ session: URLSession,
258 | dataTask: URLSessionDataTask,
259 | didReceive response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
260 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
261 | ) {
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:265:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
263 | }
264 |
265 | 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.
266 | guard let handler = handlers[dataTask] as? DataTaskHandler else { return }
267 |
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:265:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
263 | }
264 |
265 | 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.
266 | guard let handler = handlers[dataTask] as? DataTaskHandler else { return }
267 |
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:276:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
274 |
275 | func urlSession(
276 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
277 | dataTask: URLSessionDataTask,
278 | 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:277:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 | func urlSession(
276 | _ session: URLSession,
277 | dataTask: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
278 | willCacheResponse proposedResponse: CachedURLResponse,
279 | 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:278:45: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
276 | _ session: URLSession,
277 | dataTask: URLSessionDataTask,
278 | willCacheResponse proposedResponse: CachedURLResponse,
| `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
279 | completionHandler: @escaping @Sendable (CachedURLResponse?) -> Void
280 | ) {
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:279:49: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
277 | dataTask: URLSessionDataTask,
278 | willCacheResponse proposedResponse: CachedURLResponse,
279 | completionHandler: @escaping @Sendable (CachedURLResponse?) -> Void
| `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
280 | ) {
281 | completionHandler(proposedResponse)
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:285:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
283 |
284 | // MARK: - URLSessionDownloadDelegate
285 | 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.
286 | guard let handler = handlers[downloadTask] as? DownloadTaskHandler else { return }
287 | 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:285:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
283 |
284 | // MARK: - URLSessionDownloadDelegate
285 | 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.
286 | guard let handler = handlers[downloadTask] as? DownloadTaskHandler else { return }
287 | 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:307:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
305 | }
306 |
307 | 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.
308 |
309 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didResumeAtOffset fileOffset: Int64, expectedTotalBytes: Int64) {}
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:307:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
305 | }
306 |
307 | 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.
308 |
309 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didResumeAtOffset fileOffset: Int64, expectedTotalBytes: Int64) {}
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:309:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
307 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {}
308 |
309 | 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.
310 | }
311 |
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:309:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
307 | func urlSession(_ session: URLSession, downloadTask: URLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) {}
308 |
309 | 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.
310 | }
311 |
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:314:19: error: cannot find type 'URLSessionTaskDelegate' in scope
312 | // MARK: - TaskHandlers
313 | private class TaskHandler {
314 | let delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
315 | var metrics: URLSessionTaskMetrics?
316 |
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:315:18: error: cannot find type 'URLSessionTaskMetrics' in scope
313 | private class TaskHandler {
314 | let delegate: URLSessionTaskDelegate?
315 | var metrics: URLSessionTaskMetrics?
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
316 |
317 | init(delegate: URLSessionTaskDelegate?) {
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:317:20: error: cannot find type 'URLSessionTaskDelegate' in scope
315 | var metrics: URLSessionTaskMetrics?
316 |
317 | init(delegate: URLSessionTaskDelegate?) {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
318 | self.delegate = delegate
319 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:335:29: error: cannot find type 'URLSessionTaskDelegate' in scope
333 | var fileResult: Result<URL, Error>?
334 |
335 | override init(delegate: URLSessionTaskDelegate?) {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
336 | super.init(delegate: delegate)
337 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:344:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
342 |
343 | struct DataLoaderError: Error {
344 | let task: URLSessionTask
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
345 | let error: Error
346 | }
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:344:9: warning: stored property 'task' of 'Sendable'-conforming struct 'DataLoaderError' has non-Sendable type 'URLSessionTask' (aka 'AnyObject')
342 |
343 | struct DataLoaderError: Error {
344 | let task: URLSessionTask
| `- warning: stored property 'task' of 'Sendable'-conforming struct 'DataLoaderError' has non-Sendable type 'URLSessionTask' (aka 'AnyObject')
345 | let error: Error
346 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:389:21: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
387 | private var handlers = [URLSessionTask: TaskHandler]()
388 |
389 | subscript(task: URLSessionTask) -> TaskHandler? {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
390 | get {
391 | 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:21:31: error: 'DataTaskHandler' cannot be constructed because it has no accessible initializers
19 | try await withTaskCancellationHandler(operation: {
20 | try await withCheckedThrowingContinuation { continuation in
21 | let handler = DataTaskHandler(delegate: delegate)
| `- error: 'DataTaskHandler' cannot be constructed because it has no accessible initializers
22 | handler.completion = { @Sendable result in
23 | continuation.resume(with: result)
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:30:18: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
28 | }
29 | }, onCancel: {
30 | task.cancel()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
31 | })
32 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:46:18: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'cancel'
44 | }
45 | }, onCancel: {
46 | task.cancel()
| `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'cancel'
47 | })
48 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:53:31: error: 'DataTaskHandler' cannot be constructed because it has no accessible initializers
51 | try await withTaskCancellationHandler(operation: {
52 | try await withCheckedThrowingContinuation { continuation in
53 | let handler = DataTaskHandler(delegate: delegate)
| `- error: 'DataTaskHandler' cannot be constructed because it has no accessible initializers
54 | handler.completion = { @Sendable result in
55 | continuation.resume(with: result)
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:62:18: error: value of type 'URLSessionUploadTask' (aka 'AnyObject') has no member 'cancel'
60 | }
61 | }, onCancel: {
62 | task.cancel()
| `- error: value of type 'URLSessionUploadTask' (aka 'AnyObject') has no member 'cancel'
63 | })
64 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:89:33: error: cannot infer contextual base in reference to member 'performDefaultHandling'
87 | didReceive: challenge,
88 | completionHandler: completionHandler
89 | ) ?? completionHandler(.performDefaultHandling, nil)
| `- error: cannot infer contextual base in reference to member 'performDefaultHandling'
90 | }
91 |
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:89:57: error: 'nil' requires a contextual type
87 | didReceive: challenge,
88 | completionHandler: completionHandler
89 | ) ?? completionHandler(.performDefaultHandling, nil)
| `- error: 'nil' requires a contextual type
90 | }
91 |
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:101:36: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
99 | switch handler {
100 | case let handler as DataTaskHandler:
101 | if let response = task.response, error == nil {
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
102 | let data = handler.data ?? Data()
103 | let response = Response(value: data, data: data, response: response, task: task, metrics: handler.metrics)
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/Response.swift:25:93: error: cannot find type 'URLSessionTaskMetrics' in scope
23 |
24 | /// Initializes the response.
25 | public init(value: T, data: Data, response: URLResponse, task: URLSessionTask, metrics: URLSessionTaskMetrics? = nil) {
| `- error: cannot find type 'URLSessionTaskMetrics' in scope
26 | self.value = value
27 | self.data = data
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:103:32: error: generic parameter 'T' could not be inferred
101 | if let response = task.response, error == nil {
102 | let data = handler.data ?? Data()
103 | 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
104 | handler.completion?(.success(response))
105 | } 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:117:39: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
115 | }
116 |
117 | guard let response = task.response else {
| `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
118 | handler.completion?(.failure(URLError(.badServerResponse)))
119 | return
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:124:46: error: generic parameter 'T' could not be inferred
122 | switch handler.fileResult {
123 | case .success(let location):
124 | handler.completion?(.success(Response(
| |- error: generic parameter 'T' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
125 | value: location,
126 | data: Data(),
/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:155:9: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
153 | completionHandler: @escaping @Sendable (URLRequest?) -> Void
154 | ) {
155 | 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
156 | session,
157 | task: task,
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:224:9: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
222 | completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
223 | ) {
224 | 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
225 | session,
226 | task: task,
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:240:9: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
238 |
239 | func urlSession(_ session: URLSession, task: URLSessionTask, willBeginDelayedRequest request: URLRequest, completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void) {
240 | 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
241 | session,
242 | task: task,
/host/spi-builder-workspace/Sources/SkavokNetworking/DataLoader.swift:262:28: error: cannot infer contextual base in reference to member 'allow'
260 | completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
261 | ) {
262 | completionHandler(.allow)
| `- error: cannot infer contextual base in reference to member 'allow'
263 | }
264 |
[9/10] Compiling SkavokNetworking APIClientProtocol.swift
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:6:19: error: cannot find type 'URLSessionTaskDelegate' in scope
4 | func send<T: Decodable & Sendable>(
5 | _ request: Request<T>,
6 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' 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: URLSessionTaskDelegate?,
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 'URLSessionTaskDelegate' in scope
10 | func send(
11 | _ request: Request<Void>,
12 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' 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: URLSessionTaskDelegate?,
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 'URLSessionTaskDelegate' in scope
16 | func data<T>(
17 | for request: Request<T>,
18 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' 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: URLSessionTaskDelegate?,
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:26:19: error: cannot find type 'URLSessionTaskDelegate' in scope
24 | for request: Request<Void>,
25 | destination: URL?,
26 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
27 | configure: sending ((inout URLRequest) throws -> Void)?
28 | ) async throws -> Response<URL>
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:27:36: error: cannot find type 'URLRequest' in scope
25 | destination: URL?,
26 | delegate: URLSessionTaskDelegate?,
27 | configure: sending ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
28 | ) async throws -> Response<URL>
29 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:44:19: error: cannot find type 'URLSessionTaskDelegate' in scope
42 | for request: Request<T>,
43 | fromFile fileURL: URL,
44 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
45 | configure: sending ((inout URLRequest) throws -> Void)?
46 | ) async throws -> Response<T>
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:45:36: error: cannot find type 'URLRequest' in scope
43 | fromFile fileURL: URL,
44 | delegate: URLSessionTaskDelegate?,
45 | configure: sending ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
46 | ) async throws -> Response<T>
47 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:60:19: error: cannot find type 'URLSessionTaskDelegate' in scope
58 | for request: Request<Void>,
59 | fromFile fileURL: URL,
60 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
61 | configure: sending ((inout URLRequest) throws -> Void)?
62 | ) async throws -> Response<Void>
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:61:36: error: cannot find type 'URLRequest' in scope
59 | fromFile fileURL: URL,
60 | delegate: URLSessionTaskDelegate?,
61 | configure: sending ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
62 | ) async throws -> Response<Void>
63 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:78:19: error: cannot find type 'URLSessionTaskDelegate' in scope
76 | for request: Request<T>,
77 | from data: Data,
78 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
79 | configure: sending ((inout URLRequest) throws -> Void)?
80 | ) async throws -> Response<T>
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:79:36: error: cannot find type 'URLRequest' in scope
77 | from data: Data,
78 | delegate: URLSessionTaskDelegate?,
79 | configure: sending ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
80 | ) async throws -> Response<T>
81 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:94:19: error: cannot find type 'URLSessionTaskDelegate' in scope
92 | for request: Request<Void>,
93 | from data: Data,
94 | delegate: URLSessionTaskDelegate?,
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
95 | configure: sending ((inout URLRequest) throws -> Void)?
96 | ) async throws -> Response<Void>
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:95:36: error: cannot find type 'URLRequest' in scope
93 | from data: Data,
94 | delegate: URLSessionTaskDelegate?,
95 | configure: sending ((inout URLRequest) throws -> Void)?
| `- error: cannot find type 'URLRequest' in scope
96 | ) async throws -> Response<Void>
97 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:100:69: error: cannot find type 'URLRequest' in scope
98 | // MARK: Making Requests
99 | /// Creates `URLRequest` for the given request.
100 | func makeURLRequest<T>(for request: Request<T>) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
101 |
102 | /// Clears responses stored in the client's configured URL cache.
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:109:13: error: cannot convert return expression of type 'Int' to return type 'Response<T>'
107 | @discardableResult
108 | func send<T: Decodable & Sendable>(_ request: Request<T>) async throws -> Response<T> {
109 | try await send(request, delegate: nil, configure: nil)
| `- error: cannot convert return expression of type 'Int' to return type 'Response<T>'
110 | }
111 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:109:23: error: extraneous argument labels 'delegate:configure:' in call
107 | @discardableResult
108 | func send<T: Decodable & Sendable>(_ request: Request<T>) async throws -> Response<T> {
109 | try await send(request, delegate: nil, configure: nil)
| `- error: extraneous argument labels 'delegate:configure:' in call
110 | }
111 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:109:62: error: missing argument for parameter #4 in call
107 | @discardableResult
108 | func send<T: Decodable & Sendable>(_ request: Request<T>) async throws -> Response<T> {
109 | try await send(request, delegate: nil, configure: nil)
| `- error: missing argument for parameter #4 in call
110 | }
111 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/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:109:24: error: cannot convert value of type 'Request<T>' to expected argument type 'Int32'
107 | @discardableResult
108 | func send<T: Decodable & Sendable>(_ request: Request<T>) async throws -> Response<T> {
109 | try await send(request, delegate: nil, configure: nil)
| `- error: cannot convert value of type 'Request<T>' to expected argument type 'Int32'
110 | }
111 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:109:59: error: 'nil' is not compatible with expected argument type 'Int'
107 | @discardableResult
108 | func send<T: Decodable & Sendable>(_ request: Request<T>) async throws -> Response<T> {
109 | try await send(request, delegate: nil, configure: nil)
| `- error: 'nil' is not compatible with expected argument type 'Int'
110 | }
111 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:109:19: error: use of 'send' refers to instance method rather than global function 'send' in module 'SwiftWASILibc'
107 | @discardableResult
108 | func send<T: Decodable & Sendable>(_ request: Request<T>) async throws -> Response<T> {
109 | 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'
110 | }
111 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/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:114:13: error: cannot convert return expression of type 'Int' to return type 'Response<Void>'
112 | @discardableResult
113 | func send(_ request: Request<Void>) async throws -> Response<Void> {
114 | try await send(request, delegate: nil, configure: nil)
| `- error: cannot convert return expression of type 'Int' to return type 'Response<Void>'
115 | }
116 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:114:23: error: extraneous argument labels 'delegate:configure:' in call
112 | @discardableResult
113 | func send(_ request: Request<Void>) async throws -> Response<Void> {
114 | try await send(request, delegate: nil, configure: nil)
| `- error: extraneous argument labels 'delegate:configure:' in call
115 | }
116 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:114:62: error: missing argument for parameter #4 in call
112 | @discardableResult
113 | func send(_ request: Request<Void>) async throws -> Response<Void> {
114 | try await send(request, delegate: nil, configure: nil)
| `- error: missing argument for parameter #4 in call
115 | }
116 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/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:114:24: error: cannot convert value of type 'Request<Void>' to expected argument type 'Int32'
112 | @discardableResult
113 | func send(_ request: Request<Void>) async throws -> Response<Void> {
114 | try await send(request, delegate: nil, configure: nil)
| `- error: cannot convert value of type 'Request<Void>' to expected argument type 'Int32'
115 | }
116 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:114:59: error: 'nil' is not compatible with expected argument type 'Int'
112 | @discardableResult
113 | func send(_ request: Request<Void>) async throws -> Response<Void> {
114 | try await send(request, delegate: nil, configure: nil)
| `- error: 'nil' is not compatible with expected argument type 'Int'
115 | }
116 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:114:19: error: use of 'send' refers to instance method rather than global function 'send' in module 'SwiftWASILibc'
112 | @discardableResult
113 | func send(_ request: Request<Void>) async throws -> Response<Void> {
114 | 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'
115 | }
116 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/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:118:23: error: extra arguments at positions #2, #3 in call
115 | }
116 |
117 | func data<T>(for request: Request<T>) async throws -> Response<Data> {
| `- note: 'data(for:)' declared here
118 | try await data(for: request, delegate: nil, configure: nil)
| `- error: extra arguments at positions #2, #3 in call
119 | }
120 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:118:48: error: 'nil' requires a contextual type
116 |
117 | func data<T>(for request: Request<T>) async throws -> Response<Data> {
118 | try await data(for: request, delegate: nil, configure: nil)
| `- error: 'nil' requires a contextual type
119 | }
120 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:118:64: error: 'nil' requires a contextual type
116 |
117 | func data<T>(for request: Request<T>) async throws -> Response<Data> {
118 | try await data(for: request, delegate: nil, configure: nil)
| `- error: 'nil' requires a contextual type
119 | }
120 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:125:27: error: extra arguments at positions #3, #4 in call
119 | }
120 |
121 | func download(
| `- note: 'download(for:destination:)' declared here
122 | for request: Request<Void>,
123 | destination: URL? = nil
124 | ) async throws -> Response<URL> {
125 | try await download(
| `- error: extra arguments at positions #3, #4 in call
126 | for: request,
127 | destination: destination,
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:128:23: error: 'nil' requires a contextual type
126 | for: request,
127 | destination: destination,
128 | delegate: nil,
| `- error: 'nil' requires a contextual type
129 | configure: nil
130 | )
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:129:24: error: 'nil' requires a contextual type
127 | destination: destination,
128 | delegate: nil,
129 | configure: nil
| `- error: 'nil' requires a contextual type
130 | )
131 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:135:25: error: extra arguments at positions #3, #4 in call
132 |
133 | @discardableResult
134 | func upload<T: Decodable & Sendable>(for request: Request<T>, from data: Data) async throws -> Response<T> {
| `- note: 'upload(for:from:)' declared here
135 | try await upload(for: request, from: data, delegate: nil, configure: nil)
| `- error: extra arguments at positions #3, #4 in call
136 | }
137 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:135:62: error: 'nil' requires a contextual type
133 | @discardableResult
134 | func upload<T: Decodable & Sendable>(for request: Request<T>, from data: Data) async throws -> Response<T> {
135 | try await upload(for: request, from: data, delegate: nil, configure: nil)
| `- error: 'nil' requires a contextual type
136 | }
137 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:135:78: error: 'nil' requires a contextual type
133 | @discardableResult
134 | func upload<T: Decodable & Sendable>(for request: Request<T>, from data: Data) async throws -> Response<T> {
135 | try await upload(for: request, from: data, delegate: nil, configure: nil)
| `- error: 'nil' requires a contextual type
136 | }
137 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:140:25: error: extra arguments at positions #3, #4 in call
137 |
138 | @discardableResult
139 | func upload(for request: Request<Void>, from data: Data) async throws -> Response<Void> {
| `- note: 'upload(for:from:)' declared here
140 | try await upload(for: request, from: data, delegate: nil, configure: nil)
| `- error: extra arguments at positions #3, #4 in call
141 | }
142 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:140:62: error: 'nil' requires a contextual type
138 | @discardableResult
139 | func upload(for request: Request<Void>, from data: Data) async throws -> Response<Void> {
140 | try await upload(for: request, from: data, delegate: nil, configure: nil)
| `- error: 'nil' requires a contextual type
141 | }
142 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:140:78: error: 'nil' requires a contextual type
138 | @discardableResult
139 | func upload(for request: Request<Void>, from data: Data) async throws -> Response<Void> {
140 | try await upload(for: request, from: data, delegate: nil, configure: nil)
| `- error: 'nil' requires a contextual type
141 | }
142 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:145:25: error: extra arguments at positions #3, #4 in call
142 |
143 | @discardableResult
144 | func upload<T: Decodable & Sendable>(for request: Request<T>, fromFile fileURL: URL) async throws -> Response<T> {
| `- note: 'upload(for:fromFile:)' declared here
145 | try await upload(for: request, fromFile: fileURL, delegate: nil, configure: nil)
| `- error: extra arguments at positions #3, #4 in call
146 | }
147 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:145:69: error: 'nil' requires a contextual type
143 | @discardableResult
144 | func upload<T: Decodable & Sendable>(for request: Request<T>, fromFile fileURL: URL) async throws -> Response<T> {
145 | try await upload(for: request, fromFile: fileURL, delegate: nil, configure: nil)
| `- error: 'nil' requires a contextual type
146 | }
147 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:145:85: error: 'nil' requires a contextual type
143 | @discardableResult
144 | func upload<T: Decodable & Sendable>(for request: Request<T>, fromFile fileURL: URL) async throws -> Response<T> {
145 | try await upload(for: request, fromFile: fileURL, delegate: nil, configure: nil)
| `- error: 'nil' requires a contextual type
146 | }
147 |
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:150:25: error: extra arguments at positions #3, #4 in call
147 |
148 | @discardableResult
149 | func upload(for request: Request<Void>, fromFile fileURL: URL) async throws -> Response<Void> {
| `- note: 'upload(for:fromFile:)' declared here
150 | try await upload(for: request, fromFile: fileURL, delegate: nil, configure: nil)
| `- error: extra arguments at positions #3, #4 in call
151 | }
152 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:150:69: error: 'nil' requires a contextual type
148 | @discardableResult
149 | func upload(for request: Request<Void>, fromFile fileURL: URL) async throws -> Response<Void> {
150 | try await upload(for: request, fromFile: fileURL, delegate: nil, configure: nil)
| `- error: 'nil' requires a contextual type
151 | }
152 | }
/host/spi-builder-workspace/Sources/SkavokNetworking/APIClientProtocol.swift:150:85: error: 'nil' requires a contextual type
148 | @discardableResult
149 | func upload(for request: Request<Void>, fromFile fileURL: URL) async throws -> Response<Void> {
150 | try await upload(for: request, fromFile: fileURL, delegate: nil, configure: nil)
| `- error: 'nil' requires a contextual type
151 | }
152 | }
[10/10] Compiling SkavokNetworking APIError.swift
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/APIError.swift:77:25: error: cannot find type 'URLRequest' in scope
75 | public struct TransportError: Error, LocalizedError, Sendable {
76 | public let requestID: String?
77 | public let request: URLRequest?
| `- error: cannot find type 'URLRequest' in scope
78 | public let underlyingError: any Error
79 |
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/APIError.swift:80:46: error: cannot find type 'URLRequest' in scope
78 | public let underlyingError: any Error
79 |
80 | public init(requestID: String?, request: URLRequest?, underlyingError: any Error) {
| `- error: cannot find type 'URLRequest' in scope
81 | self.requestID = requestID
82 | self.request = request
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/APIError.swift:120:20: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 | }
119 |
120 | init(response: HTTPURLResponse, data: Data, requestID: String?) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 | self.init(
122 | statusCode: 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/Models/APIError.swift:122:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
120 | init(response: HTTPURLResponse, data: Data, requestID: String?) {
121 | self.init(
122 | statusCode: response.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
123 | data: data,
124 | headers: response.allHeaderFields.reduce(into: [:]) { headers, field in
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/APIError.swift:124:31: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
122 | statusCode: response.statusCode,
123 | data: data,
124 | headers: response.allHeaderFields.reduce(into: [:]) { headers, field in
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
125 | headers[String(describing: field.key).lowercased()] = String(describing: field.value)
126 | },
/host/spi-builder-workspace/Sources/SkavokNetworking/Models/APIError.swift:127:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
125 | headers[String(describing: field.key).lowercased()] = String(describing: field.value)
126 | },
127 | url: response.url,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
128 | requestID: requestID
129 | )
BUILD FAILURE 6.2 wasm