The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build Arachne, reference 0.8.0 (e8326e), with Swift 6.2 (beta) for Linux on 21 Aug 2025 17:00:53 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

 75 |     @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
 76 |     public nonisolated func bytes(_ target: T, session: URLSession? = nil) async throws -> (URLSession.AsyncBytes, URLResponse) {
    |                                                                                                        `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 77 |         let request = try await urlRequest(for: target)
 78 |         self.plugins?.forEach { $0.handle(request: request) }
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:76:57: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 74 |     /// - Returns: An asynchronously-delivered tuple that contains a `URLSession.AsyncBytes` sequence to iterate over, and a `URLResponse`.
 75 |     @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
 76 |     public nonisolated func bytes(_ target: T, session: URLSession? = nil) async throws -> (URLSession.AsyncBytes, URLResponse) {
    |                                                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 77 |         let request = try await urlRequest(for: target)
 78 |         self.plugins?.forEach { $0.handle(request: request) }
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/Arachne/ArachneProvider.swift:105:43: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 |     public nonisolated func data(_ target: T,
104 |                                  timeoutInterval: Double? = nil,
105 |                                  session: URLSession? = nil) async throws -> (Data, URLResponse) {
    |                                           `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 |         return try await data(target, session: session)
107 |     }
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/Arachne/ArachneProvider.swift:105:85: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 |     public nonisolated func data(_ target: T,
104 |                                  timeoutInterval: Double? = nil,
105 |                                  session: URLSession? = nil) async throws -> (Data, URLResponse) {
    |                                                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 |         return try await data(target, session: session)
107 |     }
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/Arachne/ArachneProvider.swift:119:56: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 |     ///   ``ARError/unexpectedMimeType(mimeType:response:responseContent:)``
118 |     ///   if the response mime type doesn't match ``ArachneService/expectedMimeType-4w7gr``.
119 |     public nonisolated func data(_ target: T, session: URLSession? = nil) async throws -> (Data, URLResponse) {
    |                                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
120 |         let request = try await urlRequest(for: target)
121 |         self.plugins?.forEach { $0.handle(request: request) }
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/Arachne/ArachneProvider.swift:119:98: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 |     ///   ``ARError/unexpectedMimeType(mimeType:response:responseContent:)``
118 |     ///   if the response mime type doesn't match ``ArachneService/expectedMimeType-4w7gr``.
119 |     public nonisolated func data(_ target: T, session: URLSession? = nil) async throws -> (Data, URLResponse) {
    |                                                                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
120 |         let request = try await urlRequest(for: target)
121 |         self.plugins?.forEach { $0.handle(request: request) }
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/Arachne/ArachneProvider.swift:171:47: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
169 |     public nonisolated func download(_ target: T,
170 |                                      timeoutInterval: Double? = nil,
171 |                                      session: URLSession? = nil) async throws -> (URL, URLResponse) {
    |                                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
172 |         return try await download(target, session: session)
173 |     }
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/Arachne/ArachneProvider.swift:171:88: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
169 |     public nonisolated func download(_ target: T,
170 |                                      timeoutInterval: Double? = nil,
171 |                                      session: URLSession? = nil) async throws -> (URL, URLResponse) {
    |                                                                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
172 |         return try await download(target, session: session)
173 |     }
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/Arachne/ArachneProvider.swift:192:60: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 |     ///   if the response mime type doesn't match ``ArachneService/expectedMimeType-4w7gr``.
191 |     ///   If the download can be resumed, there will be data in the error's ``Error.downloadResumeData``.
192 |     public nonisolated func download(_ target: T, session: URLSession? = nil) async throws -> (URL, URLResponse) {
    |                                                            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
193 |         let request = try await urlRequest(for: target)
194 |         self.plugins?.forEach { $0.handle(request: request) }
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/Arachne/ArachneProvider.swift:192:101: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 |     ///   if the response mime type doesn't match ``ArachneService/expectedMimeType-4w7gr``.
191 |     ///   If the download can be resumed, there will be data in the error's ``Error.downloadResumeData``.
192 |     public nonisolated func download(_ target: T, session: URLSession? = nil) async throws -> (URL, URLResponse) {
    |                                                                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
193 |         let request = try await urlRequest(for: target)
194 |         self.plugins?.forEach { $0.handle(request: request) }
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/Arachne/ArachneProvider.swift:251:60: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
249 |     ///   If the download can be resumed, there will be data in the error's ``Error.downloadResumeData``.
250 |     public nonisolated func download(_ target: T,
251 |                                      sessionConfiguration: URLSessionConfiguration? = nil,
    |                                                            `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
252 |                                      didWriteData: @escaping @Sendable (Int64, Int64, Int64) -> Void,
253 |                                      didCompleteTask: @escaping @Sendable (URL, URLResponse) -> Void,
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/Arachne/ArachneProvider.swift:253:81: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
251 |                                      sessionConfiguration: URLSessionConfiguration? = nil,
252 |                                      didWriteData: @escaping @Sendable (Int64, Int64, Int64) -> Void,
253 |                                      didCompleteTask: @escaping @Sendable (URL, URLResponse) -> Void,
    |                                                                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
254 |                                      didFailTask: @escaping @Sendable (Error) -> Void) async throws -> URLSessionDownloadTask {
255 |         let request = try await urlRequest(for: target)
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/Arachne/ArachneProvider.swift:254:104: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
252 |                                      didWriteData: @escaping @Sendable (Int64, Int64, Int64) -> Void,
253 |                                      didCompleteTask: @escaping @Sendable (URL, URLResponse) -> Void,
254 |                                      didFailTask: @escaping @Sendable (Error) -> Void) async throws -> URLSessionDownloadTask {
    |                                                                                                        `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
255 |         let request = try await urlRequest(for: target)
256 |         self.plugins?.forEach { $0.handle(request: request) }
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/Arachne/ArachneProvider.swift:305:60: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
303 |     public nonisolated func download(_ target: T,
304 |                                      withResumeData data: Data,
305 |                                      sessionConfiguration: URLSessionConfiguration? = nil,
    |                                                            `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
306 |                                      didResumeDownload: @escaping @Sendable (Int64, Int64) -> Void,
307 |                                      didWriteData: @escaping @Sendable (Int64, Int64, Int64) -> Void,
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/Arachne/ArachneProvider.swift:308:81: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
306 |                                      didResumeDownload: @escaping @Sendable (Int64, Int64) -> Void,
307 |                                      didWriteData: @escaping @Sendable (Int64, Int64, Int64) -> Void,
308 |                                      didCompleteTask: @escaping @Sendable (URL, URLResponse) -> Void,
    |                                                                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
309 |                                      didFailTask: @escaping @Sendable (Error) -> Void) async throws -> URLSessionDownloadTask {
310 |         let request = try await urlRequest(for: target)
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/Arachne/ArachneProvider.swift:309:104: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
307 |                                      didWriteData: @escaping @Sendable (Int64, Int64, Int64) -> Void,
308 |                                      didCompleteTask: @escaping @Sendable (URL, URLResponse) -> Void,
309 |                                      didFailTask: @escaping @Sendable (Error) -> Void) async throws -> URLSessionDownloadTask {
    |                                                                                                        `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
310 |         let request = try await urlRequest(for: target)
311 |         let delegate = ArachneDownloadDelegate(
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/Arachne/ArachneProvider.swift:341:58: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
339 |     ///   - bodyData: The body data for the request.
340 |     /// - Returns: An asynchronously-delivered tuple that contains any data returned by the server as a `Data` instance, and a `URLResponse`.
341 |     public nonisolated func upload(_ target: T, session: URLSession? = nil, from bodyData: Data) async throws -> (Data, URLResponse) {
    |                                                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
342 |         let request = try await urlRequest(for: target)
343 |         plugins?.forEach { $0.handle(request: request) }
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/Arachne/ArachneProvider.swift:341:121: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
339 |     ///   - bodyData: The body data for the request.
340 |     /// - Returns: An asynchronously-delivered tuple that contains any data returned by the server as a `Data` instance, and a `URLResponse`.
341 |     public nonisolated func upload(_ target: T, session: URLSession? = nil, from bodyData: Data) async throws -> (Data, URLResponse) {
    |                                                                                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
342 |         let request = try await urlRequest(for: target)
343 |         plugins?.forEach { $0.handle(request: request) }
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/Arachne/ArachneProvider.swift:370:58: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
368 |     ///   - fileURL: A file URL containing the data to upload.
369 |     /// - Returns: An asynchronously-delivered tuple that contains any data returned by the server as a `Data` instance, and a `URLResponse`.
370 |     public nonisolated func upload(_ target: T, session: URLSession? = nil, fromFile fileURL: URL) async throws -> (Data, URLResponse) {
    |                                                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
371 |         let request = try await urlRequest(for: target)
372 |         plugins?.forEach { $0.handle(request: request) }
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/Arachne/ArachneProvider.swift:370:123: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
368 |     ///   - fileURL: A file URL containing the data to upload.
369 |     /// - Returns: An asynchronously-delivered tuple that contains any data returned by the server as a `Data` instance, and a `URLResponse`.
370 |     public nonisolated func upload(_ target: T, session: URLSession? = nil, fromFile fileURL: URL) async throws -> (Data, URLResponse) {
    |                                                                                                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
371 |         let request = try await urlRequest(for: target)
372 |         plugins?.forEach { $0.handle(request: request) }
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/Arachne/ArachneProvider.swift:405:95: error: cannot find type 'URLRequest' in scope
403 |     /// - Throws: `URLError` if any of the request components are invalid.
404 |     @available(*, deprecated, message: "Use ArachneService.urlRequest() instead, timeoutInterval is now defined in ArachneService and the value passed as input to this method is ignored")
405 |     public nonisolated func buildRequest(target: T, timeoutInterval: Double? = nil) throws -> URLRequest {
    |                                                                                               `- error: cannot find type 'URLRequest' in scope
406 |         return try target.urlRequest()
407 |     }
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:417:109: error: cannot find type 'URLRequest' in scope
415 |     /// - Throws: `URLError` if any of the request components are invalid or the error thrown from the `requestModifier` you set using ``with(requestModifier:)``.
416 |     @available(*, deprecated, renamed: "finalRequest(target:)", message: "Use finalRequest(target:) instead, timeoutInterval is now defined in ArachneService and the value passed as input to this method is ignored")
417 |     public nonisolated func buildCompleteRequest(target: T, timeoutInterval: Double? = nil) async throws -> URLRequest {
    |                                                                                                             `- error: cannot find type 'URLRequest' in scope
418 |         return try await urlRequest(for: target)
419 |     }
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:426:71: error: cannot find type 'URLRequest' in scope
424 |     /// - Returns: The built `URLRequest`.
425 |     /// - Throws: `URLError` if any of the request components are invalid or the error thrown from the `requestModifier` you set using ``with(requestModifier:)``.
426 |     public nonisolated func urlRequest(for target: T) async throws -> URLRequest {
    |                                                                       `- error: cannot find type 'URLRequest' in scope
427 |         var request = try target.urlRequest()
428 |         try await modify(request: &request, target: target)
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:434:52: error: cannot find type 'URLRequest' in scope
432 |     // MARK: - Internal methods
433 |
434 |     private nonisolated func modify(request: inout URLRequest, target: T) async throws {
    |                                                    `- error: cannot find type 'URLRequest' in scope
435 |         if let requestModifier = requestModifier {
436 |             try await requestModifier(target, &request)
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:440:110: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
438 |     }
439 |
440 |     private nonisolated func handleResponse<DataType>(target: T, data: DataType, output: AROutput, response: URLResponse) throws -> (DataType, URLResponse) {
    |                                                                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
441 |         guard let httpResponse = response as? HTTPURLResponse,
442 |               target.validCodes.contains(httpResponse.statusCode) else {
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/Arachne/ArachneProvider.swift:440:144: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
438 |     }
439 |
440 |     private nonisolated func handleResponse<DataType>(target: T, data: DataType, output: AROutput, response: URLResponse) throws -> (DataType, URLResponse) {
    |                                                                                                                                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
441 |         guard let httpResponse = response as? HTTPURLResponse,
442 |               target.validCodes.contains(httpResponse.statusCode) else {
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/Arachne/ArachneProvider.swift:454:69: error: cannot find type 'URLRequest' in scope
452 |     }
453 |
454 |     private nonisolated func handleAndReturn(error: Error, request: URLRequest) -> Error {
    |                                                                     `- error: cannot find type 'URLRequest' in scope
455 |         let output = extractOutput(from: error)
456 |         plugins?.forEach { $0.handle(error: error, request: request, output: output) }
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:15:17: error: stored property 'urlSession' of 'Sendable'-conforming generic struct 'ArachneProvider' has non-Sendable type 'URLSession' (aka 'AnyObject')
 13 | /// Use ``ArachneProvider`` to make requests to a specific ``ArachneService``.
 14 | public struct ArachneProvider<T>: Sendable where T: ArachneService {
 15 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming generic struct 'ArachneProvider' has non-Sendable type 'URLSession' (aka 'AnyObject')
 16 |     private let requestModifier: (@Sendable (T, inout URLRequest) async throws -> Void)?
 17 |     private let plugins: [ArachnePlugin]?
/host/spi-builder-workspace/Sources/Arachne/ArachneService.swift:65:42: error: cannot find type 'URLRequest' in scope
63 |     /// - Throws: `URLError` if any of the `URL` components are invalid.
64 |     /// > Tip: The output request is not modified using the `requestModifier` you set using ``ArachneProvider/with(requestModifier:)``, you may want to use ``ArachneProvider/urlRequest(for:)``.
65 |     internal func urlRequest() throws -> URLRequest {
   |                                          `- error: cannot find type 'URLRequest' in scope
66 |         return composedRequest(for: self, url: try url(), timeoutInterval: timeoutInterval)
67 |     }
/host/spi-builder-workspace/Sources/Arachne/Download/ArachneDownloadDelegate.swift:14:48: error: cannot find type 'URLSessionDownloadDelegate' in scope
12 | import Foundation
13 |
14 | final class ArachneDownloadDelegate: NSObject, URLSessionDownloadDelegate, URLSessionTaskDelegate {
   |                                                `- error: cannot find type 'URLSessionDownloadDelegate' in scope
15 |     private let didResumeDownload: (@Sendable (Int64, Int64) -> Void)?
16 |     private let didWriteData: @Sendable (Int64, Int64, Int64) -> Void
/host/spi-builder-workspace/Sources/Arachne/Download/ArachneDownloadDelegate.swift:14:76: error: cannot find type 'URLSessionTaskDelegate' in scope
12 | import Foundation
13 |
14 | final class ArachneDownloadDelegate: NSObject, URLSessionDownloadDelegate, URLSessionTaskDelegate {
   |                                                                            `- error: cannot find type 'URLSessionTaskDelegate' in scope
15 |     private let didResumeDownload: (@Sendable (Int64, Int64) -> Void)?
16 |     private let didWriteData: @Sendable (Int64, Int64, Int64) -> Void
/host/spi-builder-workspace/Sources/Arachne/Download/ArachneDownloadDelegate.swift:17:50: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     private let didResumeDownload: (@Sendable (Int64, Int64) -> Void)?
16 |     private let didWriteData: @Sendable (Int64, Int64, Int64) -> Void
17 |     private let didCompleteTask: @Sendable (URL, URLResponse?) -> Void
   |                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |     private let didFailTask: @Sendable (Error) -> Void
19 |
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/Arachne/Download/ArachneDownloadDelegate.swift:25:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |     init(didResumeDownload: (@Sendable (Int64, Int64) -> Void)?,
24 |          didWriteData: @escaping @Sendable (Int64, Int64, Int64) -> Void,
25 |          didCompleteTask: @escaping @Sendable (URL, URLResponse?) -> Void,
   |                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |          didFailTask: @escaping @Sendable (Error) -> Void) {
27 |         self.didResumeDownload = didResumeDownload
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/Arachne/Download/ArachneDownloadDelegate.swift:35:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |     // MARK: - URLSessionDownloadDelegate
34 |
35 |     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.
36 |         do {
37 |             let tempDestination = try FileManager.default
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/Arachne/Download/ArachneDownloadDelegate.swift:35:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |     // MARK: - URLSessionDownloadDelegate
34 |
35 |     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.
36 |         do {
37 |             let tempDestination = try FileManager.default
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/Arachne/Download/ArachneDownloadDelegate.swift:50:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |     }
49 |
50 |     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.
51 |         didResumeDownload?(fileOffset, expectedTotalBytes)
52 |     }
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/Arachne/Download/ArachneDownloadDelegate.swift:50:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |     }
49 |
50 |     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.
51 |         didResumeDownload?(fileOffset, expectedTotalBytes)
52 |     }
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/Arachne/Download/ArachneDownloadDelegate.swift:54:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 |     }
53 |
54 |     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.
55 |         didWriteData(bytesWritten, totalBytesWritten, totalBytesExpectedToWrite)
56 |     }
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/Arachne/Download/ArachneDownloadDelegate.swift:54:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 |     }
53 |
54 |     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.
55 |         didWriteData(bytesWritten, totalBytesWritten, totalBytesExpectedToWrite)
56 |     }
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/Arachne/Download/ArachneDownloadDelegate.swift:60:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |     // MARK: - URLSessionTaskDelegate
59 |
60 |     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.
61 |         if let anyError = error ?? fileWriteError {
62 |             didFailTask(anyError)
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/Arachne/Download/ArachneDownloadDelegate.swift:60:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |     // MARK: - URLSessionTaskDelegate
59 |
60 |     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.
61 |         if let anyError = error ?? fileWriteError {
62 |             didFailTask(anyError)
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/Arachne/Error/ARError.swift:21:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |     ///  - response: The optional response returned from the server
20 |     ///  - responseContent: The response content, conveniently wrapped in an enum with the possible data types
21 |     case unacceptableStatusCode(statusCode: Int?, response: HTTPURLResponse?, responseContent: AROutput)
   |                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 |     /// Error thrown if the response mime type does not match the expected one.
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/Arachne/Error/ARError.swift:29:58: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |     ///  - response: The response returned from the server
28 |     ///  - responseContent: The response content, conveniently wrapped in an enum with the possible data types
29 |     case unexpectedMimeType(mimeType: String?, response: HTTPURLResponse, responseContent: AROutput)
   |                                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |
31 |     /// Error thrown if a download task returns with no error but either one of URL or URLResponse is `nil`.
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/Arachne/Error/ARError.swift:38:28: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |     ///  - url: The oprional downloaded file URL
37 |     ///  - urlResponse:  The optional response returned from the server
38 |     case missingData(URL?, URLResponse?)
   |                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | }
40 |
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/Arachne/Error/ARError.swift:21:10: error: associated value 'unacceptableStatusCode(statusCode:response:responseContent:)' of 'Sendable'-conforming enum 'ARError' has non-Sendable type 'HTTPURLResponse' (aka 'AnyObject')
19 |     ///  - response: The optional response returned from the server
20 |     ///  - responseContent: The response content, conveniently wrapped in an enum with the possible data types
21 |     case unacceptableStatusCode(statusCode: Int?, response: HTTPURLResponse?, responseContent: AROutput)
   |          `- error: associated value 'unacceptableStatusCode(statusCode:response:responseContent:)' of 'Sendable'-conforming enum 'ARError' has non-Sendable type 'HTTPURLResponse' (aka 'AnyObject')
22 |
23 |     /// Error thrown if the response mime type does not match the expected one.
/host/spi-builder-workspace/Sources/Arachne/Error/ARError.swift:29:10: error: associated value 'unexpectedMimeType(mimeType:response:responseContent:)' of 'Sendable'-conforming enum 'ARError' has non-Sendable type 'HTTPURLResponse' (aka 'AnyObject')
27 |     ///  - response: The response returned from the server
28 |     ///  - responseContent: The response content, conveniently wrapped in an enum with the possible data types
29 |     case unexpectedMimeType(mimeType: String?, response: HTTPURLResponse, responseContent: AROutput)
   |          `- error: associated value 'unexpectedMimeType(mimeType:response:responseContent:)' of 'Sendable'-conforming enum 'ARError' has non-Sendable type 'HTTPURLResponse' (aka 'AnyObject')
30 |
31 |     /// Error thrown if a download task returns with no error but either one of URL or URLResponse is `nil`.
/host/spi-builder-workspace/Sources/Arachne/Error/ARError.swift:38:10: error: associated value 'missingData' of 'Sendable'-conforming enum 'ARError' has non-Sendable type 'URLResponse' (aka 'AnyObject')
36 |     ///  - url: The oprional downloaded file URL
37 |     ///  - urlResponse:  The optional response returned from the server
38 |     case missingData(URL?, URLResponse?)
   |          `- error: associated value 'missingData' of 'Sendable'-conforming enum 'ARError' has non-Sendable type 'URLResponse' (aka 'AnyObject')
39 | }
40 |
/host/spi-builder-workspace/Sources/Arachne/Extensions/URLRequest+Extension.swift:13:11: error: cannot find type 'URLRequest' in scope
11 | import Foundation
12 |
13 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
14 |     /// `URLRequest` reserved headers, as reported in the official documentation:
15 |     /// https://developer.apple.com/documentation/foundation/nsurlrequest#1776617
/host/spi-builder-workspace/Sources/Arachne/Plugins/ArachnePlugin.swift:23:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |     ///   - response: the `URLResponse`.
22 |     ///   - output: the output retrieved from the resource, conveniently wrapped in an enum with the possible data types
23 |     func handle(response: URLResponse, output: AROutput)
   |                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 |     /// This function gets called whenever an error occurs, immediately before it is thrown.
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/Arachne/Util/URLUtil.swift:36:88: error: cannot find type 'URLRequest' in scope
34 | nonisolated func composedRequest<T: ArachneService>(for target: T,
35 |                                                     url: URL,
36 |                                                     timeoutInterval: Double? = nil) -> URLRequest {
   |                                                                                        `- error: cannot find type 'URLRequest' in scope
37 |     var request = URLRequest(url: url)
38 |     request.httpMethod = target.method.rawValue
[5/12] Compiling Arachne HttpMethod.swift
[6/12] Compiling Arachne ArachnePlugin.swift
/host/spi-builder-workspace/Sources/Arachne/Plugins/ArachnePlugin.swift:17:26: error: cannot find type 'URLRequest' in scope
15 |     /// This function gets called immediately before the request is sent.
16 |     /// - Parameter request: the final request before it's sent.
17 |     func handle(request: URLRequest)
   |                          `- error: cannot find type 'URLRequest' in scope
18 |
19 |     /// This function gets called immediately before a response is returned.
/host/spi-builder-workspace/Sources/Arachne/Plugins/ArachnePlugin.swift:23:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |     ///   - response: the `URLResponse`.
22 |     ///   - output: the output retrieved from the resource, conveniently wrapped in an enum with the possible data types
23 |     func handle(response: URLResponse, output: AROutput)
   |                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 |     /// This function gets called whenever an error occurs, immediately before it is thrown.
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/Arachne/Plugins/ArachnePlugin.swift:30:44: error: cannot find type 'URLRequest' in scope
28 |     ///   - request: the `URLRequest` that generated the error.
29 |     ///   - output: the output, if any, retrieved from the resource, conveniently wrapped in an enum with the possible data types
30 |     func handle(error: any Error, request: URLRequest, output: AROutput?)
   |                                            `- error: cannot find type 'URLRequest' in scope
31 | }
32 |
[7/12] Compiling Arachne AROutput.swift
[8/12] Compiling Arachne URLRequest+Extension.swift
/host/spi-builder-workspace/Sources/Arachne/Extensions/URLRequest+Extension.swift:13:11: error: cannot find type 'URLRequest' in scope
11 | import Foundation
12 |
13 | extension URLRequest {
   |           `- error: cannot find type 'URLRequest' in scope
14 |     /// `URLRequest` reserved headers, as reported in the official documentation:
15 |     /// https://developer.apple.com/documentation/foundation/nsurlrequest#1776617
[9/12] Compiling Arachne ARError.swift
/host/spi-builder-workspace/Sources/Arachne/Error/ARError.swift:21:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |     ///  - response: The optional response returned from the server
20 |     ///  - responseContent: The response content, conveniently wrapped in an enum with the possible data types
21 |     case unacceptableStatusCode(statusCode: Int?, response: HTTPURLResponse?, responseContent: AROutput)
   |                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 |     /// Error thrown if the response mime type does not match the expected one.
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/Arachne/Error/ARError.swift:29:58: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |     ///  - response: The response returned from the server
28 |     ///  - responseContent: The response content, conveniently wrapped in an enum with the possible data types
29 |     case unexpectedMimeType(mimeType: String?, response: HTTPURLResponse, responseContent: AROutput)
   |                                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |
31 |     /// Error thrown if a download task returns with no error but either one of URL or URLResponse is `nil`.
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/Arachne/Error/ARError.swift:38:28: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |     ///  - url: The oprional downloaded file URL
37 |     ///  - urlResponse:  The optional response returned from the server
38 |     case missingData(URL?, URLResponse?)
   |                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | }
40 |
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/Arachne/Error/ARError.swift:21:10: error: associated value 'unacceptableStatusCode(statusCode:response:responseContent:)' of 'Sendable'-conforming enum 'ARError' has non-Sendable type 'HTTPURLResponse' (aka 'AnyObject')
19 |     ///  - response: The optional response returned from the server
20 |     ///  - responseContent: The response content, conveniently wrapped in an enum with the possible data types
21 |     case unacceptableStatusCode(statusCode: Int?, response: HTTPURLResponse?, responseContent: AROutput)
   |          `- error: associated value 'unacceptableStatusCode(statusCode:response:responseContent:)' of 'Sendable'-conforming enum 'ARError' has non-Sendable type 'HTTPURLResponse' (aka 'AnyObject')
22 |
23 |     /// Error thrown if the response mime type does not match the expected one.
/host/spi-builder-workspace/Sources/Arachne/Error/ARError.swift:29:10: error: associated value 'unexpectedMimeType(mimeType:response:responseContent:)' of 'Sendable'-conforming enum 'ARError' has non-Sendable type 'HTTPURLResponse' (aka 'AnyObject')
27 |     ///  - response: The response returned from the server
28 |     ///  - responseContent: The response content, conveniently wrapped in an enum with the possible data types
29 |     case unexpectedMimeType(mimeType: String?, response: HTTPURLResponse, responseContent: AROutput)
   |          `- error: associated value 'unexpectedMimeType(mimeType:response:responseContent:)' of 'Sendable'-conforming enum 'ARError' has non-Sendable type 'HTTPURLResponse' (aka 'AnyObject')
30 |
31 |     /// Error thrown if a download task returns with no error but either one of URL or URLResponse is `nil`.
/host/spi-builder-workspace/Sources/Arachne/Error/ARError.swift:38:10: error: associated value 'missingData' of 'Sendable'-conforming enum 'ARError' has non-Sendable type 'URLResponse' (aka 'AnyObject')
36 |     ///  - url: The oprional downloaded file URL
37 |     ///  - urlResponse:  The optional response returned from the server
38 |     case missingData(URL?, URLResponse?)
   |          `- error: associated value 'missingData' of 'Sendable'-conforming enum 'ARError' has non-Sendable type 'URLResponse' (aka 'AnyObject')
39 | }
40 |
/host/spi-builder-workspace/Sources/Arachne/Error/ARError.swift:94:36: error: cannot find 'NSURLSessionDownloadTaskResumeData' in scope
92 |     /// Returns data useful to resume a failed download, if any
93 |     var downloadResumeData: Data? {
94 |         (self as NSError).userInfo[NSURLSessionDownloadTaskResumeData] as? Data
   |                                    `- error: cannot find 'NSURLSessionDownloadTaskResumeData' in scope
95 |     }
96 | }
[10/12] Compiling Arachne ArachneProvider.swift
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:15:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 | /// Use ``ArachneProvider`` to make requests to a specific ``ArachneService``.
 14 | public struct ArachneProvider<T>: Sendable where T: ArachneService {
 15 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |     private let requestModifier: (@Sendable (T, inout URLRequest) async throws -> Void)?
 17 |     private let plugins: [ArachnePlugin]?
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/Arachne/ArachneProvider.swift:16:55: error: cannot find type 'URLRequest' in scope
 14 | public struct ArachneProvider<T>: Sendable where T: ArachneService {
 15 |     private let urlSession: URLSession
 16 |     private let requestModifier: (@Sendable (T, inout URLRequest) async throws -> Void)?
    |                                                       `- error: cannot find type 'URLRequest' in scope
 17 |     private let plugins: [ArachnePlugin]?
 18 |
/host/spi-builder-workspace/Sources/Arachne/Plugins/ArachnePlugin.swift:17:26: error: cannot find type 'URLRequest' in scope
15 |     /// This function gets called immediately before the request is sent.
16 |     /// - Parameter request: the final request before it's sent.
17 |     func handle(request: URLRequest)
   |                          `- error: cannot find type 'URLRequest' in scope
18 |
19 |     /// This function gets called immediately before a response is returned.
/host/spi-builder-workspace/Sources/Arachne/Plugins/ArachnePlugin.swift:30:44: error: cannot find type 'URLRequest' in scope
28 |     ///   - request: the `URLRequest` that generated the error.
29 |     ///   - output: the output, if any, retrieved from the resource, conveniently wrapped in an enum with the possible data types
30 |     func handle(error: any Error, request: URLRequest, output: AROutput?)
   |                                            `- error: cannot find type 'URLRequest' in scope
31 | }
32 |
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:24:80: error: cannot find type 'URLRequest' in scope
 22 |     ///   - requestModifier: An optional async throwing function that allows to modify the `URLRequest`, based on the given `T` endpoint, before it's submitted.
 23 |     ///   - plugins: An optional array of ``ArachnePlugin``s.
 24 |     private init(urlSession: URLSession, requestModifier: (@Sendable (T, inout URLRequest) async throws -> Void)?, plugins: [ArachnePlugin]?) {
    |                                                                                `- error: cannot find type 'URLRequest' in scope
 25 |         self.urlSession = urlSession
 26 |         self.requestModifier = requestModifier
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:24:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |     ///   - requestModifier: An optional async throwing function that allows to modify the `URLRequest`, based on the given `T` endpoint, before it's submitted.
 23 |     ///   - plugins: An optional array of ``ArachnePlugin``s.
 24 |     private init(urlSession: URLSession, requestModifier: (@Sendable (T, inout URLRequest) async throws -> Void)?, plugins: [ArachnePlugin]?) {
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |         self.urlSession = urlSession
 26 |         self.requestModifier = requestModifier
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/Arachne/ArachneProvider.swift:33:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     /// After initializing an ``ArachneProvider`` you can add plugins and a request modifier to it by chaining calls to ``with(plugins:)`` and ``with(requestModifier:)``.
 32 |     /// - Parameter urlSession: Your `URLSession`. It uses the `shared` instance if none is passed.
 33 |     public init(urlSession: URLSession = .shared) {
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |         self.urlSession = urlSession
 35 |         self.plugins = 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/Arachne/ArachneProvider.swift:33:43: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 31 |     /// After initializing an ``ArachneProvider`` you can add plugins and a request modifier to it by chaining calls to ``with(plugins:)`` and ``with(requestModifier:)``.
 32 |     /// - Parameter urlSession: Your `URLSession`. It uses the `shared` instance if none is passed.
 33 |     public init(urlSession: URLSession = .shared) {
    |                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 34 |         self.urlSession = urlSession
 35 |         self.plugins = nil
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:62:69: error: cannot find type 'URLRequest' in scope
 60 |     /// - Parameter requestModifier: An optional async throwing function that allows to modify the `URLRequest`, based on the given `T` endpoint, before it's submitted.
 61 |     /// - Returns: The same ``ArachneProvider`` with the given `requestModifier`.
 62 |     public func with(requestModifier: @escaping @Sendable (T, inout URLRequest) async throws -> Void) -> ArachneProvider<T> {
    |                                                                     `- error: cannot find type 'URLRequest' in scope
 63 |         return ArachneProvider(urlSession: urlSession, requestModifier: requestModifier, plugins: plugins)
 64 |     }
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:76:104: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 74 |     /// - Returns: An asynchronously-delivered tuple that contains a `URLSession.AsyncBytes` sequence to iterate over, and a `URLResponse`.
 75 |     @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
 76 |     public nonisolated func bytes(_ target: T, session: URLSession? = nil) async throws -> (URLSession.AsyncBytes, URLResponse) {
    |                                                                                                        `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 77 |         let request = try await urlRequest(for: target)
 78 |         self.plugins?.forEach { $0.handle(request: request) }
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:76:57: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 74 |     /// - Returns: An asynchronously-delivered tuple that contains a `URLSession.AsyncBytes` sequence to iterate over, and a `URLResponse`.
 75 |     @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
 76 |     public nonisolated func bytes(_ target: T, session: URLSession? = nil) async throws -> (URLSession.AsyncBytes, URLResponse) {
    |                                                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 77 |         let request = try await urlRequest(for: target)
 78 |         self.plugins?.forEach { $0.handle(request: request) }
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/Arachne/ArachneProvider.swift:105:43: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 |     public nonisolated func data(_ target: T,
104 |                                  timeoutInterval: Double? = nil,
105 |                                  session: URLSession? = nil) async throws -> (Data, URLResponse) {
    |                                           `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 |         return try await data(target, session: session)
107 |     }
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/Arachne/ArachneProvider.swift:105:85: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 |     public nonisolated func data(_ target: T,
104 |                                  timeoutInterval: Double? = nil,
105 |                                  session: URLSession? = nil) async throws -> (Data, URLResponse) {
    |                                                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 |         return try await data(target, session: session)
107 |     }
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/Arachne/ArachneProvider.swift:119:56: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 |     ///   ``ARError/unexpectedMimeType(mimeType:response:responseContent:)``
118 |     ///   if the response mime type doesn't match ``ArachneService/expectedMimeType-4w7gr``.
119 |     public nonisolated func data(_ target: T, session: URLSession? = nil) async throws -> (Data, URLResponse) {
    |                                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
120 |         let request = try await urlRequest(for: target)
121 |         self.plugins?.forEach { $0.handle(request: request) }
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/Arachne/ArachneProvider.swift:119:98: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 |     ///   ``ARError/unexpectedMimeType(mimeType:response:responseContent:)``
118 |     ///   if the response mime type doesn't match ``ArachneService/expectedMimeType-4w7gr``.
119 |     public nonisolated func data(_ target: T, session: URLSession? = nil) async throws -> (Data, URLResponse) {
    |                                                                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
120 |         let request = try await urlRequest(for: target)
121 |         self.plugins?.forEach { $0.handle(request: request) }
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/Arachne/ArachneProvider.swift:171:47: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
169 |     public nonisolated func download(_ target: T,
170 |                                      timeoutInterval: Double? = nil,
171 |                                      session: URLSession? = nil) async throws -> (URL, URLResponse) {
    |                                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
172 |         return try await download(target, session: session)
173 |     }
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/Arachne/ArachneProvider.swift:171:88: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
169 |     public nonisolated func download(_ target: T,
170 |                                      timeoutInterval: Double? = nil,
171 |                                      session: URLSession? = nil) async throws -> (URL, URLResponse) {
    |                                                                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
172 |         return try await download(target, session: session)
173 |     }
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/Arachne/ArachneProvider.swift:192:60: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 |     ///   if the response mime type doesn't match ``ArachneService/expectedMimeType-4w7gr``.
191 |     ///   If the download can be resumed, there will be data in the error's ``Error.downloadResumeData``.
192 |     public nonisolated func download(_ target: T, session: URLSession? = nil) async throws -> (URL, URLResponse) {
    |                                                            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
193 |         let request = try await urlRequest(for: target)
194 |         self.plugins?.forEach { $0.handle(request: request) }
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/Arachne/ArachneProvider.swift:192:101: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 |     ///   if the response mime type doesn't match ``ArachneService/expectedMimeType-4w7gr``.
191 |     ///   If the download can be resumed, there will be data in the error's ``Error.downloadResumeData``.
192 |     public nonisolated func download(_ target: T, session: URLSession? = nil) async throws -> (URL, URLResponse) {
    |                                                                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
193 |         let request = try await urlRequest(for: target)
194 |         self.plugins?.forEach { $0.handle(request: request) }
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/Arachne/ArachneProvider.swift:251:60: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
249 |     ///   If the download can be resumed, there will be data in the error's ``Error.downloadResumeData``.
250 |     public nonisolated func download(_ target: T,
251 |                                      sessionConfiguration: URLSessionConfiguration? = nil,
    |                                                            `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
252 |                                      didWriteData: @escaping @Sendable (Int64, Int64, Int64) -> Void,
253 |                                      didCompleteTask: @escaping @Sendable (URL, URLResponse) -> Void,
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/Arachne/ArachneProvider.swift:253:81: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
251 |                                      sessionConfiguration: URLSessionConfiguration? = nil,
252 |                                      didWriteData: @escaping @Sendable (Int64, Int64, Int64) -> Void,
253 |                                      didCompleteTask: @escaping @Sendable (URL, URLResponse) -> Void,
    |                                                                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
254 |                                      didFailTask: @escaping @Sendable (Error) -> Void) async throws -> URLSessionDownloadTask {
255 |         let request = try await urlRequest(for: target)
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/Arachne/ArachneProvider.swift:254:104: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
252 |                                      didWriteData: @escaping @Sendable (Int64, Int64, Int64) -> Void,
253 |                                      didCompleteTask: @escaping @Sendable (URL, URLResponse) -> Void,
254 |                                      didFailTask: @escaping @Sendable (Error) -> Void) async throws -> URLSessionDownloadTask {
    |                                                                                                        `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
255 |         let request = try await urlRequest(for: target)
256 |         self.plugins?.forEach { $0.handle(request: request) }
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/Arachne/ArachneProvider.swift:305:60: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
303 |     public nonisolated func download(_ target: T,
304 |                                      withResumeData data: Data,
305 |                                      sessionConfiguration: URLSessionConfiguration? = nil,
    |                                                            `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
306 |                                      didResumeDownload: @escaping @Sendable (Int64, Int64) -> Void,
307 |                                      didWriteData: @escaping @Sendable (Int64, Int64, Int64) -> Void,
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/Arachne/ArachneProvider.swift:308:81: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
306 |                                      didResumeDownload: @escaping @Sendable (Int64, Int64) -> Void,
307 |                                      didWriteData: @escaping @Sendable (Int64, Int64, Int64) -> Void,
308 |                                      didCompleteTask: @escaping @Sendable (URL, URLResponse) -> Void,
    |                                                                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
309 |                                      didFailTask: @escaping @Sendable (Error) -> Void) async throws -> URLSessionDownloadTask {
310 |         let request = try await urlRequest(for: target)
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/Arachne/ArachneProvider.swift:309:104: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
307 |                                      didWriteData: @escaping @Sendable (Int64, Int64, Int64) -> Void,
308 |                                      didCompleteTask: @escaping @Sendable (URL, URLResponse) -> Void,
309 |                                      didFailTask: @escaping @Sendable (Error) -> Void) async throws -> URLSessionDownloadTask {
    |                                                                                                        `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
310 |         let request = try await urlRequest(for: target)
311 |         let delegate = ArachneDownloadDelegate(
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/Arachne/ArachneProvider.swift:341:58: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
339 |     ///   - bodyData: The body data for the request.
340 |     /// - Returns: An asynchronously-delivered tuple that contains any data returned by the server as a `Data` instance, and a `URLResponse`.
341 |     public nonisolated func upload(_ target: T, session: URLSession? = nil, from bodyData: Data) async throws -> (Data, URLResponse) {
    |                                                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
342 |         let request = try await urlRequest(for: target)
343 |         plugins?.forEach { $0.handle(request: request) }
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/Arachne/ArachneProvider.swift:341:121: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
339 |     ///   - bodyData: The body data for the request.
340 |     /// - Returns: An asynchronously-delivered tuple that contains any data returned by the server as a `Data` instance, and a `URLResponse`.
341 |     public nonisolated func upload(_ target: T, session: URLSession? = nil, from bodyData: Data) async throws -> (Data, URLResponse) {
    |                                                                                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
342 |         let request = try await urlRequest(for: target)
343 |         plugins?.forEach { $0.handle(request: request) }
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/Arachne/ArachneProvider.swift:370:58: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
368 |     ///   - fileURL: A file URL containing the data to upload.
369 |     /// - Returns: An asynchronously-delivered tuple that contains any data returned by the server as a `Data` instance, and a `URLResponse`.
370 |     public nonisolated func upload(_ target: T, session: URLSession? = nil, fromFile fileURL: URL) async throws -> (Data, URLResponse) {
    |                                                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
371 |         let request = try await urlRequest(for: target)
372 |         plugins?.forEach { $0.handle(request: request) }
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/Arachne/ArachneProvider.swift:370:123: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
368 |     ///   - fileURL: A file URL containing the data to upload.
369 |     /// - Returns: An asynchronously-delivered tuple that contains any data returned by the server as a `Data` instance, and a `URLResponse`.
370 |     public nonisolated func upload(_ target: T, session: URLSession? = nil, fromFile fileURL: URL) async throws -> (Data, URLResponse) {
    |                                                                                                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
371 |         let request = try await urlRequest(for: target)
372 |         plugins?.forEach { $0.handle(request: request) }
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/Arachne/ArachneProvider.swift:405:95: error: cannot find type 'URLRequest' in scope
403 |     /// - Throws: `URLError` if any of the request components are invalid.
404 |     @available(*, deprecated, message: "Use ArachneService.urlRequest() instead, timeoutInterval is now defined in ArachneService and the value passed as input to this method is ignored")
405 |     public nonisolated func buildRequest(target: T, timeoutInterval: Double? = nil) throws -> URLRequest {
    |                                                                                               `- error: cannot find type 'URLRequest' in scope
406 |         return try target.urlRequest()
407 |     }
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:417:109: error: cannot find type 'URLRequest' in scope
415 |     /// - Throws: `URLError` if any of the request components are invalid or the error thrown from the `requestModifier` you set using ``with(requestModifier:)``.
416 |     @available(*, deprecated, renamed: "finalRequest(target:)", message: "Use finalRequest(target:) instead, timeoutInterval is now defined in ArachneService and the value passed as input to this method is ignored")
417 |     public nonisolated func buildCompleteRequest(target: T, timeoutInterval: Double? = nil) async throws -> URLRequest {
    |                                                                                                             `- error: cannot find type 'URLRequest' in scope
418 |         return try await urlRequest(for: target)
419 |     }
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:426:71: error: cannot find type 'URLRequest' in scope
424 |     /// - Returns: The built `URLRequest`.
425 |     /// - Throws: `URLError` if any of the request components are invalid or the error thrown from the `requestModifier` you set using ``with(requestModifier:)``.
426 |     public nonisolated func urlRequest(for target: T) async throws -> URLRequest {
    |                                                                       `- error: cannot find type 'URLRequest' in scope
427 |         var request = try target.urlRequest()
428 |         try await modify(request: &request, target: target)
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:434:52: error: cannot find type 'URLRequest' in scope
432 |     // MARK: - Internal methods
433 |
434 |     private nonisolated func modify(request: inout URLRequest, target: T) async throws {
    |                                                    `- error: cannot find type 'URLRequest' in scope
435 |         if let requestModifier = requestModifier {
436 |             try await requestModifier(target, &request)
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:440:110: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
438 |     }
439 |
440 |     private nonisolated func handleResponse<DataType>(target: T, data: DataType, output: AROutput, response: URLResponse) throws -> (DataType, URLResponse) {
    |                                                                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
441 |         guard let httpResponse = response as? HTTPURLResponse,
442 |               target.validCodes.contains(httpResponse.statusCode) else {
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/Arachne/ArachneProvider.swift:440:144: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
438 |     }
439 |
440 |     private nonisolated func handleResponse<DataType>(target: T, data: DataType, output: AROutput, response: URLResponse) throws -> (DataType, URLResponse) {
    |                                                                                                                                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
441 |         guard let httpResponse = response as? HTTPURLResponse,
442 |               target.validCodes.contains(httpResponse.statusCode) else {
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/Arachne/ArachneProvider.swift:454:69: error: cannot find type 'URLRequest' in scope
452 |     }
453 |
454 |     private nonisolated func handleAndReturn(error: Error, request: URLRequest) -> Error {
    |                                                                     `- error: cannot find type 'URLRequest' in scope
455 |         let output = extractOutput(from: error)
456 |         plugins?.forEach { $0.handle(error: error, request: request, output: output) }
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:15:17: error: stored property 'urlSession' of 'Sendable'-conforming generic struct 'ArachneProvider' has non-Sendable type 'URLSession' (aka 'AnyObject')
 13 | /// Use ``ArachneProvider`` to make requests to a specific ``ArachneService``.
 14 | public struct ArachneProvider<T>: Sendable where T: ArachneService {
 15 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming generic struct 'ArachneProvider' has non-Sendable type 'URLSession' (aka 'AnyObject')
 16 |     private let requestModifier: (@Sendable (T, inout URLRequest) async throws -> Void)?
 17 |     private let plugins: [ArachnePlugin]?
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:43:31: error: extra arguments at positions #2, #3 in call
 31 |     /// After initializing an ``ArachneProvider`` you can add plugins and a request modifier to it by chaining calls to ``with(plugins:)`` and ``with(requestModifier:)``.
 32 |     /// - Parameter urlSession: Your `URLSession`. It uses the `shared` instance if none is passed.
 33 |     public init(urlSession: URLSession = .shared) {
    |            `- note: 'init(urlSession:)' declared here
 34 |         self.urlSession = urlSession
 35 |         self.plugins = nil
    :
 41 |     /// - Returns: The same ``ArachneProvider`` with the added `plugins`.
 42 |     public func with(plugins: [ArachnePlugin]) -> ArachneProvider<T> {
 43 |         return ArachneProvider(urlSession: urlSession, requestModifier: requestModifier, plugins: plugins)
    |                               `- error: extra arguments at positions #2, #3 in call
 44 |     }
 45 |
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:63:31: error: extra arguments at positions #2, #3 in call
 31 |     /// After initializing an ``ArachneProvider`` you can add plugins and a request modifier to it by chaining calls to ``with(plugins:)`` and ``with(requestModifier:)``.
 32 |     /// - Parameter urlSession: Your `URLSession`. It uses the `shared` instance if none is passed.
 33 |     public init(urlSession: URLSession = .shared) {
    |            `- note: 'init(urlSession:)' declared here
 34 |         self.urlSession = urlSession
 35 |         self.plugins = nil
    :
 61 |     /// - Returns: The same ``ArachneProvider`` with the given `requestModifier`.
 62 |     public func with(requestModifier: @escaping @Sendable (T, inout URLRequest) async throws -> Void) -> ArachneProvider<T> {
 63 |         return ArachneProvider(urlSession: urlSession, requestModifier: requestModifier, plugins: plugins)
    |                               `- error: extra arguments at positions #2, #3 in call
 64 |     }
 65 |
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:78:52: error: extra argument 'request' in call
 76 |     public nonisolated func bytes(_ target: T, session: URLSession? = nil) async throws -> (URLSession.AsyncBytes, URLResponse) {
 77 |         let request = try await urlRequest(for: target)
 78 |         self.plugins?.forEach { $0.handle(request: request) }
    |                                                    `- error: extra argument 'request' in call
 79 |         let currentSession = session ?? self.urlSession
 80 |         do {
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:78:42: error: missing arguments for parameters 'response', 'output' in call
 76 |     public nonisolated func bytes(_ target: T, session: URLSession? = nil) async throws -> (URLSession.AsyncBytes, URLResponse) {
 77 |         let request = try await urlRequest(for: target)
 78 |         self.plugins?.forEach { $0.handle(request: request) }
    |                                          `- error: missing arguments for parameters 'response', 'output' in call
 79 |         let currentSession = session ?? self.urlSession
 80 |         do {
/host/spi-builder-workspace/Sources/Arachne/Plugins/ArachnePlugin.swift:23:10: note: 'handle(response:output:)' declared here
21 |     ///   - response: the `URLResponse`.
22 |     ///   - output: the output retrieved from the resource, conveniently wrapped in an enum with the possible data types
23 |     func handle(response: URLResponse, output: AROutput)
   |          `- note: 'handle(response:output:)' declared here
24 |
25 |     /// This function gets called whenever an error occurs, immediately before it is thrown.
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:81:62: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
 79 |         let currentSession = session ?? self.urlSession
 80 |         do {
 81 |             let (bytes, response) = try await currentSession.bytes(for: request)
    |                                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
 82 |             return try handleResponse(target: target, data: bytes, output: .other(bytes), response: response)
 83 |         } catch {
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:121:52: error: extra argument 'request' in call
119 |     public nonisolated func data(_ target: T, session: URLSession? = nil) async throws -> (Data, URLResponse) {
120 |         let request = try await urlRequest(for: target)
121 |         self.plugins?.forEach { $0.handle(request: request) }
    |                                                    `- error: extra argument 'request' in call
122 |         let currentSession = session ?? self.urlSession
123 |         if #available(iOS 15, macOS 12, tvOS 15, watchOS 8, *) {
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:121:42: error: missing arguments for parameters 'response', 'output' in call
119 |     public nonisolated func data(_ target: T, session: URLSession? = nil) async throws -> (Data, URLResponse) {
120 |         let request = try await urlRequest(for: target)
121 |         self.plugins?.forEach { $0.handle(request: request) }
    |                                          `- error: missing arguments for parameters 'response', 'output' in call
122 |         let currentSession = session ?? self.urlSession
123 |         if #available(iOS 15, macOS 12, tvOS 15, watchOS 8, *) {
/host/spi-builder-workspace/Sources/Arachne/Plugins/ArachnePlugin.swift:23:10: note: 'handle(response:output:)' declared here
21 |     ///   - response: the `URLResponse`.
22 |     ///   - output: the output retrieved from the resource, conveniently wrapped in an enum with the possible data types
23 |     func handle(response: URLResponse, output: AROutput)
   |          `- note: 'handle(response:output:)' declared here
24 |
25 |     /// This function gets called whenever an error occurs, immediately before it is thrown.
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:125:65: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
123 |         if #available(iOS 15, macOS 12, tvOS 15, watchOS 8, *) {
124 |             do {
125 |                 let (data, response) = try await currentSession.data(for: request)
    |                                                                 `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
126 |                 return try handleResponse(target: target, data: data, output: .data(data), response: response)
127 |             } catch {
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:133:36: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
131 |             do {
132 |                 let (data, response) = try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<(Data, URLResponse), Error>) in
133 |                     currentSession.dataTask(with: request) { data, response, error in
    |                                    `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
134 |                         guard let data = data, let response = response, error == nil else {
135 |                             return continuation.resume(throwing: error!)
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:137:63: error: value of type '_' expected to be instance of class or class-constrained type
135 |                             return continuation.resume(throwing: error!)
136 |                         }
137 |                         continuation.resume(returning: (data, response))
    |                                                               `- error: value of type '_' expected to be instance of class or class-constrained type
138 |                     }.resume()
139 |                 }
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:194:52: error: extra argument 'request' in call
192 |     public nonisolated func download(_ target: T, session: URLSession? = nil) async throws -> (URL, URLResponse) {
193 |         let request = try await urlRequest(for: target)
194 |         self.plugins?.forEach { $0.handle(request: request) }
    |                                                    `- error: extra argument 'request' in call
195 |         let currentSession = session ?? self.urlSession
196 |         if #available(iOS 15, macOS 12, tvOS 15, watchOS 8, *) {
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:194:42: error: missing arguments for parameters 'response', 'output' in call
192 |     public nonisolated func download(_ target: T, session: URLSession? = nil) async throws -> (URL, URLResponse) {
193 |         let request = try await urlRequest(for: target)
194 |         self.plugins?.forEach { $0.handle(request: request) }
    |                                          `- error: missing arguments for parameters 'response', 'output' in call
195 |         let currentSession = session ?? self.urlSession
196 |         if #available(iOS 15, macOS 12, tvOS 15, watchOS 8, *) {
/host/spi-builder-workspace/Sources/Arachne/Plugins/ArachnePlugin.swift:23:10: note: 'handle(response:output:)' declared here
21 |     ///   - response: the `URLResponse`.
22 |     ///   - output: the output retrieved from the resource, conveniently wrapped in an enum with the possible data types
23 |     func handle(response: URLResponse, output: AROutput)
   |          `- note: 'handle(response:output:)' declared here
24 |
25 |     /// This function gets called whenever an error occurs, immediately before it is thrown.
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:198:64: error: value of type 'URLSession' (aka 'AnyObject') has no member 'download'
196 |         if #available(iOS 15, macOS 12, tvOS 15, watchOS 8, *) {
197 |             do {
198 |                 let (url, response) = try await currentSession.download(for: request)
    |                                                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'download'
199 |                 return try handleResponse(target: target, data: url, output: .url(url), response: response)
200 |             } catch {
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:206:36: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
204 |             do {
205 |                 let (url, response) = try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<(URL, URLResponse), Error>) in
206 |                     currentSession.downloadTask(with: request) { url, response, error in
    |                                    `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
207 |                         do {
208 |                             guard let url = url, let response = response, error == nil else {
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:209:73: error: argument type '_' expected to be an instance of a class or class-constrained type
207 |                         do {
208 |                             guard let url = url, let response = response, error == nil else {
209 |                                 throw error ?? ARError.missingData(url, response)
    |                                                                         `- error: argument type '_' expected to be an instance of a class or class-constrained type
210 |                             }
211 |                             let tempDestination = try FileManager.default
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:256:52: error: extra argument 'request' in call
254 |                                      didFailTask: @escaping @Sendable (Error) -> Void) async throws -> URLSessionDownloadTask {
255 |         let request = try await urlRequest(for: target)
256 |         self.plugins?.forEach { $0.handle(request: request) }
    |                                                    `- error: extra argument 'request' in call
257 |         let delegate = ArachneDownloadDelegate(
258 |             didResumeDownload: nil,
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:256:42: error: missing arguments for parameters 'response', 'output' in call
254 |                                      didFailTask: @escaping @Sendable (Error) -> Void) async throws -> URLSessionDownloadTask {
255 |         let request = try await urlRequest(for: target)
256 |         self.plugins?.forEach { $0.handle(request: request) }
    |                                          `- error: missing arguments for parameters 'response', 'output' in call
257 |         let delegate = ArachneDownloadDelegate(
258 |             didResumeDownload: nil,
/host/spi-builder-workspace/Sources/Arachne/Plugins/ArachnePlugin.swift:23:10: note: 'handle(response:output:)' declared here
21 |     ///   - response: the `URLResponse`.
22 |     ///   - output: the output retrieved from the resource, conveniently wrapped in an enum with the possible data types
23 |     func handle(response: URLResponse, output: AROutput)
   |          `- note: 'handle(response:output:)' declared here
24 |
25 |     /// This function gets called whenever an error occurs, immediately before it is thrown.
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:273:84: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
271 |             didFailTask: didFailTask)
272 |
273 |         let session = URLSession(configuration: sessionConfiguration ?? urlSession.configuration, delegate: delegate, delegateQueue: nil)
    |                                                                                    `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
274 |         let task = session.downloadTask(with: request)
275 |         task.resume()
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:273:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
271 |             didFailTask: didFailTask)
272 |
273 |         let session = URLSession(configuration: sessionConfiguration ?? urlSession.configuration, delegate: delegate, delegateQueue: nil)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
274 |         let task = session.downloadTask(with: request)
275 |         task.resume()
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:273:134: error: 'nil' requires a contextual type
271 |             didFailTask: didFailTask)
272 |
273 |         let session = URLSession(configuration: sessionConfiguration ?? urlSession.configuration, delegate: delegate, delegateQueue: nil)
    |                                                                                                                                      `- error: 'nil' requires a contextual type
274 |         let task = session.downloadTask(with: request)
275 |         task.resume()
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:327:84: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
325 |             didFailTask: didFailTask)
326 |
327 |         let session = URLSession(configuration: sessionConfiguration ?? urlSession.configuration, delegate: delegate, delegateQueue: nil)
    |                                                                                    `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
328 |         let task = session.downloadTask(withResumeData: data)
329 |         task.resume()
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:327:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
325 |             didFailTask: didFailTask)
326 |
327 |         let session = URLSession(configuration: sessionConfiguration ?? urlSession.configuration, delegate: delegate, delegateQueue: nil)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
328 |         let task = session.downloadTask(withResumeData: data)
329 |         task.resume()
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:327:134: error: 'nil' requires a contextual type
325 |             didFailTask: didFailTask)
326 |
327 |         let session = URLSession(configuration: sessionConfiguration ?? urlSession.configuration, delegate: delegate, delegateQueue: nil)
    |                                                                                                                                      `- error: 'nil' requires a contextual type
328 |         let task = session.downloadTask(withResumeData: data)
329 |         task.resume()
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:343:47: error: extra argument 'request' in call
341 |     public nonisolated func upload(_ target: T, session: URLSession? = nil, from bodyData: Data) async throws -> (Data, URLResponse) {
342 |         let request = try await urlRequest(for: target)
343 |         plugins?.forEach { $0.handle(request: request) }
    |                                               `- error: extra argument 'request' in call
344 |         let currentSession = session ?? urlSession
345 |         do {
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:343:37: error: missing arguments for parameters 'response', 'output' in call
341 |     public nonisolated func upload(_ target: T, session: URLSession? = nil, from bodyData: Data) async throws -> (Data, URLResponse) {
342 |         let request = try await urlRequest(for: target)
343 |         plugins?.forEach { $0.handle(request: request) }
    |                                     `- error: missing arguments for parameters 'response', 'output' in call
344 |         let currentSession = session ?? urlSession
345 |         do {
/host/spi-builder-workspace/Sources/Arachne/Plugins/ArachnePlugin.swift:23:10: note: 'handle(response:output:)' declared here
21 |     ///   - response: the `URLResponse`.
22 |     ///   - output: the output retrieved from the resource, conveniently wrapped in an enum with the possible data types
23 |     func handle(response: URLResponse, output: AROutput)
   |          `- note: 'handle(response:output:)' declared here
24 |
25 |     /// This function gets called whenever an error occurs, immediately before it is thrown.
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:347:42: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
345 |         do {
346 |             let (responseData, response) = if #available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *) {
347 |                 try await currentSession.upload(for: request, from: bodyData)
    |                                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
348 |             } else {
349 |                 try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<(Data, URLResponse), Error>) in
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:372:47: error: extra argument 'request' in call
370 |     public nonisolated func upload(_ target: T, session: URLSession? = nil, fromFile fileURL: URL) async throws -> (Data, URLResponse) {
371 |         let request = try await urlRequest(for: target)
372 |         plugins?.forEach { $0.handle(request: request) }
    |                                               `- error: extra argument 'request' in call
373 |         let currentSession = session ?? urlSession
374 |         do {
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:372:37: error: missing arguments for parameters 'response', 'output' in call
370 |     public nonisolated func upload(_ target: T, session: URLSession? = nil, fromFile fileURL: URL) async throws -> (Data, URLResponse) {
371 |         let request = try await urlRequest(for: target)
372 |         plugins?.forEach { $0.handle(request: request) }
    |                                     `- error: missing arguments for parameters 'response', 'output' in call
373 |         let currentSession = session ?? urlSession
374 |         do {
/host/spi-builder-workspace/Sources/Arachne/Plugins/ArachnePlugin.swift:23:10: note: 'handle(response:output:)' declared here
21 |     ///   - response: the `URLResponse`.
22 |     ///   - output: the output retrieved from the resource, conveniently wrapped in an enum with the possible data types
23 |     func handle(response: URLResponse, output: AROutput)
   |          `- note: 'handle(response:output:)' declared here
24 |
25 |     /// This function gets called whenever an error occurs, immediately before it is thrown.
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:376:42: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
374 |         do {
375 |             let (responseData, response) = if #available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *) {
376 |                 try await currentSession.upload(for: request, fromFile: fileURL)
    |                                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
377 |             } else {
378 |                 try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<(Data, URLResponse), Error>) in
/host/spi-builder-workspace/Sources/Arachne/ArachneService.swift:65:42: error: cannot find type 'URLRequest' in scope
63 |     /// - Throws: `URLError` if any of the `URL` components are invalid.
64 |     /// > Tip: The output request is not modified using the `requestModifier` you set using ``ArachneProvider/with(requestModifier:)``, you may want to use ``ArachneProvider/urlRequest(for:)``.
65 |     internal func urlRequest() throws -> URLRequest {
   |                                          `- error: cannot find type 'URLRequest' in scope
66 |         return composedRequest(for: self, url: try url(), timeoutInterval: timeoutInterval)
67 |     }
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:441:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
439 |
440 |     private nonisolated func handleResponse<DataType>(target: T, data: DataType, output: AROutput, response: URLResponse) throws -> (DataType, URLResponse) {
441 |         guard let httpResponse = response as? HTTPURLResponse,
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
442 |               target.validCodes.contains(httpResponse.statusCode) else {
443 |             throw ARError.unacceptableStatusCode(statusCode: (response as? HTTPURLResponse)?.statusCode,
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:441:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
439 |
440 |     private nonisolated func handleResponse<DataType>(target: T, data: DataType, output: AROutput, response: URLResponse) throws -> (DataType, URLResponse) {
441 |         guard let httpResponse = response as? HTTPURLResponse,
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
442 |               target.validCodes.contains(httpResponse.statusCode) else {
443 |             throw ARError.unacceptableStatusCode(statusCode: (response as? HTTPURLResponse)?.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/Arachne/ArachneProvider.swift:442:55: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
440 |     private nonisolated func handleResponse<DataType>(target: T, data: DataType, output: AROutput, response: URLResponse) throws -> (DataType, URLResponse) {
441 |         guard let httpResponse = response as? HTTPURLResponse,
442 |               target.validCodes.contains(httpResponse.statusCode) else {
    |                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
443 |             throw ARError.unacceptableStatusCode(statusCode: (response as? HTTPURLResponse)?.statusCode,
444 |                                                  response: response as? HTTPURLResponse,
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:443:72: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
441 |         guard let httpResponse = response as? HTTPURLResponse,
442 |               target.validCodes.contains(httpResponse.statusCode) else {
443 |             throw ARError.unacceptableStatusCode(statusCode: (response as? HTTPURLResponse)?.statusCode,
    |                                                                        `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
444 |                                                  response: response as? HTTPURLResponse,
445 |                                                  responseContent: output)
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:443:94: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
441 |         guard let httpResponse = response as? HTTPURLResponse,
442 |               target.validCodes.contains(httpResponse.statusCode) else {
443 |             throw ARError.unacceptableStatusCode(statusCode: (response as? HTTPURLResponse)?.statusCode,
    |                                                                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
444 |                                                  response: response as? HTTPURLResponse,
445 |                                                  responseContent: output)
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:444:69: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
442 |               target.validCodes.contains(httpResponse.statusCode) else {
443 |             throw ARError.unacceptableStatusCode(statusCode: (response as? HTTPURLResponse)?.statusCode,
444 |                                                  response: response as? HTTPURLResponse,
    |                                                                     `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
445 |                                                  responseContent: output)
446 |         }
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:447:73: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
445 |                                                  responseContent: output)
446 |         }
447 |         if let expectedMimeType = target.expectedMimeType, httpResponse.mimeType != expectedMimeType {
    |                                                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
448 |             throw ARError.unexpectedMimeType(mimeType: httpResponse.mimeType, response: httpResponse, responseContent: output)
449 |         }
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:448:69: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
446 |         }
447 |         if let expectedMimeType = target.expectedMimeType, httpResponse.mimeType != expectedMimeType {
448 |             throw ARError.unexpectedMimeType(mimeType: httpResponse.mimeType, response: httpResponse, responseContent: output)
    |                                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
449 |         }
450 |         plugins?.forEach { $0.handle(response: response, output: output) }
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:456:37: error: extra arguments at positions #1, #2 in call
454 |     private nonisolated func handleAndReturn(error: Error, request: URLRequest) -> Error {
455 |         let output = extractOutput(from: error)
456 |         plugins?.forEach { $0.handle(error: error, request: request, output: output) }
    |                                     `- error: extra arguments at positions #1, #2 in call
457 |         return error
458 |     }
/host/spi-builder-workspace/Sources/Arachne/Plugins/ArachnePlugin.swift:23:10: note: 'handle(response:output:)' declared here
21 |     ///   - response: the `URLResponse`.
22 |     ///   - output: the output retrieved from the resource, conveniently wrapped in an enum with the possible data types
23 |     func handle(response: URLResponse, output: AROutput)
   |          `- note: 'handle(response:output:)' declared here
24 |
25 |     /// This function gets called whenever an error occurs, immediately before it is thrown.
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:456:38: error: missing argument for parameter 'response' in call
454 |     private nonisolated func handleAndReturn(error: Error, request: URLRequest) -> Error {
455 |         let output = extractOutput(from: error)
456 |         plugins?.forEach { $0.handle(error: error, request: request, output: output) }
    |                                      `- error: missing argument for parameter 'response' in call
457 |         return error
458 |     }
/host/spi-builder-workspace/Sources/Arachne/Plugins/ArachnePlugin.swift:23:10: note: 'handle(response:output:)' declared here
21 |     ///   - response: the `URLResponse`.
22 |     ///   - output: the output retrieved from the resource, conveniently wrapped in an enum with the possible data types
23 |     func handle(response: URLResponse, output: AROutput)
   |          `- note: 'handle(response:output:)' declared here
24 |
25 |     /// This function gets called whenever an error occurs, immediately before it is thrown.
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:456:78: error: value of optional type 'AROutput?' must be unwrapped to a value of type 'AROutput'
453 |
454 |     private nonisolated func handleAndReturn(error: Error, request: URLRequest) -> Error {
455 |         let output = extractOutput(from: error)
    |             |        |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
    |             |        `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
    |             `- note: short-circuit using 'guard' to exit this function early if the optional value contains 'nil'
456 |         plugins?.forEach { $0.handle(error: error, request: request, output: output) }
    |                                                                              |- error: value of optional type 'AROutput?' must be unwrapped to a value of type 'AROutput'
    |                                                                              |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
    |                                                                              `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
457 |         return error
458 |     }
[11/12] Compiling Arachne ArachneService.swift
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:15:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 | /// Use ``ArachneProvider`` to make requests to a specific ``ArachneService``.
 14 | public struct ArachneProvider<T>: Sendable where T: ArachneService {
 15 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |     private let requestModifier: (@Sendable (T, inout URLRequest) async throws -> Void)?
 17 |     private let plugins: [ArachnePlugin]?
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/Arachne/ArachneProvider.swift:16:55: error: cannot find type 'URLRequest' in scope
 14 | public struct ArachneProvider<T>: Sendable where T: ArachneService {
 15 |     private let urlSession: URLSession
 16 |     private let requestModifier: (@Sendable (T, inout URLRequest) async throws -> Void)?
    |                                                       `- error: cannot find type 'URLRequest' in scope
 17 |     private let plugins: [ArachnePlugin]?
 18 |
/host/spi-builder-workspace/Sources/Arachne/Plugins/ArachnePlugin.swift:17:26: error: cannot find type 'URLRequest' in scope
15 |     /// This function gets called immediately before the request is sent.
16 |     /// - Parameter request: the final request before it's sent.
17 |     func handle(request: URLRequest)
   |                          `- error: cannot find type 'URLRequest' in scope
18 |
19 |     /// This function gets called immediately before a response is returned.
/host/spi-builder-workspace/Sources/Arachne/Plugins/ArachnePlugin.swift:30:44: error: cannot find type 'URLRequest' in scope
28 |     ///   - request: the `URLRequest` that generated the error.
29 |     ///   - output: the output, if any, retrieved from the resource, conveniently wrapped in an enum with the possible data types
30 |     func handle(error: any Error, request: URLRequest, output: AROutput?)
   |                                            `- error: cannot find type 'URLRequest' in scope
31 | }
32 |
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:24:80: error: cannot find type 'URLRequest' in scope
 22 |     ///   - requestModifier: An optional async throwing function that allows to modify the `URLRequest`, based on the given `T` endpoint, before it's submitted.
 23 |     ///   - plugins: An optional array of ``ArachnePlugin``s.
 24 |     private init(urlSession: URLSession, requestModifier: (@Sendable (T, inout URLRequest) async throws -> Void)?, plugins: [ArachnePlugin]?) {
    |                                                                                `- error: cannot find type 'URLRequest' in scope
 25 |         self.urlSession = urlSession
 26 |         self.requestModifier = requestModifier
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:24:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |     ///   - requestModifier: An optional async throwing function that allows to modify the `URLRequest`, based on the given `T` endpoint, before it's submitted.
 23 |     ///   - plugins: An optional array of ``ArachnePlugin``s.
 24 |     private init(urlSession: URLSession, requestModifier: (@Sendable (T, inout URLRequest) async throws -> Void)?, plugins: [ArachnePlugin]?) {
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |         self.urlSession = urlSession
 26 |         self.requestModifier = requestModifier
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/Arachne/ArachneProvider.swift:33:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |     /// After initializing an ``ArachneProvider`` you can add plugins and a request modifier to it by chaining calls to ``with(plugins:)`` and ``with(requestModifier:)``.
 32 |     /// - Parameter urlSession: Your `URLSession`. It uses the `shared` instance if none is passed.
 33 |     public init(urlSession: URLSession = .shared) {
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |         self.urlSession = urlSession
 35 |         self.plugins = 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/Arachne/ArachneProvider.swift:33:43: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 31 |     /// After initializing an ``ArachneProvider`` you can add plugins and a request modifier to it by chaining calls to ``with(plugins:)`` and ``with(requestModifier:)``.
 32 |     /// - Parameter urlSession: Your `URLSession`. It uses the `shared` instance if none is passed.
 33 |     public init(urlSession: URLSession = .shared) {
    |                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 34 |         self.urlSession = urlSession
 35 |         self.plugins = nil
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:62:69: error: cannot find type 'URLRequest' in scope
 60 |     /// - Parameter requestModifier: An optional async throwing function that allows to modify the `URLRequest`, based on the given `T` endpoint, before it's submitted.
 61 |     /// - Returns: The same ``ArachneProvider`` with the given `requestModifier`.
 62 |     public func with(requestModifier: @escaping @Sendable (T, inout URLRequest) async throws -> Void) -> ArachneProvider<T> {
    |                                                                     `- error: cannot find type 'URLRequest' in scope
 63 |         return ArachneProvider(urlSession: urlSession, requestModifier: requestModifier, plugins: plugins)
 64 |     }
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:76:104: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 74 |     /// - Returns: An asynchronously-delivered tuple that contains a `URLSession.AsyncBytes` sequence to iterate over, and a `URLResponse`.
 75 |     @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
 76 |     public nonisolated func bytes(_ target: T, session: URLSession? = nil) async throws -> (URLSession.AsyncBytes, URLResponse) {
    |                                                                                                        `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 77 |         let request = try await urlRequest(for: target)
 78 |         self.plugins?.forEach { $0.handle(request: request) }
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:76:57: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 74 |     /// - Returns: An asynchronously-delivered tuple that contains a `URLSession.AsyncBytes` sequence to iterate over, and a `URLResponse`.
 75 |     @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
 76 |     public nonisolated func bytes(_ target: T, session: URLSession? = nil) async throws -> (URLSession.AsyncBytes, URLResponse) {
    |                                                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 77 |         let request = try await urlRequest(for: target)
 78 |         self.plugins?.forEach { $0.handle(request: request) }
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/Arachne/ArachneProvider.swift:105:43: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 |     public nonisolated func data(_ target: T,
104 |                                  timeoutInterval: Double? = nil,
105 |                                  session: URLSession? = nil) async throws -> (Data, URLResponse) {
    |                                           `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 |         return try await data(target, session: session)
107 |     }
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/Arachne/ArachneProvider.swift:105:85: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 |     public nonisolated func data(_ target: T,
104 |                                  timeoutInterval: Double? = nil,
105 |                                  session: URLSession? = nil) async throws -> (Data, URLResponse) {
    |                                                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 |         return try await data(target, session: session)
107 |     }
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/Arachne/ArachneProvider.swift:119:56: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 |     ///   ``ARError/unexpectedMimeType(mimeType:response:responseContent:)``
118 |     ///   if the response mime type doesn't match ``ArachneService/expectedMimeType-4w7gr``.
119 |     public nonisolated func data(_ target: T, session: URLSession? = nil) async throws -> (Data, URLResponse) {
    |                                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
120 |         let request = try await urlRequest(for: target)
121 |         self.plugins?.forEach { $0.handle(request: request) }
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/Arachne/ArachneProvider.swift:119:98: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 |     ///   ``ARError/unexpectedMimeType(mimeType:response:responseContent:)``
118 |     ///   if the response mime type doesn't match ``ArachneService/expectedMimeType-4w7gr``.
119 |     public nonisolated func data(_ target: T, session: URLSession? = nil) async throws -> (Data, URLResponse) {
    |                                                                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
120 |         let request = try await urlRequest(for: target)
121 |         self.plugins?.forEach { $0.handle(request: request) }
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/Arachne/ArachneProvider.swift:171:47: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
169 |     public nonisolated func download(_ target: T,
170 |                                      timeoutInterval: Double? = nil,
171 |                                      session: URLSession? = nil) async throws -> (URL, URLResponse) {
    |                                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
172 |         return try await download(target, session: session)
173 |     }
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/Arachne/ArachneProvider.swift:171:88: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
169 |     public nonisolated func download(_ target: T,
170 |                                      timeoutInterval: Double? = nil,
171 |                                      session: URLSession? = nil) async throws -> (URL, URLResponse) {
    |                                                                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
172 |         return try await download(target, session: session)
173 |     }
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/Arachne/ArachneProvider.swift:192:60: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 |     ///   if the response mime type doesn't match ``ArachneService/expectedMimeType-4w7gr``.
191 |     ///   If the download can be resumed, there will be data in the error's ``Error.downloadResumeData``.
192 |     public nonisolated func download(_ target: T, session: URLSession? = nil) async throws -> (URL, URLResponse) {
    |                                                            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
193 |         let request = try await urlRequest(for: target)
194 |         self.plugins?.forEach { $0.handle(request: request) }
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/Arachne/ArachneProvider.swift:192:101: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
190 |     ///   if the response mime type doesn't match ``ArachneService/expectedMimeType-4w7gr``.
191 |     ///   If the download can be resumed, there will be data in the error's ``Error.downloadResumeData``.
192 |     public nonisolated func download(_ target: T, session: URLSession? = nil) async throws -> (URL, URLResponse) {
    |                                                                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
193 |         let request = try await urlRequest(for: target)
194 |         self.plugins?.forEach { $0.handle(request: request) }
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/Arachne/ArachneProvider.swift:251:60: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
249 |     ///   If the download can be resumed, there will be data in the error's ``Error.downloadResumeData``.
250 |     public nonisolated func download(_ target: T,
251 |                                      sessionConfiguration: URLSessionConfiguration? = nil,
    |                                                            `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
252 |                                      didWriteData: @escaping @Sendable (Int64, Int64, Int64) -> Void,
253 |                                      didCompleteTask: @escaping @Sendable (URL, URLResponse) -> Void,
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/Arachne/ArachneProvider.swift:253:81: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
251 |                                      sessionConfiguration: URLSessionConfiguration? = nil,
252 |                                      didWriteData: @escaping @Sendable (Int64, Int64, Int64) -> Void,
253 |                                      didCompleteTask: @escaping @Sendable (URL, URLResponse) -> Void,
    |                                                                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
254 |                                      didFailTask: @escaping @Sendable (Error) -> Void) async throws -> URLSessionDownloadTask {
255 |         let request = try await urlRequest(for: target)
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/Arachne/ArachneProvider.swift:254:104: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
252 |                                      didWriteData: @escaping @Sendable (Int64, Int64, Int64) -> Void,
253 |                                      didCompleteTask: @escaping @Sendable (URL, URLResponse) -> Void,
254 |                                      didFailTask: @escaping @Sendable (Error) -> Void) async throws -> URLSessionDownloadTask {
    |                                                                                                        `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
255 |         let request = try await urlRequest(for: target)
256 |         self.plugins?.forEach { $0.handle(request: request) }
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/Arachne/ArachneProvider.swift:305:60: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
303 |     public nonisolated func download(_ target: T,
304 |                                      withResumeData data: Data,
305 |                                      sessionConfiguration: URLSessionConfiguration? = nil,
    |                                                            `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
306 |                                      didResumeDownload: @escaping @Sendable (Int64, Int64) -> Void,
307 |                                      didWriteData: @escaping @Sendable (Int64, Int64, Int64) -> Void,
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/Arachne/ArachneProvider.swift:308:81: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
306 |                                      didResumeDownload: @escaping @Sendable (Int64, Int64) -> Void,
307 |                                      didWriteData: @escaping @Sendable (Int64, Int64, Int64) -> Void,
308 |                                      didCompleteTask: @escaping @Sendable (URL, URLResponse) -> Void,
    |                                                                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
309 |                                      didFailTask: @escaping @Sendable (Error) -> Void) async throws -> URLSessionDownloadTask {
310 |         let request = try await urlRequest(for: target)
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/Arachne/ArachneProvider.swift:309:104: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
307 |                                      didWriteData: @escaping @Sendable (Int64, Int64, Int64) -> Void,
308 |                                      didCompleteTask: @escaping @Sendable (URL, URLResponse) -> Void,
309 |                                      didFailTask: @escaping @Sendable (Error) -> Void) async throws -> URLSessionDownloadTask {
    |                                                                                                        `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
310 |         let request = try await urlRequest(for: target)
311 |         let delegate = ArachneDownloadDelegate(
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/Arachne/ArachneProvider.swift:341:58: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
339 |     ///   - bodyData: The body data for the request.
340 |     /// - Returns: An asynchronously-delivered tuple that contains any data returned by the server as a `Data` instance, and a `URLResponse`.
341 |     public nonisolated func upload(_ target: T, session: URLSession? = nil, from bodyData: Data) async throws -> (Data, URLResponse) {
    |                                                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
342 |         let request = try await urlRequest(for: target)
343 |         plugins?.forEach { $0.handle(request: request) }
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/Arachne/ArachneProvider.swift:341:121: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
339 |     ///   - bodyData: The body data for the request.
340 |     /// - Returns: An asynchronously-delivered tuple that contains any data returned by the server as a `Data` instance, and a `URLResponse`.
341 |     public nonisolated func upload(_ target: T, session: URLSession? = nil, from bodyData: Data) async throws -> (Data, URLResponse) {
    |                                                                                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
342 |         let request = try await urlRequest(for: target)
343 |         plugins?.forEach { $0.handle(request: request) }
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/Arachne/ArachneProvider.swift:370:58: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
368 |     ///   - fileURL: A file URL containing the data to upload.
369 |     /// - Returns: An asynchronously-delivered tuple that contains any data returned by the server as a `Data` instance, and a `URLResponse`.
370 |     public nonisolated func upload(_ target: T, session: URLSession? = nil, fromFile fileURL: URL) async throws -> (Data, URLResponse) {
    |                                                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
371 |         let request = try await urlRequest(for: target)
372 |         plugins?.forEach { $0.handle(request: request) }
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/Arachne/ArachneProvider.swift:370:123: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
368 |     ///   - fileURL: A file URL containing the data to upload.
369 |     /// - Returns: An asynchronously-delivered tuple that contains any data returned by the server as a `Data` instance, and a `URLResponse`.
370 |     public nonisolated func upload(_ target: T, session: URLSession? = nil, fromFile fileURL: URL) async throws -> (Data, URLResponse) {
    |                                                                                                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
371 |         let request = try await urlRequest(for: target)
372 |         plugins?.forEach { $0.handle(request: request) }
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/Arachne/ArachneProvider.swift:405:95: error: cannot find type 'URLRequest' in scope
403 |     /// - Throws: `URLError` if any of the request components are invalid.
404 |     @available(*, deprecated, message: "Use ArachneService.urlRequest() instead, timeoutInterval is now defined in ArachneService and the value passed as input to this method is ignored")
405 |     public nonisolated func buildRequest(target: T, timeoutInterval: Double? = nil) throws -> URLRequest {
    |                                                                                               `- error: cannot find type 'URLRequest' in scope
406 |         return try target.urlRequest()
407 |     }
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:417:109: error: cannot find type 'URLRequest' in scope
415 |     /// - Throws: `URLError` if any of the request components are invalid or the error thrown from the `requestModifier` you set using ``with(requestModifier:)``.
416 |     @available(*, deprecated, renamed: "finalRequest(target:)", message: "Use finalRequest(target:) instead, timeoutInterval is now defined in ArachneService and the value passed as input to this method is ignored")
417 |     public nonisolated func buildCompleteRequest(target: T, timeoutInterval: Double? = nil) async throws -> URLRequest {
    |                                                                                                             `- error: cannot find type 'URLRequest' in scope
418 |         return try await urlRequest(for: target)
419 |     }
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:426:71: error: cannot find type 'URLRequest' in scope
424 |     /// - Returns: The built `URLRequest`.
425 |     /// - Throws: `URLError` if any of the request components are invalid or the error thrown from the `requestModifier` you set using ``with(requestModifier:)``.
426 |     public nonisolated func urlRequest(for target: T) async throws -> URLRequest {
    |                                                                       `- error: cannot find type 'URLRequest' in scope
427 |         var request = try target.urlRequest()
428 |         try await modify(request: &request, target: target)
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:434:52: error: cannot find type 'URLRequest' in scope
432 |     // MARK: - Internal methods
433 |
434 |     private nonisolated func modify(request: inout URLRequest, target: T) async throws {
    |                                                    `- error: cannot find type 'URLRequest' in scope
435 |         if let requestModifier = requestModifier {
436 |             try await requestModifier(target, &request)
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:440:110: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
438 |     }
439 |
440 |     private nonisolated func handleResponse<DataType>(target: T, data: DataType, output: AROutput, response: URLResponse) throws -> (DataType, URLResponse) {
    |                                                                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
441 |         guard let httpResponse = response as? HTTPURLResponse,
442 |               target.validCodes.contains(httpResponse.statusCode) else {
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/Arachne/ArachneProvider.swift:440:144: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
438 |     }
439 |
440 |     private nonisolated func handleResponse<DataType>(target: T, data: DataType, output: AROutput, response: URLResponse) throws -> (DataType, URLResponse) {
    |                                                                                                                                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
441 |         guard let httpResponse = response as? HTTPURLResponse,
442 |               target.validCodes.contains(httpResponse.statusCode) else {
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/Arachne/ArachneProvider.swift:454:69: error: cannot find type 'URLRequest' in scope
452 |     }
453 |
454 |     private nonisolated func handleAndReturn(error: Error, request: URLRequest) -> Error {
    |                                                                     `- error: cannot find type 'URLRequest' in scope
455 |         let output = extractOutput(from: error)
456 |         plugins?.forEach { $0.handle(error: error, request: request, output: output) }
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:15:17: error: stored property 'urlSession' of 'Sendable'-conforming generic struct 'ArachneProvider' has non-Sendable type 'URLSession' (aka 'AnyObject')
 13 | /// Use ``ArachneProvider`` to make requests to a specific ``ArachneService``.
 14 | public struct ArachneProvider<T>: Sendable where T: ArachneService {
 15 |     private let urlSession: URLSession
    |                 `- error: stored property 'urlSession' of 'Sendable'-conforming generic struct 'ArachneProvider' has non-Sendable type 'URLSession' (aka 'AnyObject')
 16 |     private let requestModifier: (@Sendable (T, inout URLRequest) async throws -> Void)?
 17 |     private let plugins: [ArachnePlugin]?
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:43:31: error: extra arguments at positions #2, #3 in call
 31 |     /// After initializing an ``ArachneProvider`` you can add plugins and a request modifier to it by chaining calls to ``with(plugins:)`` and ``with(requestModifier:)``.
 32 |     /// - Parameter urlSession: Your `URLSession`. It uses the `shared` instance if none is passed.
 33 |     public init(urlSession: URLSession = .shared) {
    |            `- note: 'init(urlSession:)' declared here
 34 |         self.urlSession = urlSession
 35 |         self.plugins = nil
    :
 41 |     /// - Returns: The same ``ArachneProvider`` with the added `plugins`.
 42 |     public func with(plugins: [ArachnePlugin]) -> ArachneProvider<T> {
 43 |         return ArachneProvider(urlSession: urlSession, requestModifier: requestModifier, plugins: plugins)
    |                               `- error: extra arguments at positions #2, #3 in call
 44 |     }
 45 |
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:63:31: error: extra arguments at positions #2, #3 in call
 31 |     /// After initializing an ``ArachneProvider`` you can add plugins and a request modifier to it by chaining calls to ``with(plugins:)`` and ``with(requestModifier:)``.
 32 |     /// - Parameter urlSession: Your `URLSession`. It uses the `shared` instance if none is passed.
 33 |     public init(urlSession: URLSession = .shared) {
    |            `- note: 'init(urlSession:)' declared here
 34 |         self.urlSession = urlSession
 35 |         self.plugins = nil
    :
 61 |     /// - Returns: The same ``ArachneProvider`` with the given `requestModifier`.
 62 |     public func with(requestModifier: @escaping @Sendable (T, inout URLRequest) async throws -> Void) -> ArachneProvider<T> {
 63 |         return ArachneProvider(urlSession: urlSession, requestModifier: requestModifier, plugins: plugins)
    |                               `- error: extra arguments at positions #2, #3 in call
 64 |     }
 65 |
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:78:52: error: extra argument 'request' in call
 76 |     public nonisolated func bytes(_ target: T, session: URLSession? = nil) async throws -> (URLSession.AsyncBytes, URLResponse) {
 77 |         let request = try await urlRequest(for: target)
 78 |         self.plugins?.forEach { $0.handle(request: request) }
    |                                                    `- error: extra argument 'request' in call
 79 |         let currentSession = session ?? self.urlSession
 80 |         do {
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:78:42: error: missing arguments for parameters 'response', 'output' in call
 76 |     public nonisolated func bytes(_ target: T, session: URLSession? = nil) async throws -> (URLSession.AsyncBytes, URLResponse) {
 77 |         let request = try await urlRequest(for: target)
 78 |         self.plugins?.forEach { $0.handle(request: request) }
    |                                          `- error: missing arguments for parameters 'response', 'output' in call
 79 |         let currentSession = session ?? self.urlSession
 80 |         do {
/host/spi-builder-workspace/Sources/Arachne/Plugins/ArachnePlugin.swift:23:10: note: 'handle(response:output:)' declared here
21 |     ///   - response: the `URLResponse`.
22 |     ///   - output: the output retrieved from the resource, conveniently wrapped in an enum with the possible data types
23 |     func handle(response: URLResponse, output: AROutput)
   |          `- note: 'handle(response:output:)' declared here
24 |
25 |     /// This function gets called whenever an error occurs, immediately before it is thrown.
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:81:62: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
 79 |         let currentSession = session ?? self.urlSession
 80 |         do {
 81 |             let (bytes, response) = try await currentSession.bytes(for: request)
    |                                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
 82 |             return try handleResponse(target: target, data: bytes, output: .other(bytes), response: response)
 83 |         } catch {
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:121:52: error: extra argument 'request' in call
119 |     public nonisolated func data(_ target: T, session: URLSession? = nil) async throws -> (Data, URLResponse) {
120 |         let request = try await urlRequest(for: target)
121 |         self.plugins?.forEach { $0.handle(request: request) }
    |                                                    `- error: extra argument 'request' in call
122 |         let currentSession = session ?? self.urlSession
123 |         if #available(iOS 15, macOS 12, tvOS 15, watchOS 8, *) {
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:121:42: error: missing arguments for parameters 'response', 'output' in call
119 |     public nonisolated func data(_ target: T, session: URLSession? = nil) async throws -> (Data, URLResponse) {
120 |         let request = try await urlRequest(for: target)
121 |         self.plugins?.forEach { $0.handle(request: request) }
    |                                          `- error: missing arguments for parameters 'response', 'output' in call
122 |         let currentSession = session ?? self.urlSession
123 |         if #available(iOS 15, macOS 12, tvOS 15, watchOS 8, *) {
/host/spi-builder-workspace/Sources/Arachne/Plugins/ArachnePlugin.swift:23:10: note: 'handle(response:output:)' declared here
21 |     ///   - response: the `URLResponse`.
22 |     ///   - output: the output retrieved from the resource, conveniently wrapped in an enum with the possible data types
23 |     func handle(response: URLResponse, output: AROutput)
   |          `- note: 'handle(response:output:)' declared here
24 |
25 |     /// This function gets called whenever an error occurs, immediately before it is thrown.
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:125:65: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
123 |         if #available(iOS 15, macOS 12, tvOS 15, watchOS 8, *) {
124 |             do {
125 |                 let (data, response) = try await currentSession.data(for: request)
    |                                                                 `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
126 |                 return try handleResponse(target: target, data: data, output: .data(data), response: response)
127 |             } catch {
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:133:36: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
131 |             do {
132 |                 let (data, response) = try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<(Data, URLResponse), Error>) in
133 |                     currentSession.dataTask(with: request) { data, response, error in
    |                                    `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
134 |                         guard let data = data, let response = response, error == nil else {
135 |                             return continuation.resume(throwing: error!)
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:137:63: error: value of type '_' expected to be instance of class or class-constrained type
135 |                             return continuation.resume(throwing: error!)
136 |                         }
137 |                         continuation.resume(returning: (data, response))
    |                                                               `- error: value of type '_' expected to be instance of class or class-constrained type
138 |                     }.resume()
139 |                 }
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:194:52: error: extra argument 'request' in call
192 |     public nonisolated func download(_ target: T, session: URLSession? = nil) async throws -> (URL, URLResponse) {
193 |         let request = try await urlRequest(for: target)
194 |         self.plugins?.forEach { $0.handle(request: request) }
    |                                                    `- error: extra argument 'request' in call
195 |         let currentSession = session ?? self.urlSession
196 |         if #available(iOS 15, macOS 12, tvOS 15, watchOS 8, *) {
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:194:42: error: missing arguments for parameters 'response', 'output' in call
192 |     public nonisolated func download(_ target: T, session: URLSession? = nil) async throws -> (URL, URLResponse) {
193 |         let request = try await urlRequest(for: target)
194 |         self.plugins?.forEach { $0.handle(request: request) }
    |                                          `- error: missing arguments for parameters 'response', 'output' in call
195 |         let currentSession = session ?? self.urlSession
196 |         if #available(iOS 15, macOS 12, tvOS 15, watchOS 8, *) {
/host/spi-builder-workspace/Sources/Arachne/Plugins/ArachnePlugin.swift:23:10: note: 'handle(response:output:)' declared here
21 |     ///   - response: the `URLResponse`.
22 |     ///   - output: the output retrieved from the resource, conveniently wrapped in an enum with the possible data types
23 |     func handle(response: URLResponse, output: AROutput)
   |          `- note: 'handle(response:output:)' declared here
24 |
25 |     /// This function gets called whenever an error occurs, immediately before it is thrown.
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:198:64: error: value of type 'URLSession' (aka 'AnyObject') has no member 'download'
196 |         if #available(iOS 15, macOS 12, tvOS 15, watchOS 8, *) {
197 |             do {
198 |                 let (url, response) = try await currentSession.download(for: request)
    |                                                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'download'
199 |                 return try handleResponse(target: target, data: url, output: .url(url), response: response)
200 |             } catch {
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:206:36: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
204 |             do {
205 |                 let (url, response) = try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<(URL, URLResponse), Error>) in
206 |                     currentSession.downloadTask(with: request) { url, response, error in
    |                                    `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
207 |                         do {
208 |                             guard let url = url, let response = response, error == nil else {
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:209:73: error: argument type '_' expected to be an instance of a class or class-constrained type
207 |                         do {
208 |                             guard let url = url, let response = response, error == nil else {
209 |                                 throw error ?? ARError.missingData(url, response)
    |                                                                         `- error: argument type '_' expected to be an instance of a class or class-constrained type
210 |                             }
211 |                             let tempDestination = try FileManager.default
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:256:52: error: extra argument 'request' in call
254 |                                      didFailTask: @escaping @Sendable (Error) -> Void) async throws -> URLSessionDownloadTask {
255 |         let request = try await urlRequest(for: target)
256 |         self.plugins?.forEach { $0.handle(request: request) }
    |                                                    `- error: extra argument 'request' in call
257 |         let delegate = ArachneDownloadDelegate(
258 |             didResumeDownload: nil,
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:256:42: error: missing arguments for parameters 'response', 'output' in call
254 |                                      didFailTask: @escaping @Sendable (Error) -> Void) async throws -> URLSessionDownloadTask {
255 |         let request = try await urlRequest(for: target)
256 |         self.plugins?.forEach { $0.handle(request: request) }
    |                                          `- error: missing arguments for parameters 'response', 'output' in call
257 |         let delegate = ArachneDownloadDelegate(
258 |             didResumeDownload: nil,
/host/spi-builder-workspace/Sources/Arachne/Plugins/ArachnePlugin.swift:23:10: note: 'handle(response:output:)' declared here
21 |     ///   - response: the `URLResponse`.
22 |     ///   - output: the output retrieved from the resource, conveniently wrapped in an enum with the possible data types
23 |     func handle(response: URLResponse, output: AROutput)
   |          `- note: 'handle(response:output:)' declared here
24 |
25 |     /// This function gets called whenever an error occurs, immediately before it is thrown.
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:273:84: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
271 |             didFailTask: didFailTask)
272 |
273 |         let session = URLSession(configuration: sessionConfiguration ?? urlSession.configuration, delegate: delegate, delegateQueue: nil)
    |                                                                                    `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
274 |         let task = session.downloadTask(with: request)
275 |         task.resume()
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:273:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
271 |             didFailTask: didFailTask)
272 |
273 |         let session = URLSession(configuration: sessionConfiguration ?? urlSession.configuration, delegate: delegate, delegateQueue: nil)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
274 |         let task = session.downloadTask(with: request)
275 |         task.resume()
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:273:134: error: 'nil' requires a contextual type
271 |             didFailTask: didFailTask)
272 |
273 |         let session = URLSession(configuration: sessionConfiguration ?? urlSession.configuration, delegate: delegate, delegateQueue: nil)
    |                                                                                                                                      `- error: 'nil' requires a contextual type
274 |         let task = session.downloadTask(with: request)
275 |         task.resume()
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:327:84: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
325 |             didFailTask: didFailTask)
326 |
327 |         let session = URLSession(configuration: sessionConfiguration ?? urlSession.configuration, delegate: delegate, delegateQueue: nil)
    |                                                                                    `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
328 |         let task = session.downloadTask(withResumeData: data)
329 |         task.resume()
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:327:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
325 |             didFailTask: didFailTask)
326 |
327 |         let session = URLSession(configuration: sessionConfiguration ?? urlSession.configuration, delegate: delegate, delegateQueue: nil)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
328 |         let task = session.downloadTask(withResumeData: data)
329 |         task.resume()
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:327:134: error: 'nil' requires a contextual type
325 |             didFailTask: didFailTask)
326 |
327 |         let session = URLSession(configuration: sessionConfiguration ?? urlSession.configuration, delegate: delegate, delegateQueue: nil)
    |                                                                                                                                      `- error: 'nil' requires a contextual type
328 |         let task = session.downloadTask(withResumeData: data)
329 |         task.resume()
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:343:47: error: extra argument 'request' in call
341 |     public nonisolated func upload(_ target: T, session: URLSession? = nil, from bodyData: Data) async throws -> (Data, URLResponse) {
342 |         let request = try await urlRequest(for: target)
343 |         plugins?.forEach { $0.handle(request: request) }
    |                                               `- error: extra argument 'request' in call
344 |         let currentSession = session ?? urlSession
345 |         do {
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:343:37: error: missing arguments for parameters 'response', 'output' in call
341 |     public nonisolated func upload(_ target: T, session: URLSession? = nil, from bodyData: Data) async throws -> (Data, URLResponse) {
342 |         let request = try await urlRequest(for: target)
343 |         plugins?.forEach { $0.handle(request: request) }
    |                                     `- error: missing arguments for parameters 'response', 'output' in call
344 |         let currentSession = session ?? urlSession
345 |         do {
/host/spi-builder-workspace/Sources/Arachne/Plugins/ArachnePlugin.swift:23:10: note: 'handle(response:output:)' declared here
21 |     ///   - response: the `URLResponse`.
22 |     ///   - output: the output retrieved from the resource, conveniently wrapped in an enum with the possible data types
23 |     func handle(response: URLResponse, output: AROutput)
   |          `- note: 'handle(response:output:)' declared here
24 |
25 |     /// This function gets called whenever an error occurs, immediately before it is thrown.
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:347:42: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
345 |         do {
346 |             let (responseData, response) = if #available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *) {
347 |                 try await currentSession.upload(for: request, from: bodyData)
    |                                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
348 |             } else {
349 |                 try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<(Data, URLResponse), Error>) in
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:372:47: error: extra argument 'request' in call
370 |     public nonisolated func upload(_ target: T, session: URLSession? = nil, fromFile fileURL: URL) async throws -> (Data, URLResponse) {
371 |         let request = try await urlRequest(for: target)
372 |         plugins?.forEach { $0.handle(request: request) }
    |                                               `- error: extra argument 'request' in call
373 |         let currentSession = session ?? urlSession
374 |         do {
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:372:37: error: missing arguments for parameters 'response', 'output' in call
370 |     public nonisolated func upload(_ target: T, session: URLSession? = nil, fromFile fileURL: URL) async throws -> (Data, URLResponse) {
371 |         let request = try await urlRequest(for: target)
372 |         plugins?.forEach { $0.handle(request: request) }
    |                                     `- error: missing arguments for parameters 'response', 'output' in call
373 |         let currentSession = session ?? urlSession
374 |         do {
/host/spi-builder-workspace/Sources/Arachne/Plugins/ArachnePlugin.swift:23:10: note: 'handle(response:output:)' declared here
21 |     ///   - response: the `URLResponse`.
22 |     ///   - output: the output retrieved from the resource, conveniently wrapped in an enum with the possible data types
23 |     func handle(response: URLResponse, output: AROutput)
   |          `- note: 'handle(response:output:)' declared here
24 |
25 |     /// This function gets called whenever an error occurs, immediately before it is thrown.
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:376:42: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
374 |         do {
375 |             let (responseData, response) = if #available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *) {
376 |                 try await currentSession.upload(for: request, fromFile: fileURL)
    |                                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
377 |             } else {
378 |                 try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<(Data, URLResponse), Error>) in
/host/spi-builder-workspace/Sources/Arachne/ArachneService.swift:65:42: error: cannot find type 'URLRequest' in scope
63 |     /// - Throws: `URLError` if any of the `URL` components are invalid.
64 |     /// > Tip: The output request is not modified using the `requestModifier` you set using ``ArachneProvider/with(requestModifier:)``, you may want to use ``ArachneProvider/urlRequest(for:)``.
65 |     internal func urlRequest() throws -> URLRequest {
   |                                          `- error: cannot find type 'URLRequest' in scope
66 |         return composedRequest(for: self, url: try url(), timeoutInterval: timeoutInterval)
67 |     }
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:441:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
439 |
440 |     private nonisolated func handleResponse<DataType>(target: T, data: DataType, output: AROutput, response: URLResponse) throws -> (DataType, URLResponse) {
441 |         guard let httpResponse = response as? HTTPURLResponse,
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
442 |               target.validCodes.contains(httpResponse.statusCode) else {
443 |             throw ARError.unacceptableStatusCode(statusCode: (response as? HTTPURLResponse)?.statusCode,
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:441:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
439 |
440 |     private nonisolated func handleResponse<DataType>(target: T, data: DataType, output: AROutput, response: URLResponse) throws -> (DataType, URLResponse) {
441 |         guard let httpResponse = response as? HTTPURLResponse,
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
442 |               target.validCodes.contains(httpResponse.statusCode) else {
443 |             throw ARError.unacceptableStatusCode(statusCode: (response as? HTTPURLResponse)?.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/Arachne/ArachneProvider.swift:442:55: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
440 |     private nonisolated func handleResponse<DataType>(target: T, data: DataType, output: AROutput, response: URLResponse) throws -> (DataType, URLResponse) {
441 |         guard let httpResponse = response as? HTTPURLResponse,
442 |               target.validCodes.contains(httpResponse.statusCode) else {
    |                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
443 |             throw ARError.unacceptableStatusCode(statusCode: (response as? HTTPURLResponse)?.statusCode,
444 |                                                  response: response as? HTTPURLResponse,
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:443:72: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
441 |         guard let httpResponse = response as? HTTPURLResponse,
442 |               target.validCodes.contains(httpResponse.statusCode) else {
443 |             throw ARError.unacceptableStatusCode(statusCode: (response as? HTTPURLResponse)?.statusCode,
    |                                                                        `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
444 |                                                  response: response as? HTTPURLResponse,
445 |                                                  responseContent: output)
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:443:94: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
441 |         guard let httpResponse = response as? HTTPURLResponse,
442 |               target.validCodes.contains(httpResponse.statusCode) else {
443 |             throw ARError.unacceptableStatusCode(statusCode: (response as? HTTPURLResponse)?.statusCode,
    |                                                                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
444 |                                                  response: response as? HTTPURLResponse,
445 |                                                  responseContent: output)
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:444:69: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
442 |               target.validCodes.contains(httpResponse.statusCode) else {
443 |             throw ARError.unacceptableStatusCode(statusCode: (response as? HTTPURLResponse)?.statusCode,
444 |                                                  response: response as? HTTPURLResponse,
    |                                                                     `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
445 |                                                  responseContent: output)
446 |         }
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:447:73: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
445 |                                                  responseContent: output)
446 |         }
447 |         if let expectedMimeType = target.expectedMimeType, httpResponse.mimeType != expectedMimeType {
    |                                                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
448 |             throw ARError.unexpectedMimeType(mimeType: httpResponse.mimeType, response: httpResponse, responseContent: output)
449 |         }
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:448:69: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
446 |         }
447 |         if let expectedMimeType = target.expectedMimeType, httpResponse.mimeType != expectedMimeType {
448 |             throw ARError.unexpectedMimeType(mimeType: httpResponse.mimeType, response: httpResponse, responseContent: output)
    |                                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
449 |         }
450 |         plugins?.forEach { $0.handle(response: response, output: output) }
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:456:37: error: extra arguments at positions #1, #2 in call
454 |     private nonisolated func handleAndReturn(error: Error, request: URLRequest) -> Error {
455 |         let output = extractOutput(from: error)
456 |         plugins?.forEach { $0.handle(error: error, request: request, output: output) }
    |                                     `- error: extra arguments at positions #1, #2 in call
457 |         return error
458 |     }
/host/spi-builder-workspace/Sources/Arachne/Plugins/ArachnePlugin.swift:23:10: note: 'handle(response:output:)' declared here
21 |     ///   - response: the `URLResponse`.
22 |     ///   - output: the output retrieved from the resource, conveniently wrapped in an enum with the possible data types
23 |     func handle(response: URLResponse, output: AROutput)
   |          `- note: 'handle(response:output:)' declared here
24 |
25 |     /// This function gets called whenever an error occurs, immediately before it is thrown.
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:456:38: error: missing argument for parameter 'response' in call
454 |     private nonisolated func handleAndReturn(error: Error, request: URLRequest) -> Error {
455 |         let output = extractOutput(from: error)
456 |         plugins?.forEach { $0.handle(error: error, request: request, output: output) }
    |                                      `- error: missing argument for parameter 'response' in call
457 |         return error
458 |     }
/host/spi-builder-workspace/Sources/Arachne/Plugins/ArachnePlugin.swift:23:10: note: 'handle(response:output:)' declared here
21 |     ///   - response: the `URLResponse`.
22 |     ///   - output: the output retrieved from the resource, conveniently wrapped in an enum with the possible data types
23 |     func handle(response: URLResponse, output: AROutput)
   |          `- note: 'handle(response:output:)' declared here
24 |
25 |     /// This function gets called whenever an error occurs, immediately before it is thrown.
/host/spi-builder-workspace/Sources/Arachne/ArachneProvider.swift:456:78: error: value of optional type 'AROutput?' must be unwrapped to a value of type 'AROutput'
453 |
454 |     private nonisolated func handleAndReturn(error: Error, request: URLRequest) -> Error {
455 |         let output = extractOutput(from: error)
    |             |        |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
    |             |        `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
    |             `- note: short-circuit using 'guard' to exit this function early if the optional value contains 'nil'
456 |         plugins?.forEach { $0.handle(error: error, request: request, output: output) }
    |                                                                              |- error: value of optional type 'AROutput?' must be unwrapped to a value of type 'AROutput'
    |                                                                              |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
    |                                                                              `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
457 |         return error
458 |     }
[12/12] Compiling Arachne URLUtil.swift
/host/spi-builder-workspace/Sources/Arachne/Util/URLUtil.swift:36:88: error: cannot find type 'URLRequest' in scope
34 | nonisolated func composedRequest<T: ArachneService>(for target: T,
35 |                                                     url: URL,
36 |                                                     timeoutInterval: Double? = nil) -> URLRequest {
   |                                                                                        `- error: cannot find type 'URLRequest' in scope
37 |     var request = URLRequest(url: url)
38 |     request.httpMethod = target.method.rawValue
/host/spi-builder-workspace/Sources/Arachne/Util/URLUtil.swift:17:13: warning: 'NSURLErrorFailingURLStringErrorKey' is deprecated: Use NSURLErrorFailingURLErrorKey instead [#DeprecatedDeclaration]
15 |         throw URLError(.unsupportedURL, userInfo: [
16 |             NSLocalizedDescriptionKey : "Unsupported URL",
17 |             NSURLErrorFailingURLStringErrorKey : target.baseUrl
   |             `- warning: 'NSURLErrorFailingURLStringErrorKey' is deprecated: Use NSURLErrorFailingURLErrorKey instead [#DeprecatedDeclaration]
18 |         ])
19 |     }
/host/spi-builder-workspace/Sources/Arachne/Util/URLUtil.swift:28:13: warning: 'NSURLErrorFailingURLStringErrorKey' is deprecated: Use NSURLErrorFailingURLErrorKey instead [#DeprecatedDeclaration]
26 |         throw URLError(.unsupportedURL, userInfo: [
27 |             NSLocalizedDescriptionKey : "Unsupported URL",
28 |             NSURLErrorFailingURLStringErrorKey : urlComponents.description
   |             `- warning: 'NSURLErrorFailingURLStringErrorKey' is deprecated: Use NSURLErrorFailingURLErrorKey instead [#DeprecatedDeclaration]
29 |         ])
30 |     }
/host/spi-builder-workspace/Sources/Arachne/Util/URLUtil.swift:37:19: error: cannot find 'URLRequest' in scope
35 |                                                     url: URL,
36 |                                                     timeoutInterval: Double? = nil) -> URLRequest {
37 |     var request = URLRequest(url: url)
   |                   `- error: cannot find 'URLRequest' in scope
38 |     request.httpMethod = target.method.rawValue
39 |     target.headers?.forEach { header in
/host/spi-builder-workspace/Sources/Arachne/Util/URLUtil.swift:40:16: error: cannot find 'URLRequest' in scope
38 |     request.httpMethod = target.method.rawValue
39 |     target.headers?.forEach { header in
40 |         guard !URLRequest.reservedHeaders.contains(header.key) else {
   |                `- error: cannot find 'URLRequest' in scope
41 |             return
42 |         }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
BUILD FAILURE 6.2 linux