The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SimpleNetworking, reference main (c624a7), with Swift 6.1 for Wasm on 8 Nov 2026 20:47:16 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

 50 |         saveCookies(from: response.response)
 51 |         response.cookies = cookieSnapshot()
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:69:56: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 67 |     ) async -> NetworkResponse {
 68 |         let delegate = TransferDelegate(progressHandler: onProgress, destinationURL: destinationURL)
 69 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
    |                                                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 70 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
 71 |         var response = await delegate.download(session: session, resumeData: resumeData)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:70:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 68 |         let delegate = TransferDelegate(progressHandler: onProgress, destinationURL: destinationURL)
 69 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
 70 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 71 |         var response = await delegate.download(session: session, resumeData: resumeData)
 72 |         saveCookies(from: response.response)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:70:99: error: 'nil' requires a contextual type
 68 |         let delegate = TransferDelegate(progressHandler: onProgress, destinationURL: destinationURL)
 69 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
 70 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
    |                                                                                                   `- error: 'nil' requires a contextual type
 71 |         var response = await delegate.download(session: session, resumeData: resumeData)
 72 |         saveCookies(from: response.response)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:108:89: error: cannot find type 'URLRequest' in scope
106 |     ///   - uploadData: The multipart upload data
107 |     /// - Returns: URLRequest or nil if URL is invalid
108 |     internal func createUploadRequest(path: String, uploadData: MultipartUploadData) -> URLRequest? {
    |                                                                                         `- error: cannot find type 'URLRequest' in scope
109 |         guard let siteURL = self.isURL(path) else {
110 |             return nil
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:86:27: error: cannot infer contextual base in reference to member 'init'
 84 |             return .init(
 85 |                 error: NetworkingError(message: "Error: Upload endpoint doesn't appear to be an URL"),
 86 |                 request: .init(url: defaultURL)
    |                           `- error: cannot infer contextual base in reference to member 'init'
 87 |             )
 88 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:101:56: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 99 |
100 |         let delegate = TransferDelegate(progressHandler: onProgress)
101 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
    |                                                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
102 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
103 |         var response = await delegate.upload(session: session, request: preparedRequest)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:102:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 |         let delegate = TransferDelegate(progressHandler: onProgress)
101 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
102 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
103 |         var response = await delegate.upload(session: session, request: preparedRequest)
104 |         saveCookies(from: response.response)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:102:99: error: 'nil' requires a contextual type
100 |         let delegate = TransferDelegate(progressHandler: onProgress)
101 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
102 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
    |                                                                                                   `- error: 'nil' requires a contextual type
103 |         var response = await delegate.upload(session: session, request: preparedRequest)
104 |         saveCookies(from: response.response)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:133:36: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
131 |         request: URLRequest
132 |     ) -> NetworkResponse {
133 |         let statusCode = (response as? HTTPURLResponse)?.statusCode
    |                                    `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
134 |         var networkResponse = NetworkResponse(
135 |             response: response,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:133:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |         request: URLRequest
132 |     ) -> NetworkResponse {
133 |         let statusCode = (response as? HTTPURLResponse)?.statusCode
    |                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
134 |         var networkResponse = NetworkResponse(
135 |             response: response,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:186:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
184 |
185 |     func download(session: URLSession, request: URLRequest) async -> SimpleNetworking.NetworkResponse {
186 |         let task = session.downloadTask(with: request)
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
187 |         return await download(task: task)
188 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:191:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
189 |
190 |     func download(session: URLSession, resumeData: Data) async -> SimpleNetworking.NetworkResponse {
191 |         let task = session.downloadTask(withResumeData: resumeData)
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
192 |         return await download(task: task)
193 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:201:22: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'resume'
199 |                 downloadContinuation = continuation
200 |                 lock.unlock()
201 |                 task.resume()
    |                      `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'resume'
202 |             }
203 |         }, onCancel: {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:204:18: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'cancel'
202 |             }
203 |         }, onCancel: {
204 |             task.cancel()
    |                  `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'cancel'
205 |         })
206 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:209:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
207 |
208 |     func upload(session: URLSession, request: URLRequest) async -> SimpleNetworking.NetworkResponse {
209 |         let task = session.uploadTask(with: request, from: request.httpBody ?? Data())
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
210 |         return await upload(task: task)
211 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:214:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
212 |
213 |     func upload(session: URLSession, request: URLRequest, bodyFile: URL) async -> SimpleNetworking.NetworkResponse {
214 |         let task = session.uploadTask(with: request, fromFile: bodyFile)
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
215 |         return await upload(task: task)
216 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:224:22: error: value of type 'URLSessionUploadTask' (aka 'AnyObject') has no member 'resume'
222 |                 uploadContinuation = continuation
223 |                 lock.unlock()
224 |                 task.resume()
    |                      `- error: value of type 'URLSessionUploadTask' (aka 'AnyObject') has no member 'resume'
225 |             }
226 |         }, onCancel: {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:227:18: error: value of type 'URLSessionUploadTask' (aka 'AnyObject') has no member 'cancel'
225 |             }
226 |         }, onCancel: {
227 |             task.cancel()
    |                  `- error: value of type 'URLSessionUploadTask' (aka 'AnyObject') has no member 'cancel'
228 |         })
229 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:263:40: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
261 |             try FileManager.default.moveItem(at: location, to: destinationURL)
262 |             downloadedResponse = .init(
263 |                 response: downloadTask.response,
    |                                        `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
264 |                 statuscode: (downloadTask.response as? HTTPURLResponse)?.statusCode,
265 |                 error: nil,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:264:43: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
262 |             downloadedResponse = .init(
263 |                 response: downloadTask.response,
264 |                 statuscode: (downloadTask.response as? HTTPURLResponse)?.statusCode,
    |                                           `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
265 |                 error: nil,
266 |                 data: nil,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:264:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
262 |             downloadedResponse = .init(
263 |                 response: downloadTask.response,
264 |                 statuscode: (downloadTask.response as? HTTPURLResponse)?.statusCode,
    |                                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
265 |                 error: nil,
266 |                 data: nil,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:265:24: error: 'nil' requires a contextual type
263 |                 response: downloadTask.response,
264 |                 statuscode: (downloadTask.response as? HTTPURLResponse)?.statusCode,
265 |                 error: nil,
    |                        `- error: 'nil' requires a contextual type
266 |                 data: nil,
267 |                 string: nil,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:266:23: error: 'nil' requires a contextual type
264 |                 statuscode: (downloadTask.response as? HTTPURLResponse)?.statusCode,
265 |                 error: nil,
266 |                 data: nil,
    |                       `- error: 'nil' requires a contextual type
267 |                 string: nil,
268 |                 dictionary: nil,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:267:25: error: 'nil' requires a contextual type
265 |                 error: nil,
266 |                 data: nil,
267 |                 string: nil,
    |                         `- error: 'nil' requires a contextual type
268 |                 dictionary: nil,
269 |                 cookies: nil,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:268:29: error: 'nil' requires a contextual type
266 |                 data: nil,
267 |                 string: nil,
268 |                 dictionary: nil,
    |                             `- error: 'nil' requires a contextual type
269 |                 cookies: nil,
270 |                 request: downloadTask.originalRequest ?? .init(url: downloadTask.currentRequest?.url ?? location)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:269:26: error: 'nil' requires a contextual type
267 |                 string: nil,
268 |                 dictionary: nil,
269 |                 cookies: nil,
    |                          `- error: 'nil' requires a contextual type
270 |                 request: downloadTask.originalRequest ?? .init(url: downloadTask.currentRequest?.url ?? location)
271 |             )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:270:39: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'originalRequest'
268 |                 dictionary: nil,
269 |                 cookies: nil,
270 |                 request: downloadTask.originalRequest ?? .init(url: downloadTask.currentRequest?.url ?? location)
    |                                       `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'originalRequest'
271 |             )
272 |         } catch {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:270:59: error: cannot infer contextual base in reference to member 'init'
268 |                 dictionary: nil,
269 |                 cookies: nil,
270 |                 request: downloadTask.originalRequest ?? .init(url: downloadTask.currentRequest?.url ?? location)
    |                                                           `- error: cannot infer contextual base in reference to member 'init'
271 |             )
272 |         } catch {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:270:82: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'currentRequest'
268 |                 dictionary: nil,
269 |                 cookies: nil,
270 |                 request: downloadTask.originalRequest ?? .init(url: downloadTask.currentRequest?.url ?? location)
    |                                                                                  `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'currentRequest'
271 |             )
272 |         } catch {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:273:76: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'originalRequest'
271 |             )
272 |         } catch {
273 |             downloadedResponse = .init(error: error, request: downloadTask.originalRequest ?? .init(url: location))
    |                                                                            `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'originalRequest'
274 |         }
275 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:291:31: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
289 |             continuation.resume(returning: downloadedResponse ?? .init(
290 |                 error: error,
291 |                 request: task.originalRequest ?? .init(url: URL(fileURLWithPath: "/"))
    |                               `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
292 |             ))
293 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:291:51: error: cannot infer contextual base in reference to member 'init'
289 |             continuation.resume(returning: downloadedResponse ?? .init(
290 |                 error: error,
291 |                 request: task.originalRequest ?? .init(url: URL(fileURLWithPath: "/"))
    |                                                   `- error: cannot infer contextual base in reference to member 'init'
292 |             ))
293 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:299:32: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
297 |             let data = uploadData
298 |             continuation.resume(returning: .init(
299 |                 response: task.response,
    |                                `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
300 |                 statuscode: (task.response as? HTTPURLResponse)?.statusCode,
301 |                 error: error,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:300:35: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
298 |             continuation.resume(returning: .init(
299 |                 response: task.response,
300 |                 statuscode: (task.response as? HTTPURLResponse)?.statusCode,
    |                                   `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
301 |                 error: error,
302 |                 data: data,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:300:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
298 |             continuation.resume(returning: .init(
299 |                 response: task.response,
300 |                 statuscode: (task.response as? HTTPURLResponse)?.statusCode,
    |                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
301 |                 error: error,
302 |                 data: data,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:305:26: error: 'nil' requires a contextual type
303 |                 string: data.flatMap { String(data: $0, encoding: .utf8) },
304 |                 dictionary: data.flatMap { try? JSONSerialization.jsonObject(with: $0) as? [String: Any] },
305 |                 cookies: nil,
    |                          `- error: 'nil' requires a contextual type
306 |                 request: task.originalRequest ?? .init(url: URL(fileURLWithPath: "/"))
307 |             ))
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:306:31: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
304 |                 dictionary: data.flatMap { try? JSONSerialization.jsonObject(with: $0) as? [String: Any] },
305 |                 cookies: nil,
306 |                 request: task.originalRequest ?? .init(url: URL(fileURLWithPath: "/"))
    |                               `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
307 |             ))
308 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:306:51: error: cannot infer contextual base in reference to member 'init'
304 |                 dictionary: data.flatMap { try? JSONSerialization.jsonObject(with: $0) as? [String: Any] },
305 |                 cookies: nil,
306 |                 request: task.originalRequest ?? .init(url: URL(fileURLWithPath: "/"))
    |                                                   `- error: cannot infer contextual base in reference to member 'init'
307 |             ))
308 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:309:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
307 |             ))
308 |         }
309 |         session.finishTasksAndInvalidate()
    |                 `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
310 |     }
311 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:135:75: error: cannot find type 'URLRequest' in scope
133 |     }
134 |
135 |     private func createFileBackedUploadRequest(path: String) -> (request: URLRequest, boundary: String)? {
    |                                                                           `- error: cannot find type 'URLRequest' in scope
136 |         guard let siteURL = isURL(path) else { return nil }
137 |         let boundary = generateBoundary()
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:183:20: error: cannot find type 'URLRequest' in scope
181 |
182 |     private func uploadFileBackedRequest(
183 |         _ request: URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
184 |         bodyFile: URL,
185 |         onProgress: @escaping @Sendable (TransferProgress) -> Void
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:26:77: error: cannot infer contextual base in reference to member 'init'
 24 |     ) async -> NetworkResponse {
 25 |         guard let request = createFileBackedUploadRequest(path: path) else {
 26 |             return .init(error: NetworkingError.invalidURL(path), request: .init(url: defaultURL))
    |                                                                             `- error: cannot infer contextual base in reference to member 'init'
 27 |         }
 28 |
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:61:27: error: cannot infer contextual base in reference to member 'init'
 59 |                     message: "Error: Upload endpoint doesn't appear to be an URL"
 60 |                 ),
 61 |                 request: .init(url: defaultURL)
    |                           `- error: cannot infer contextual base in reference to member 'init'
 62 |             )
 63 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:27:23: error: cannot find type 'URLRequest' in scope
 25 |     /// - Returns: ``NetworkResponse``
 26 |     internal func exec( // swiftlint:disable:this function_body_length
 27 |         with request: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
 28 |         file: String = #file,
 29 |         line: Int = #line,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:115:23: error: cannot find type 'URLRequest' in scope
113 |     /// - Returns: ``NetworkResponse``
114 |     internal func exec(
115 |         with request: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
116 |         completionHandler: @escaping @Sendable (NetworkResponse) -> Void,
117 |         file: String = #file,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:94:31: error: cannot infer contextual base in reference to member 'init'
 92 |                         message: "Error: Upload endpoint doesn't appear to be an URL"
 93 |                     ),
 94 |                     request: .init(url: defaultURL)
    |                               `- error: cannot infer contextual base in reference to member 'init'
 95 |                 )
 96 |             )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:150:29: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
148 |         let bodyFile = FileManager.default.temporaryDirectory
149 |             .appendingPathComponent("SimpleNetworking-\(UUID().uuidString).multipart")
150 |         FileManager.default.createFile(atPath: bodyFile.path, contents: nil)
    |                             `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
151 |         let output = try FileHandle(forWritingTo: bodyFile)
152 |         defer { try? output.close() }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:198:56: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
196 |
197 |         let delegate = TransferDelegate(progressHandler: onProgress)
198 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
    |                                                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
199 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
200 |         var response = await delegate.upload(session: session, request: preparedRequest, bodyFile: bodyFile)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:199:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
197 |         let delegate = TransferDelegate(progressHandler: onProgress)
198 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
199 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
200 |         var response = await delegate.upload(session: session, request: preparedRequest, bodyFile: bodyFile)
201 |         saveCookies(from: response.response)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:199:99: error: 'nil' requires a contextual type
197 |         let delegate = TransferDelegate(progressHandler: onProgress)
198 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
199 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
    |                                                                                                   `- error: 'nil' requires a contextual type
200 |         var response = await delegate.upload(session: session, request: preparedRequest, bodyFile: bodyFile)
201 |         saveCookies(from: response.response)
[26/31] Compiling SimpleNetworking uploadMethods.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:131:18: error: cannot find type 'URLRequest' in scope
129 |         response: URLResponse?,
130 |         error: Error?,
131 |         request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
132 |     ) -> NetworkResponse {
133 |         let statusCode = (response as? HTTPURLResponse)?.statusCode
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:129:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
127 |     internal func response(
128 |         from data: Data?,
129 |         response: URLResponse?,
    |                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
130 |         error: Error?,
131 |         request: URLRequest
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/SimpleNetworking/SimpleNetworking/transfers.swift:168:41: error: cannot find type 'URLSessionDownloadDelegate' in scope
166 | }
167 |
168 | final class TransferDelegate: NSObject, URLSessionDownloadDelegate, URLSessionDataDelegate, @unchecked Sendable {
    |                                         `- error: cannot find type 'URLSessionDownloadDelegate' in scope
169 |     private let lock = NSLock()
170 |     private let progressHandler: @Sendable (SimpleNetworking.TransferProgress) -> Void
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:168:69: error: cannot find type 'URLSessionDataDelegate' in scope
166 | }
167 |
168 | final class TransferDelegate: NSObject, URLSessionDownloadDelegate, URLSessionDataDelegate, @unchecked Sendable {
    |                                                                     `- error: cannot find type 'URLSessionDataDelegate' in scope
169 |     private let lock = NSLock()
170 |     private let progressHandler: @Sendable (SimpleNetworking.TransferProgress) -> Void
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:185:49: error: cannot find type 'URLRequest' in scope
183 |     }
184 |
185 |     func download(session: URLSession, request: URLRequest) async -> SimpleNetworking.NetworkResponse {
    |                                                 `- error: cannot find type 'URLRequest' in scope
186 |         let task = session.downloadTask(with: request)
187 |         return await download(task: task)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:185:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
183 |     }
184 |
185 |     func download(session: URLSession, request: URLRequest) async -> SimpleNetworking.NetworkResponse {
    |                            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 |         let task = session.downloadTask(with: request)
187 |         return await download(task: task)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:190:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
188 |     }
189 |
190 |     func download(session: URLSession, resumeData: Data) async -> SimpleNetworking.NetworkResponse {
    |                            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
191 |         let task = session.downloadTask(withResumeData: resumeData)
192 |         return await download(task: task)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:195:33: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
193 |     }
194 |
195 |     private func download(task: URLSessionDownloadTask) async -> SimpleNetworking.NetworkResponse {
    |                                 `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |         return await withTaskCancellationHandler(operation: {
197 |             await withCheckedContinuation { continuation in
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:208:47: error: cannot find type 'URLRequest' in scope
206 |     }
207 |
208 |     func upload(session: URLSession, request: URLRequest) async -> SimpleNetworking.NetworkResponse {
    |                                               `- error: cannot find type 'URLRequest' in scope
209 |         let task = session.uploadTask(with: request, from: request.httpBody ?? Data())
210 |         return await upload(task: task)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:208:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 |     }
207 |
208 |     func upload(session: URLSession, request: URLRequest) async -> SimpleNetworking.NetworkResponse {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
209 |         let task = session.uploadTask(with: request, from: request.httpBody ?? Data())
210 |         return await upload(task: task)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:213:47: error: cannot find type 'URLRequest' in scope
211 |     }
212 |
213 |     func upload(session: URLSession, request: URLRequest, bodyFile: URL) async -> SimpleNetworking.NetworkResponse {
    |                                               `- error: cannot find type 'URLRequest' in scope
214 |         let task = session.uploadTask(with: request, fromFile: bodyFile)
215 |         return await upload(task: task)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:213:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 |     }
212 |
213 |     func upload(session: URLSession, request: URLRequest, bodyFile: URL) async -> SimpleNetworking.NetworkResponse {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 |         let task = session.uploadTask(with: request, fromFile: bodyFile)
215 |         return await upload(task: task)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:218:31: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
216 |     }
217 |
218 |     private func upload(task: URLSessionUploadTask) async -> SimpleNetworking.NetworkResponse {
    |                               `- error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
219 |         return await withTaskCancellationHandler(operation: {
220 |             await withCheckedContinuation { continuation in
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionUploadTask = AnyObject
  |                  `- note: 'URLSessionUploadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:232:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
230 |
231 |     func urlSession(
232 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
233 |         downloadTask: URLSessionDownloadTask,
234 |         didWriteData bytesWritten: Int64,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:233:23: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
231 |     func urlSession(
232 |         _ session: URLSession,
233 |         downloadTask: URLSessionDownloadTask,
    |                       `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
234 |         didWriteData bytesWritten: Int64,
235 |         totalBytesWritten: Int64,
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:242:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
240 |
241 |     func urlSession(
242 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
243 |         task: URLSessionTask,
244 |         didSendBodyData bytesSent: Int64,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:243:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
241 |     func urlSession(
242 |         _ session: URLSession,
243 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
244 |         didSendBodyData bytesSent: Int64,
245 |         totalBytesSent: Int64,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:251:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
249 |     }
250 |
251 |     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.
252 |         do {
253 |             guard let destinationURL else { throw CocoaError(.fileNoSuchFile) }
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/SimpleNetworking/SimpleNetworking/transfers.swift:251:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
249 |     }
250 |
251 |     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.
252 |         do {
253 |             guard let destinationURL else { throw CocoaError(.fileNoSuchFile) }
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/SimpleNetworking/SimpleNetworking/transfers.swift:277:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 |     }
276 |
277 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
278 |         lock.lock()
279 |         uploadData = (uploadData ?? Data()) + data
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/SimpleNetworking/SimpleNetworking/transfers.swift:277:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 |     }
276 |
277 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
    |                                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
278 |         lock.lock()
279 |         uploadData = (uploadData ?? Data()) + data
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:283:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
281 |     }
282 |
283 |     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.
284 |         lock.lock()
285 |         defer { lock.unlock() }
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/SimpleNetworking/SimpleNetworking/transfers.swift:283:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
281 |     }
282 |
283 |     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.
284 |         lock.lock()
285 |         defer { lock.unlock() }
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/SimpleNetworking/Structs/NetworkResponse.swift:55:29: error: cannot find type 'URLRequest' in scope
 53 |
 54 |         /// Request
 55 |         public var request: URLRequest
    |                             `- error: cannot find type 'URLRequest' in scope
 56 |
 57 |         /// Whether this response has a 2xx HTTP status and no transport error.
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:27:27: error: cannot infer contextual base in reference to member 'init'
 25 |             return .init(
 26 |                 error: NetworkingError(message: "Error: Download endpoint doesn't appear to be an URL"),
 27 |                 request: .init(url: defaultURL)
    |                           `- error: cannot infer contextual base in reference to member 'init'
 28 |             )
 29 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:160:46: error: cannot find type 'URLRequest' in scope
158 |     }
159 |
160 |     internal func createRequest(url: URL) -> URLRequest {
    |                                              `- error: cannot find type 'URLRequest' in scope
161 |         let settings = requestSettings()
162 |         // Create a URL Request
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:23:54: error: cannot find type 'URLRequest' in scope
 21 |     }
 22 |
 23 |     internal func addStoredCookies(to request: inout URLRequest) {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 24 |         let storedCookies = withStateLock { cookieStorage ?? [] }
 25 |
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:47:56: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 45 |
 46 |         let delegate = TransferDelegate(progressHandler: onProgress, destinationURL: destinationURL)
 47 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
    |                                                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 48 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
 49 |         var response = await delegate.download(session: session, request: request)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:48:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 46 |         let delegate = TransferDelegate(progressHandler: onProgress, destinationURL: destinationURL)
 47 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
 48 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 49 |         var response = await delegate.download(session: session, request: request)
 50 |         saveCookies(from: response.response)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:48:99: error: 'nil' requires a contextual type
 46 |         let delegate = TransferDelegate(progressHandler: onProgress, destinationURL: destinationURL)
 47 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
 48 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
    |                                                                                                   `- error: 'nil' requires a contextual type
 49 |         var response = await delegate.download(session: session, request: request)
 50 |         saveCookies(from: response.response)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:49:47: error: incorrect argument label in call (have 'session:request:', expected 'session:resumeData:')
 47 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
 48 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
 49 |         var response = await delegate.download(session: session, request: request)
    |                                               `- error: incorrect argument label in call (have 'session:request:', expected 'session:resumeData:')
 50 |         saveCookies(from: response.response)
 51 |         response.cookies = cookieSnapshot()
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:69:56: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 67 |     ) async -> NetworkResponse {
 68 |         let delegate = TransferDelegate(progressHandler: onProgress, destinationURL: destinationURL)
 69 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
    |                                                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 70 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
 71 |         var response = await delegate.download(session: session, resumeData: resumeData)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:70:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 68 |         let delegate = TransferDelegate(progressHandler: onProgress, destinationURL: destinationURL)
 69 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
 70 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 71 |         var response = await delegate.download(session: session, resumeData: resumeData)
 72 |         saveCookies(from: response.response)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:70:99: error: 'nil' requires a contextual type
 68 |         let delegate = TransferDelegate(progressHandler: onProgress, destinationURL: destinationURL)
 69 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
 70 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
    |                                                                                                   `- error: 'nil' requires a contextual type
 71 |         var response = await delegate.download(session: session, resumeData: resumeData)
 72 |         saveCookies(from: response.response)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:108:89: error: cannot find type 'URLRequest' in scope
106 |     ///   - uploadData: The multipart upload data
107 |     /// - Returns: URLRequest or nil if URL is invalid
108 |     internal func createUploadRequest(path: String, uploadData: MultipartUploadData) -> URLRequest? {
    |                                                                                         `- error: cannot find type 'URLRequest' in scope
109 |         guard let siteURL = self.isURL(path) else {
110 |             return nil
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:86:27: error: cannot infer contextual base in reference to member 'init'
 84 |             return .init(
 85 |                 error: NetworkingError(message: "Error: Upload endpoint doesn't appear to be an URL"),
 86 |                 request: .init(url: defaultURL)
    |                           `- error: cannot infer contextual base in reference to member 'init'
 87 |             )
 88 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:101:56: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 99 |
100 |         let delegate = TransferDelegate(progressHandler: onProgress)
101 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
    |                                                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
102 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
103 |         var response = await delegate.upload(session: session, request: preparedRequest)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:102:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 |         let delegate = TransferDelegate(progressHandler: onProgress)
101 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
102 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
103 |         var response = await delegate.upload(session: session, request: preparedRequest)
104 |         saveCookies(from: response.response)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:102:99: error: 'nil' requires a contextual type
100 |         let delegate = TransferDelegate(progressHandler: onProgress)
101 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
102 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
    |                                                                                                   `- error: 'nil' requires a contextual type
103 |         var response = await delegate.upload(session: session, request: preparedRequest)
104 |         saveCookies(from: response.response)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:133:36: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
131 |         request: URLRequest
132 |     ) -> NetworkResponse {
133 |         let statusCode = (response as? HTTPURLResponse)?.statusCode
    |                                    `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
134 |         var networkResponse = NetworkResponse(
135 |             response: response,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:133:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |         request: URLRequest
132 |     ) -> NetworkResponse {
133 |         let statusCode = (response as? HTTPURLResponse)?.statusCode
    |                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
134 |         var networkResponse = NetworkResponse(
135 |             response: response,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:186:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
184 |
185 |     func download(session: URLSession, request: URLRequest) async -> SimpleNetworking.NetworkResponse {
186 |         let task = session.downloadTask(with: request)
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
187 |         return await download(task: task)
188 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:191:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
189 |
190 |     func download(session: URLSession, resumeData: Data) async -> SimpleNetworking.NetworkResponse {
191 |         let task = session.downloadTask(withResumeData: resumeData)
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
192 |         return await download(task: task)
193 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:201:22: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'resume'
199 |                 downloadContinuation = continuation
200 |                 lock.unlock()
201 |                 task.resume()
    |                      `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'resume'
202 |             }
203 |         }, onCancel: {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:204:18: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'cancel'
202 |             }
203 |         }, onCancel: {
204 |             task.cancel()
    |                  `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'cancel'
205 |         })
206 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:209:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
207 |
208 |     func upload(session: URLSession, request: URLRequest) async -> SimpleNetworking.NetworkResponse {
209 |         let task = session.uploadTask(with: request, from: request.httpBody ?? Data())
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
210 |         return await upload(task: task)
211 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:214:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
212 |
213 |     func upload(session: URLSession, request: URLRequest, bodyFile: URL) async -> SimpleNetworking.NetworkResponse {
214 |         let task = session.uploadTask(with: request, fromFile: bodyFile)
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
215 |         return await upload(task: task)
216 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:224:22: error: value of type 'URLSessionUploadTask' (aka 'AnyObject') has no member 'resume'
222 |                 uploadContinuation = continuation
223 |                 lock.unlock()
224 |                 task.resume()
    |                      `- error: value of type 'URLSessionUploadTask' (aka 'AnyObject') has no member 'resume'
225 |             }
226 |         }, onCancel: {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:227:18: error: value of type 'URLSessionUploadTask' (aka 'AnyObject') has no member 'cancel'
225 |             }
226 |         }, onCancel: {
227 |             task.cancel()
    |                  `- error: value of type 'URLSessionUploadTask' (aka 'AnyObject') has no member 'cancel'
228 |         })
229 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:263:40: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
261 |             try FileManager.default.moveItem(at: location, to: destinationURL)
262 |             downloadedResponse = .init(
263 |                 response: downloadTask.response,
    |                                        `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
264 |                 statuscode: (downloadTask.response as? HTTPURLResponse)?.statusCode,
265 |                 error: nil,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:264:43: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
262 |             downloadedResponse = .init(
263 |                 response: downloadTask.response,
264 |                 statuscode: (downloadTask.response as? HTTPURLResponse)?.statusCode,
    |                                           `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
265 |                 error: nil,
266 |                 data: nil,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:264:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
262 |             downloadedResponse = .init(
263 |                 response: downloadTask.response,
264 |                 statuscode: (downloadTask.response as? HTTPURLResponse)?.statusCode,
    |                                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
265 |                 error: nil,
266 |                 data: nil,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:265:24: error: 'nil' requires a contextual type
263 |                 response: downloadTask.response,
264 |                 statuscode: (downloadTask.response as? HTTPURLResponse)?.statusCode,
265 |                 error: nil,
    |                        `- error: 'nil' requires a contextual type
266 |                 data: nil,
267 |                 string: nil,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:266:23: error: 'nil' requires a contextual type
264 |                 statuscode: (downloadTask.response as? HTTPURLResponse)?.statusCode,
265 |                 error: nil,
266 |                 data: nil,
    |                       `- error: 'nil' requires a contextual type
267 |                 string: nil,
268 |                 dictionary: nil,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:267:25: error: 'nil' requires a contextual type
265 |                 error: nil,
266 |                 data: nil,
267 |                 string: nil,
    |                         `- error: 'nil' requires a contextual type
268 |                 dictionary: nil,
269 |                 cookies: nil,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:268:29: error: 'nil' requires a contextual type
266 |                 data: nil,
267 |                 string: nil,
268 |                 dictionary: nil,
    |                             `- error: 'nil' requires a contextual type
269 |                 cookies: nil,
270 |                 request: downloadTask.originalRequest ?? .init(url: downloadTask.currentRequest?.url ?? location)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:269:26: error: 'nil' requires a contextual type
267 |                 string: nil,
268 |                 dictionary: nil,
269 |                 cookies: nil,
    |                          `- error: 'nil' requires a contextual type
270 |                 request: downloadTask.originalRequest ?? .init(url: downloadTask.currentRequest?.url ?? location)
271 |             )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:270:39: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'originalRequest'
268 |                 dictionary: nil,
269 |                 cookies: nil,
270 |                 request: downloadTask.originalRequest ?? .init(url: downloadTask.currentRequest?.url ?? location)
    |                                       `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'originalRequest'
271 |             )
272 |         } catch {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:270:59: error: cannot infer contextual base in reference to member 'init'
268 |                 dictionary: nil,
269 |                 cookies: nil,
270 |                 request: downloadTask.originalRequest ?? .init(url: downloadTask.currentRequest?.url ?? location)
    |                                                           `- error: cannot infer contextual base in reference to member 'init'
271 |             )
272 |         } catch {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:270:82: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'currentRequest'
268 |                 dictionary: nil,
269 |                 cookies: nil,
270 |                 request: downloadTask.originalRequest ?? .init(url: downloadTask.currentRequest?.url ?? location)
    |                                                                                  `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'currentRequest'
271 |             )
272 |         } catch {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:273:76: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'originalRequest'
271 |             )
272 |         } catch {
273 |             downloadedResponse = .init(error: error, request: downloadTask.originalRequest ?? .init(url: location))
    |                                                                            `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'originalRequest'
274 |         }
275 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:291:31: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
289 |             continuation.resume(returning: downloadedResponse ?? .init(
290 |                 error: error,
291 |                 request: task.originalRequest ?? .init(url: URL(fileURLWithPath: "/"))
    |                               `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
292 |             ))
293 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:291:51: error: cannot infer contextual base in reference to member 'init'
289 |             continuation.resume(returning: downloadedResponse ?? .init(
290 |                 error: error,
291 |                 request: task.originalRequest ?? .init(url: URL(fileURLWithPath: "/"))
    |                                                   `- error: cannot infer contextual base in reference to member 'init'
292 |             ))
293 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:299:32: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
297 |             let data = uploadData
298 |             continuation.resume(returning: .init(
299 |                 response: task.response,
    |                                `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
300 |                 statuscode: (task.response as? HTTPURLResponse)?.statusCode,
301 |                 error: error,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:300:35: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
298 |             continuation.resume(returning: .init(
299 |                 response: task.response,
300 |                 statuscode: (task.response as? HTTPURLResponse)?.statusCode,
    |                                   `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
301 |                 error: error,
302 |                 data: data,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:300:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
298 |             continuation.resume(returning: .init(
299 |                 response: task.response,
300 |                 statuscode: (task.response as? HTTPURLResponse)?.statusCode,
    |                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
301 |                 error: error,
302 |                 data: data,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:305:26: error: 'nil' requires a contextual type
303 |                 string: data.flatMap { String(data: $0, encoding: .utf8) },
304 |                 dictionary: data.flatMap { try? JSONSerialization.jsonObject(with: $0) as? [String: Any] },
305 |                 cookies: nil,
    |                          `- error: 'nil' requires a contextual type
306 |                 request: task.originalRequest ?? .init(url: URL(fileURLWithPath: "/"))
307 |             ))
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:306:31: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
304 |                 dictionary: data.flatMap { try? JSONSerialization.jsonObject(with: $0) as? [String: Any] },
305 |                 cookies: nil,
306 |                 request: task.originalRequest ?? .init(url: URL(fileURLWithPath: "/"))
    |                               `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
307 |             ))
308 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:306:51: error: cannot infer contextual base in reference to member 'init'
304 |                 dictionary: data.flatMap { try? JSONSerialization.jsonObject(with: $0) as? [String: Any] },
305 |                 cookies: nil,
306 |                 request: task.originalRequest ?? .init(url: URL(fileURLWithPath: "/"))
    |                                                   `- error: cannot infer contextual base in reference to member 'init'
307 |             ))
308 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:309:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
307 |             ))
308 |         }
309 |         session.finishTasksAndInvalidate()
    |                 `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
310 |     }
311 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:135:75: error: cannot find type 'URLRequest' in scope
133 |     }
134 |
135 |     private func createFileBackedUploadRequest(path: String) -> (request: URLRequest, boundary: String)? {
    |                                                                           `- error: cannot find type 'URLRequest' in scope
136 |         guard let siteURL = isURL(path) else { return nil }
137 |         let boundary = generateBoundary()
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:183:20: error: cannot find type 'URLRequest' in scope
181 |
182 |     private func uploadFileBackedRequest(
183 |         _ request: URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
184 |         bodyFile: URL,
185 |         onProgress: @escaping @Sendable (TransferProgress) -> Void
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:26:77: error: cannot infer contextual base in reference to member 'init'
 24 |     ) async -> NetworkResponse {
 25 |         guard let request = createFileBackedUploadRequest(path: path) else {
 26 |             return .init(error: NetworkingError.invalidURL(path), request: .init(url: defaultURL))
    |                                                                             `- error: cannot infer contextual base in reference to member 'init'
 27 |         }
 28 |
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:61:27: error: cannot infer contextual base in reference to member 'init'
 59 |                     message: "Error: Upload endpoint doesn't appear to be an URL"
 60 |                 ),
 61 |                 request: .init(url: defaultURL)
    |                           `- error: cannot infer contextual base in reference to member 'init'
 62 |             )
 63 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:27:23: error: cannot find type 'URLRequest' in scope
 25 |     /// - Returns: ``NetworkResponse``
 26 |     internal func exec( // swiftlint:disable:this function_body_length
 27 |         with request: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
 28 |         file: String = #file,
 29 |         line: Int = #line,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:115:23: error: cannot find type 'URLRequest' in scope
113 |     /// - Returns: ``NetworkResponse``
114 |     internal func exec(
115 |         with request: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
116 |         completionHandler: @escaping @Sendable (NetworkResponse) -> Void,
117 |         file: String = #file,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:94:31: error: cannot infer contextual base in reference to member 'init'
 92 |                         message: "Error: Upload endpoint doesn't appear to be an URL"
 93 |                     ),
 94 |                     request: .init(url: defaultURL)
    |                               `- error: cannot infer contextual base in reference to member 'init'
 95 |                 )
 96 |             )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:150:29: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
148 |         let bodyFile = FileManager.default.temporaryDirectory
149 |             .appendingPathComponent("SimpleNetworking-\(UUID().uuidString).multipart")
150 |         FileManager.default.createFile(atPath: bodyFile.path, contents: nil)
    |                             `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
151 |         let output = try FileHandle(forWritingTo: bodyFile)
152 |         defer { try? output.close() }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:198:56: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
196 |
197 |         let delegate = TransferDelegate(progressHandler: onProgress)
198 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
    |                                                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
199 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
200 |         var response = await delegate.upload(session: session, request: preparedRequest, bodyFile: bodyFile)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:199:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
197 |         let delegate = TransferDelegate(progressHandler: onProgress)
198 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
199 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
200 |         var response = await delegate.upload(session: session, request: preparedRequest, bodyFile: bodyFile)
201 |         saveCookies(from: response.response)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:199:99: error: 'nil' requires a contextual type
197 |         let delegate = TransferDelegate(progressHandler: onProgress)
198 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
199 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
    |                                                                                                   `- error: 'nil' requires a contextual type
200 |         var response = await delegate.upload(session: session, request: preparedRequest, bodyFile: bodyFile)
201 |         saveCookies(from: response.response)
[27/31] Compiling SimpleNetworking Debug.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:131:18: error: cannot find type 'URLRequest' in scope
129 |         response: URLResponse?,
130 |         error: Error?,
131 |         request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
132 |     ) -> NetworkResponse {
133 |         let statusCode = (response as? HTTPURLResponse)?.statusCode
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:129:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
127 |     internal func response(
128 |         from data: Data?,
129 |         response: URLResponse?,
    |                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
130 |         error: Error?,
131 |         request: URLRequest
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/SimpleNetworking/SimpleNetworking/transfers.swift:168:41: error: cannot find type 'URLSessionDownloadDelegate' in scope
166 | }
167 |
168 | final class TransferDelegate: NSObject, URLSessionDownloadDelegate, URLSessionDataDelegate, @unchecked Sendable {
    |                                         `- error: cannot find type 'URLSessionDownloadDelegate' in scope
169 |     private let lock = NSLock()
170 |     private let progressHandler: @Sendable (SimpleNetworking.TransferProgress) -> Void
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:168:69: error: cannot find type 'URLSessionDataDelegate' in scope
166 | }
167 |
168 | final class TransferDelegate: NSObject, URLSessionDownloadDelegate, URLSessionDataDelegate, @unchecked Sendable {
    |                                                                     `- error: cannot find type 'URLSessionDataDelegate' in scope
169 |     private let lock = NSLock()
170 |     private let progressHandler: @Sendable (SimpleNetworking.TransferProgress) -> Void
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:185:49: error: cannot find type 'URLRequest' in scope
183 |     }
184 |
185 |     func download(session: URLSession, request: URLRequest) async -> SimpleNetworking.NetworkResponse {
    |                                                 `- error: cannot find type 'URLRequest' in scope
186 |         let task = session.downloadTask(with: request)
187 |         return await download(task: task)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:185:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
183 |     }
184 |
185 |     func download(session: URLSession, request: URLRequest) async -> SimpleNetworking.NetworkResponse {
    |                            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 |         let task = session.downloadTask(with: request)
187 |         return await download(task: task)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:190:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
188 |     }
189 |
190 |     func download(session: URLSession, resumeData: Data) async -> SimpleNetworking.NetworkResponse {
    |                            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
191 |         let task = session.downloadTask(withResumeData: resumeData)
192 |         return await download(task: task)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:195:33: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
193 |     }
194 |
195 |     private func download(task: URLSessionDownloadTask) async -> SimpleNetworking.NetworkResponse {
    |                                 `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |         return await withTaskCancellationHandler(operation: {
197 |             await withCheckedContinuation { continuation in
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:208:47: error: cannot find type 'URLRequest' in scope
206 |     }
207 |
208 |     func upload(session: URLSession, request: URLRequest) async -> SimpleNetworking.NetworkResponse {
    |                                               `- error: cannot find type 'URLRequest' in scope
209 |         let task = session.uploadTask(with: request, from: request.httpBody ?? Data())
210 |         return await upload(task: task)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:208:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 |     }
207 |
208 |     func upload(session: URLSession, request: URLRequest) async -> SimpleNetworking.NetworkResponse {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
209 |         let task = session.uploadTask(with: request, from: request.httpBody ?? Data())
210 |         return await upload(task: task)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:213:47: error: cannot find type 'URLRequest' in scope
211 |     }
212 |
213 |     func upload(session: URLSession, request: URLRequest, bodyFile: URL) async -> SimpleNetworking.NetworkResponse {
    |                                               `- error: cannot find type 'URLRequest' in scope
214 |         let task = session.uploadTask(with: request, fromFile: bodyFile)
215 |         return await upload(task: task)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:213:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 |     }
212 |
213 |     func upload(session: URLSession, request: URLRequest, bodyFile: URL) async -> SimpleNetworking.NetworkResponse {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 |         let task = session.uploadTask(with: request, fromFile: bodyFile)
215 |         return await upload(task: task)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:218:31: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
216 |     }
217 |
218 |     private func upload(task: URLSessionUploadTask) async -> SimpleNetworking.NetworkResponse {
    |                               `- error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
219 |         return await withTaskCancellationHandler(operation: {
220 |             await withCheckedContinuation { continuation in
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionUploadTask = AnyObject
  |                  `- note: 'URLSessionUploadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:232:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
230 |
231 |     func urlSession(
232 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
233 |         downloadTask: URLSessionDownloadTask,
234 |         didWriteData bytesWritten: Int64,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:233:23: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
231 |     func urlSession(
232 |         _ session: URLSession,
233 |         downloadTask: URLSessionDownloadTask,
    |                       `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
234 |         didWriteData bytesWritten: Int64,
235 |         totalBytesWritten: Int64,
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:242:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
240 |
241 |     func urlSession(
242 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
243 |         task: URLSessionTask,
244 |         didSendBodyData bytesSent: Int64,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:243:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
241 |     func urlSession(
242 |         _ session: URLSession,
243 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
244 |         didSendBodyData bytesSent: Int64,
245 |         totalBytesSent: Int64,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:251:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
249 |     }
250 |
251 |     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.
252 |         do {
253 |             guard let destinationURL else { throw CocoaError(.fileNoSuchFile) }
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/SimpleNetworking/SimpleNetworking/transfers.swift:251:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
249 |     }
250 |
251 |     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.
252 |         do {
253 |             guard let destinationURL else { throw CocoaError(.fileNoSuchFile) }
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/SimpleNetworking/SimpleNetworking/transfers.swift:277:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 |     }
276 |
277 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
278 |         lock.lock()
279 |         uploadData = (uploadData ?? Data()) + data
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/SimpleNetworking/SimpleNetworking/transfers.swift:277:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 |     }
276 |
277 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
    |                                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
278 |         lock.lock()
279 |         uploadData = (uploadData ?? Data()) + data
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:283:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
281 |     }
282 |
283 |     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.
284 |         lock.lock()
285 |         defer { lock.unlock() }
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/SimpleNetworking/SimpleNetworking/transfers.swift:283:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
281 |     }
282 |
283 |     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.
284 |         lock.lock()
285 |         defer { lock.unlock() }
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/SimpleNetworking/Structs/NetworkResponse.swift:55:29: error: cannot find type 'URLRequest' in scope
 53 |
 54 |         /// Request
 55 |         public var request: URLRequest
    |                             `- error: cannot find type 'URLRequest' in scope
 56 |
 57 |         /// Whether this response has a 2xx HTTP status and no transport error.
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:27:27: error: cannot infer contextual base in reference to member 'init'
 25 |             return .init(
 26 |                 error: NetworkingError(message: "Error: Download endpoint doesn't appear to be an URL"),
 27 |                 request: .init(url: defaultURL)
    |                           `- error: cannot infer contextual base in reference to member 'init'
 28 |             )
 29 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:160:46: error: cannot find type 'URLRequest' in scope
158 |     }
159 |
160 |     internal func createRequest(url: URL) -> URLRequest {
    |                                              `- error: cannot find type 'URLRequest' in scope
161 |         let settings = requestSettings()
162 |         // Create a URL Request
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:23:54: error: cannot find type 'URLRequest' in scope
 21 |     }
 22 |
 23 |     internal func addStoredCookies(to request: inout URLRequest) {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 24 |         let storedCookies = withStateLock { cookieStorage ?? [] }
 25 |
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:47:56: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 45 |
 46 |         let delegate = TransferDelegate(progressHandler: onProgress, destinationURL: destinationURL)
 47 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
    |                                                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 48 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
 49 |         var response = await delegate.download(session: session, request: request)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:48:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 46 |         let delegate = TransferDelegate(progressHandler: onProgress, destinationURL: destinationURL)
 47 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
 48 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 49 |         var response = await delegate.download(session: session, request: request)
 50 |         saveCookies(from: response.response)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:48:99: error: 'nil' requires a contextual type
 46 |         let delegate = TransferDelegate(progressHandler: onProgress, destinationURL: destinationURL)
 47 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
 48 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
    |                                                                                                   `- error: 'nil' requires a contextual type
 49 |         var response = await delegate.download(session: session, request: request)
 50 |         saveCookies(from: response.response)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:49:47: error: incorrect argument label in call (have 'session:request:', expected 'session:resumeData:')
 47 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
 48 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
 49 |         var response = await delegate.download(session: session, request: request)
    |                                               `- error: incorrect argument label in call (have 'session:request:', expected 'session:resumeData:')
 50 |         saveCookies(from: response.response)
 51 |         response.cookies = cookieSnapshot()
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:69:56: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 67 |     ) async -> NetworkResponse {
 68 |         let delegate = TransferDelegate(progressHandler: onProgress, destinationURL: destinationURL)
 69 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
    |                                                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 70 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
 71 |         var response = await delegate.download(session: session, resumeData: resumeData)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:70:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 68 |         let delegate = TransferDelegate(progressHandler: onProgress, destinationURL: destinationURL)
 69 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
 70 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 71 |         var response = await delegate.download(session: session, resumeData: resumeData)
 72 |         saveCookies(from: response.response)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:70:99: error: 'nil' requires a contextual type
 68 |         let delegate = TransferDelegate(progressHandler: onProgress, destinationURL: destinationURL)
 69 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
 70 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
    |                                                                                                   `- error: 'nil' requires a contextual type
 71 |         var response = await delegate.download(session: session, resumeData: resumeData)
 72 |         saveCookies(from: response.response)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:108:89: error: cannot find type 'URLRequest' in scope
106 |     ///   - uploadData: The multipart upload data
107 |     /// - Returns: URLRequest or nil if URL is invalid
108 |     internal func createUploadRequest(path: String, uploadData: MultipartUploadData) -> URLRequest? {
    |                                                                                         `- error: cannot find type 'URLRequest' in scope
109 |         guard let siteURL = self.isURL(path) else {
110 |             return nil
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:86:27: error: cannot infer contextual base in reference to member 'init'
 84 |             return .init(
 85 |                 error: NetworkingError(message: "Error: Upload endpoint doesn't appear to be an URL"),
 86 |                 request: .init(url: defaultURL)
    |                           `- error: cannot infer contextual base in reference to member 'init'
 87 |             )
 88 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:101:56: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 99 |
100 |         let delegate = TransferDelegate(progressHandler: onProgress)
101 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
    |                                                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
102 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
103 |         var response = await delegate.upload(session: session, request: preparedRequest)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:102:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 |         let delegate = TransferDelegate(progressHandler: onProgress)
101 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
102 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
103 |         var response = await delegate.upload(session: session, request: preparedRequest)
104 |         saveCookies(from: response.response)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:102:99: error: 'nil' requires a contextual type
100 |         let delegate = TransferDelegate(progressHandler: onProgress)
101 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
102 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
    |                                                                                                   `- error: 'nil' requires a contextual type
103 |         var response = await delegate.upload(session: session, request: preparedRequest)
104 |         saveCookies(from: response.response)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:133:36: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
131 |         request: URLRequest
132 |     ) -> NetworkResponse {
133 |         let statusCode = (response as? HTTPURLResponse)?.statusCode
    |                                    `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
134 |         var networkResponse = NetworkResponse(
135 |             response: response,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:133:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |         request: URLRequest
132 |     ) -> NetworkResponse {
133 |         let statusCode = (response as? HTTPURLResponse)?.statusCode
    |                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
134 |         var networkResponse = NetworkResponse(
135 |             response: response,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:186:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
184 |
185 |     func download(session: URLSession, request: URLRequest) async -> SimpleNetworking.NetworkResponse {
186 |         let task = session.downloadTask(with: request)
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
187 |         return await download(task: task)
188 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:191:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
189 |
190 |     func download(session: URLSession, resumeData: Data) async -> SimpleNetworking.NetworkResponse {
191 |         let task = session.downloadTask(withResumeData: resumeData)
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
192 |         return await download(task: task)
193 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:201:22: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'resume'
199 |                 downloadContinuation = continuation
200 |                 lock.unlock()
201 |                 task.resume()
    |                      `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'resume'
202 |             }
203 |         }, onCancel: {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:204:18: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'cancel'
202 |             }
203 |         }, onCancel: {
204 |             task.cancel()
    |                  `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'cancel'
205 |         })
206 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:209:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
207 |
208 |     func upload(session: URLSession, request: URLRequest) async -> SimpleNetworking.NetworkResponse {
209 |         let task = session.uploadTask(with: request, from: request.httpBody ?? Data())
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
210 |         return await upload(task: task)
211 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:214:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
212 |
213 |     func upload(session: URLSession, request: URLRequest, bodyFile: URL) async -> SimpleNetworking.NetworkResponse {
214 |         let task = session.uploadTask(with: request, fromFile: bodyFile)
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
215 |         return await upload(task: task)
216 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:224:22: error: value of type 'URLSessionUploadTask' (aka 'AnyObject') has no member 'resume'
222 |                 uploadContinuation = continuation
223 |                 lock.unlock()
224 |                 task.resume()
    |                      `- error: value of type 'URLSessionUploadTask' (aka 'AnyObject') has no member 'resume'
225 |             }
226 |         }, onCancel: {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:227:18: error: value of type 'URLSessionUploadTask' (aka 'AnyObject') has no member 'cancel'
225 |             }
226 |         }, onCancel: {
227 |             task.cancel()
    |                  `- error: value of type 'URLSessionUploadTask' (aka 'AnyObject') has no member 'cancel'
228 |         })
229 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:263:40: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
261 |             try FileManager.default.moveItem(at: location, to: destinationURL)
262 |             downloadedResponse = .init(
263 |                 response: downloadTask.response,
    |                                        `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
264 |                 statuscode: (downloadTask.response as? HTTPURLResponse)?.statusCode,
265 |                 error: nil,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:264:43: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
262 |             downloadedResponse = .init(
263 |                 response: downloadTask.response,
264 |                 statuscode: (downloadTask.response as? HTTPURLResponse)?.statusCode,
    |                                           `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
265 |                 error: nil,
266 |                 data: nil,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:264:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
262 |             downloadedResponse = .init(
263 |                 response: downloadTask.response,
264 |                 statuscode: (downloadTask.response as? HTTPURLResponse)?.statusCode,
    |                                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
265 |                 error: nil,
266 |                 data: nil,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:265:24: error: 'nil' requires a contextual type
263 |                 response: downloadTask.response,
264 |                 statuscode: (downloadTask.response as? HTTPURLResponse)?.statusCode,
265 |                 error: nil,
    |                        `- error: 'nil' requires a contextual type
266 |                 data: nil,
267 |                 string: nil,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:266:23: error: 'nil' requires a contextual type
264 |                 statuscode: (downloadTask.response as? HTTPURLResponse)?.statusCode,
265 |                 error: nil,
266 |                 data: nil,
    |                       `- error: 'nil' requires a contextual type
267 |                 string: nil,
268 |                 dictionary: nil,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:267:25: error: 'nil' requires a contextual type
265 |                 error: nil,
266 |                 data: nil,
267 |                 string: nil,
    |                         `- error: 'nil' requires a contextual type
268 |                 dictionary: nil,
269 |                 cookies: nil,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:268:29: error: 'nil' requires a contextual type
266 |                 data: nil,
267 |                 string: nil,
268 |                 dictionary: nil,
    |                             `- error: 'nil' requires a contextual type
269 |                 cookies: nil,
270 |                 request: downloadTask.originalRequest ?? .init(url: downloadTask.currentRequest?.url ?? location)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:269:26: error: 'nil' requires a contextual type
267 |                 string: nil,
268 |                 dictionary: nil,
269 |                 cookies: nil,
    |                          `- error: 'nil' requires a contextual type
270 |                 request: downloadTask.originalRequest ?? .init(url: downloadTask.currentRequest?.url ?? location)
271 |             )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:270:39: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'originalRequest'
268 |                 dictionary: nil,
269 |                 cookies: nil,
270 |                 request: downloadTask.originalRequest ?? .init(url: downloadTask.currentRequest?.url ?? location)
    |                                       `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'originalRequest'
271 |             )
272 |         } catch {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:270:59: error: cannot infer contextual base in reference to member 'init'
268 |                 dictionary: nil,
269 |                 cookies: nil,
270 |                 request: downloadTask.originalRequest ?? .init(url: downloadTask.currentRequest?.url ?? location)
    |                                                           `- error: cannot infer contextual base in reference to member 'init'
271 |             )
272 |         } catch {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:270:82: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'currentRequest'
268 |                 dictionary: nil,
269 |                 cookies: nil,
270 |                 request: downloadTask.originalRequest ?? .init(url: downloadTask.currentRequest?.url ?? location)
    |                                                                                  `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'currentRequest'
271 |             )
272 |         } catch {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:273:76: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'originalRequest'
271 |             )
272 |         } catch {
273 |             downloadedResponse = .init(error: error, request: downloadTask.originalRequest ?? .init(url: location))
    |                                                                            `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'originalRequest'
274 |         }
275 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:291:31: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
289 |             continuation.resume(returning: downloadedResponse ?? .init(
290 |                 error: error,
291 |                 request: task.originalRequest ?? .init(url: URL(fileURLWithPath: "/"))
    |                               `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
292 |             ))
293 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:291:51: error: cannot infer contextual base in reference to member 'init'
289 |             continuation.resume(returning: downloadedResponse ?? .init(
290 |                 error: error,
291 |                 request: task.originalRequest ?? .init(url: URL(fileURLWithPath: "/"))
    |                                                   `- error: cannot infer contextual base in reference to member 'init'
292 |             ))
293 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:299:32: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
297 |             let data = uploadData
298 |             continuation.resume(returning: .init(
299 |                 response: task.response,
    |                                `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
300 |                 statuscode: (task.response as? HTTPURLResponse)?.statusCode,
301 |                 error: error,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:300:35: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
298 |             continuation.resume(returning: .init(
299 |                 response: task.response,
300 |                 statuscode: (task.response as? HTTPURLResponse)?.statusCode,
    |                                   `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
301 |                 error: error,
302 |                 data: data,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:300:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
298 |             continuation.resume(returning: .init(
299 |                 response: task.response,
300 |                 statuscode: (task.response as? HTTPURLResponse)?.statusCode,
    |                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
301 |                 error: error,
302 |                 data: data,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:305:26: error: 'nil' requires a contextual type
303 |                 string: data.flatMap { String(data: $0, encoding: .utf8) },
304 |                 dictionary: data.flatMap { try? JSONSerialization.jsonObject(with: $0) as? [String: Any] },
305 |                 cookies: nil,
    |                          `- error: 'nil' requires a contextual type
306 |                 request: task.originalRequest ?? .init(url: URL(fileURLWithPath: "/"))
307 |             ))
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:306:31: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
304 |                 dictionary: data.flatMap { try? JSONSerialization.jsonObject(with: $0) as? [String: Any] },
305 |                 cookies: nil,
306 |                 request: task.originalRequest ?? .init(url: URL(fileURLWithPath: "/"))
    |                               `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
307 |             ))
308 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:306:51: error: cannot infer contextual base in reference to member 'init'
304 |                 dictionary: data.flatMap { try? JSONSerialization.jsonObject(with: $0) as? [String: Any] },
305 |                 cookies: nil,
306 |                 request: task.originalRequest ?? .init(url: URL(fileURLWithPath: "/"))
    |                                                   `- error: cannot infer contextual base in reference to member 'init'
307 |             ))
308 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:309:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
307 |             ))
308 |         }
309 |         session.finishTasksAndInvalidate()
    |                 `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
310 |     }
311 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:135:75: error: cannot find type 'URLRequest' in scope
133 |     }
134 |
135 |     private func createFileBackedUploadRequest(path: String) -> (request: URLRequest, boundary: String)? {
    |                                                                           `- error: cannot find type 'URLRequest' in scope
136 |         guard let siteURL = isURL(path) else { return nil }
137 |         let boundary = generateBoundary()
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:183:20: error: cannot find type 'URLRequest' in scope
181 |
182 |     private func uploadFileBackedRequest(
183 |         _ request: URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
184 |         bodyFile: URL,
185 |         onProgress: @escaping @Sendable (TransferProgress) -> Void
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:26:77: error: cannot infer contextual base in reference to member 'init'
 24 |     ) async -> NetworkResponse {
 25 |         guard let request = createFileBackedUploadRequest(path: path) else {
 26 |             return .init(error: NetworkingError.invalidURL(path), request: .init(url: defaultURL))
    |                                                                             `- error: cannot infer contextual base in reference to member 'init'
 27 |         }
 28 |
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:61:27: error: cannot infer contextual base in reference to member 'init'
 59 |                     message: "Error: Upload endpoint doesn't appear to be an URL"
 60 |                 ),
 61 |                 request: .init(url: defaultURL)
    |                           `- error: cannot infer contextual base in reference to member 'init'
 62 |             )
 63 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:27:23: error: cannot find type 'URLRequest' in scope
 25 |     /// - Returns: ``NetworkResponse``
 26 |     internal func exec( // swiftlint:disable:this function_body_length
 27 |         with request: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
 28 |         file: String = #file,
 29 |         line: Int = #line,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:115:23: error: cannot find type 'URLRequest' in scope
113 |     /// - Returns: ``NetworkResponse``
114 |     internal func exec(
115 |         with request: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
116 |         completionHandler: @escaping @Sendable (NetworkResponse) -> Void,
117 |         file: String = #file,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:94:31: error: cannot infer contextual base in reference to member 'init'
 92 |                         message: "Error: Upload endpoint doesn't appear to be an URL"
 93 |                     ),
 94 |                     request: .init(url: defaultURL)
    |                               `- error: cannot infer contextual base in reference to member 'init'
 95 |                 )
 96 |             )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:150:29: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
148 |         let bodyFile = FileManager.default.temporaryDirectory
149 |             .appendingPathComponent("SimpleNetworking-\(UUID().uuidString).multipart")
150 |         FileManager.default.createFile(atPath: bodyFile.path, contents: nil)
    |                             `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
151 |         let output = try FileHandle(forWritingTo: bodyFile)
152 |         defer { try? output.close() }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:198:56: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
196 |
197 |         let delegate = TransferDelegate(progressHandler: onProgress)
198 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
    |                                                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
199 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
200 |         var response = await delegate.upload(session: session, request: preparedRequest, bodyFile: bodyFile)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:199:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
197 |         let delegate = TransferDelegate(progressHandler: onProgress)
198 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
199 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
200 |         var response = await delegate.upload(session: session, request: preparedRequest, bodyFile: bodyFile)
201 |         saveCookies(from: response.response)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:199:99: error: 'nil' requires a contextual type
197 |         let delegate = TransferDelegate(progressHandler: onProgress)
198 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
199 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
    |                                                                                                   `- error: 'nil' requires a contextual type
200 |         var response = await delegate.upload(session: session, request: preparedRequest, bodyFile: bodyFile)
201 |         saveCookies(from: response.response)
[28/31] Compiling SimpleNetworking FileUpload.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:131:18: error: cannot find type 'URLRequest' in scope
129 |         response: URLResponse?,
130 |         error: Error?,
131 |         request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
132 |     ) -> NetworkResponse {
133 |         let statusCode = (response as? HTTPURLResponse)?.statusCode
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:129:19: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
127 |     internal func response(
128 |         from data: Data?,
129 |         response: URLResponse?,
    |                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
130 |         error: Error?,
131 |         request: URLRequest
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/SimpleNetworking/SimpleNetworking/transfers.swift:168:41: error: cannot find type 'URLSessionDownloadDelegate' in scope
166 | }
167 |
168 | final class TransferDelegate: NSObject, URLSessionDownloadDelegate, URLSessionDataDelegate, @unchecked Sendable {
    |                                         `- error: cannot find type 'URLSessionDownloadDelegate' in scope
169 |     private let lock = NSLock()
170 |     private let progressHandler: @Sendable (SimpleNetworking.TransferProgress) -> Void
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:168:69: error: cannot find type 'URLSessionDataDelegate' in scope
166 | }
167 |
168 | final class TransferDelegate: NSObject, URLSessionDownloadDelegate, URLSessionDataDelegate, @unchecked Sendable {
    |                                                                     `- error: cannot find type 'URLSessionDataDelegate' in scope
169 |     private let lock = NSLock()
170 |     private let progressHandler: @Sendable (SimpleNetworking.TransferProgress) -> Void
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:185:49: error: cannot find type 'URLRequest' in scope
183 |     }
184 |
185 |     func download(session: URLSession, request: URLRequest) async -> SimpleNetworking.NetworkResponse {
    |                                                 `- error: cannot find type 'URLRequest' in scope
186 |         let task = session.downloadTask(with: request)
187 |         return await download(task: task)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:185:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
183 |     }
184 |
185 |     func download(session: URLSession, request: URLRequest) async -> SimpleNetworking.NetworkResponse {
    |                            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 |         let task = session.downloadTask(with: request)
187 |         return await download(task: task)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:190:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
188 |     }
189 |
190 |     func download(session: URLSession, resumeData: Data) async -> SimpleNetworking.NetworkResponse {
    |                            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
191 |         let task = session.downloadTask(withResumeData: resumeData)
192 |         return await download(task: task)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:195:33: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
193 |     }
194 |
195 |     private func download(task: URLSessionDownloadTask) async -> SimpleNetworking.NetworkResponse {
    |                                 `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |         return await withTaskCancellationHandler(operation: {
197 |             await withCheckedContinuation { continuation in
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:208:47: error: cannot find type 'URLRequest' in scope
206 |     }
207 |
208 |     func upload(session: URLSession, request: URLRequest) async -> SimpleNetworking.NetworkResponse {
    |                                               `- error: cannot find type 'URLRequest' in scope
209 |         let task = session.uploadTask(with: request, from: request.httpBody ?? Data())
210 |         return await upload(task: task)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:208:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 |     }
207 |
208 |     func upload(session: URLSession, request: URLRequest) async -> SimpleNetworking.NetworkResponse {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
209 |         let task = session.uploadTask(with: request, from: request.httpBody ?? Data())
210 |         return await upload(task: task)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:213:47: error: cannot find type 'URLRequest' in scope
211 |     }
212 |
213 |     func upload(session: URLSession, request: URLRequest, bodyFile: URL) async -> SimpleNetworking.NetworkResponse {
    |                                               `- error: cannot find type 'URLRequest' in scope
214 |         let task = session.uploadTask(with: request, fromFile: bodyFile)
215 |         return await upload(task: task)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:213:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
211 |     }
212 |
213 |     func upload(session: URLSession, request: URLRequest, bodyFile: URL) async -> SimpleNetworking.NetworkResponse {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
214 |         let task = session.uploadTask(with: request, fromFile: bodyFile)
215 |         return await upload(task: task)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:218:31: error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
216 |     }
217 |
218 |     private func upload(task: URLSessionUploadTask) async -> SimpleNetworking.NetworkResponse {
    |                               `- error: 'URLSessionUploadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
219 |         return await withTaskCancellationHandler(operation: {
220 |             await withCheckedContinuation { continuation in
Foundation.URLSessionUploadTask:2:18: note: 'URLSessionUploadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionUploadTask = AnyObject
  |                  `- note: 'URLSessionUploadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:232:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
230 |
231 |     func urlSession(
232 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
233 |         downloadTask: URLSessionDownloadTask,
234 |         didWriteData bytesWritten: Int64,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:233:23: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
231 |     func urlSession(
232 |         _ session: URLSession,
233 |         downloadTask: URLSessionDownloadTask,
    |                       `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
234 |         didWriteData bytesWritten: Int64,
235 |         totalBytesWritten: Int64,
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:242:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
240 |
241 |     func urlSession(
242 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
243 |         task: URLSessionTask,
244 |         didSendBodyData bytesSent: Int64,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:243:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
241 |     func urlSession(
242 |         _ session: URLSession,
243 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
244 |         didSendBodyData bytesSent: Int64,
245 |         totalBytesSent: Int64,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:251:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
249 |     }
250 |
251 |     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.
252 |         do {
253 |             guard let destinationURL else { throw CocoaError(.fileNoSuchFile) }
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/SimpleNetworking/SimpleNetworking/transfers.swift:251:58: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
249 |     }
250 |
251 |     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.
252 |         do {
253 |             guard let destinationURL else { throw CocoaError(.fileNoSuchFile) }
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/SimpleNetworking/SimpleNetworking/transfers.swift:277:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 |     }
276 |
277 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
278 |         lock.lock()
279 |         uploadData = (uploadData ?? Data()) + data
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/SimpleNetworking/SimpleNetworking/transfers.swift:277:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 |     }
276 |
277 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
    |                                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
278 |         lock.lock()
279 |         uploadData = (uploadData ?? Data()) + data
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:283:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
281 |     }
282 |
283 |     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.
284 |         lock.lock()
285 |         defer { lock.unlock() }
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/SimpleNetworking/SimpleNetworking/transfers.swift:283:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
281 |     }
282 |
283 |     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.
284 |         lock.lock()
285 |         defer { lock.unlock() }
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/SimpleNetworking/Structs/NetworkResponse.swift:55:29: error: cannot find type 'URLRequest' in scope
 53 |
 54 |         /// Request
 55 |         public var request: URLRequest
    |                             `- error: cannot find type 'URLRequest' in scope
 56 |
 57 |         /// Whether this response has a 2xx HTTP status and no transport error.
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:27:27: error: cannot infer contextual base in reference to member 'init'
 25 |             return .init(
 26 |                 error: NetworkingError(message: "Error: Download endpoint doesn't appear to be an URL"),
 27 |                 request: .init(url: defaultURL)
    |                           `- error: cannot infer contextual base in reference to member 'init'
 28 |             )
 29 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/request.swift:160:46: error: cannot find type 'URLRequest' in scope
158 |     }
159 |
160 |     internal func createRequest(url: URL) -> URLRequest {
    |                                              `- error: cannot find type 'URLRequest' in scope
161 |         let settings = requestSettings()
162 |         // Create a URL Request
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/cookies.swift:23:54: error: cannot find type 'URLRequest' in scope
 21 |     }
 22 |
 23 |     internal func addStoredCookies(to request: inout URLRequest) {
    |                                                      `- error: cannot find type 'URLRequest' in scope
 24 |         let storedCookies = withStateLock { cookieStorage ?? [] }
 25 |
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:47:56: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 45 |
 46 |         let delegate = TransferDelegate(progressHandler: onProgress, destinationURL: destinationURL)
 47 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
    |                                                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 48 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
 49 |         var response = await delegate.download(session: session, request: request)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:48:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 46 |         let delegate = TransferDelegate(progressHandler: onProgress, destinationURL: destinationURL)
 47 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
 48 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 49 |         var response = await delegate.download(session: session, request: request)
 50 |         saveCookies(from: response.response)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:48:99: error: 'nil' requires a contextual type
 46 |         let delegate = TransferDelegate(progressHandler: onProgress, destinationURL: destinationURL)
 47 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
 48 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
    |                                                                                                   `- error: 'nil' requires a contextual type
 49 |         var response = await delegate.download(session: session, request: request)
 50 |         saveCookies(from: response.response)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:49:47: error: incorrect argument label in call (have 'session:request:', expected 'session:resumeData:')
 47 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
 48 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
 49 |         var response = await delegate.download(session: session, request: request)
    |                                               `- error: incorrect argument label in call (have 'session:request:', expected 'session:resumeData:')
 50 |         saveCookies(from: response.response)
 51 |         response.cookies = cookieSnapshot()
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:69:56: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 67 |     ) async -> NetworkResponse {
 68 |         let delegate = TransferDelegate(progressHandler: onProgress, destinationURL: destinationURL)
 69 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
    |                                                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 70 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
 71 |         var response = await delegate.download(session: session, resumeData: resumeData)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:70:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 68 |         let delegate = TransferDelegate(progressHandler: onProgress, destinationURL: destinationURL)
 69 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
 70 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 71 |         var response = await delegate.download(session: session, resumeData: resumeData)
 72 |         saveCookies(from: response.response)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:70:99: error: 'nil' requires a contextual type
 68 |         let delegate = TransferDelegate(progressHandler: onProgress, destinationURL: destinationURL)
 69 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
 70 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
    |                                                                                                   `- error: 'nil' requires a contextual type
 71 |         var response = await delegate.download(session: session, resumeData: resumeData)
 72 |         saveCookies(from: response.response)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:108:89: error: cannot find type 'URLRequest' in scope
106 |     ///   - uploadData: The multipart upload data
107 |     /// - Returns: URLRequest or nil if URL is invalid
108 |     internal func createUploadRequest(path: String, uploadData: MultipartUploadData) -> URLRequest? {
    |                                                                                         `- error: cannot find type 'URLRequest' in scope
109 |         guard let siteURL = self.isURL(path) else {
110 |             return nil
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:86:27: error: cannot infer contextual base in reference to member 'init'
 84 |             return .init(
 85 |                 error: NetworkingError(message: "Error: Upload endpoint doesn't appear to be an URL"),
 86 |                 request: .init(url: defaultURL)
    |                           `- error: cannot infer contextual base in reference to member 'init'
 87 |             )
 88 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:101:56: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
 99 |
100 |         let delegate = TransferDelegate(progressHandler: onProgress)
101 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
    |                                                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
102 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
103 |         var response = await delegate.upload(session: session, request: preparedRequest)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:102:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 |         let delegate = TransferDelegate(progressHandler: onProgress)
101 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
102 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
103 |         var response = await delegate.upload(session: session, request: preparedRequest)
104 |         saveCookies(from: response.response)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:102:99: error: 'nil' requires a contextual type
100 |         let delegate = TransferDelegate(progressHandler: onProgress)
101 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
102 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
    |                                                                                                   `- error: 'nil' requires a contextual type
103 |         var response = await delegate.upload(session: session, request: preparedRequest)
104 |         saveCookies(from: response.response)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:133:36: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
131 |         request: URLRequest
132 |     ) -> NetworkResponse {
133 |         let statusCode = (response as? HTTPURLResponse)?.statusCode
    |                                    `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
134 |         var networkResponse = NetworkResponse(
135 |             response: response,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:133:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |         request: URLRequest
132 |     ) -> NetworkResponse {
133 |         let statusCode = (response as? HTTPURLResponse)?.statusCode
    |                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
134 |         var networkResponse = NetworkResponse(
135 |             response: response,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:186:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
184 |
185 |     func download(session: URLSession, request: URLRequest) async -> SimpleNetworking.NetworkResponse {
186 |         let task = session.downloadTask(with: request)
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
187 |         return await download(task: task)
188 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:191:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
189 |
190 |     func download(session: URLSession, resumeData: Data) async -> SimpleNetworking.NetworkResponse {
191 |         let task = session.downloadTask(withResumeData: resumeData)
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
192 |         return await download(task: task)
193 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:201:22: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'resume'
199 |                 downloadContinuation = continuation
200 |                 lock.unlock()
201 |                 task.resume()
    |                      `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'resume'
202 |             }
203 |         }, onCancel: {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:204:18: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'cancel'
202 |             }
203 |         }, onCancel: {
204 |             task.cancel()
    |                  `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'cancel'
205 |         })
206 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:209:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
207 |
208 |     func upload(session: URLSession, request: URLRequest) async -> SimpleNetworking.NetworkResponse {
209 |         let task = session.uploadTask(with: request, from: request.httpBody ?? Data())
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
210 |         return await upload(task: task)
211 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:214:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
212 |
213 |     func upload(session: URLSession, request: URLRequest, bodyFile: URL) async -> SimpleNetworking.NetworkResponse {
214 |         let task = session.uploadTask(with: request, fromFile: bodyFile)
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'uploadTask'
215 |         return await upload(task: task)
216 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:224:22: error: value of type 'URLSessionUploadTask' (aka 'AnyObject') has no member 'resume'
222 |                 uploadContinuation = continuation
223 |                 lock.unlock()
224 |                 task.resume()
    |                      `- error: value of type 'URLSessionUploadTask' (aka 'AnyObject') has no member 'resume'
225 |             }
226 |         }, onCancel: {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:227:18: error: value of type 'URLSessionUploadTask' (aka 'AnyObject') has no member 'cancel'
225 |             }
226 |         }, onCancel: {
227 |             task.cancel()
    |                  `- error: value of type 'URLSessionUploadTask' (aka 'AnyObject') has no member 'cancel'
228 |         })
229 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:263:40: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
261 |             try FileManager.default.moveItem(at: location, to: destinationURL)
262 |             downloadedResponse = .init(
263 |                 response: downloadTask.response,
    |                                        `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
264 |                 statuscode: (downloadTask.response as? HTTPURLResponse)?.statusCode,
265 |                 error: nil,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:264:43: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
262 |             downloadedResponse = .init(
263 |                 response: downloadTask.response,
264 |                 statuscode: (downloadTask.response as? HTTPURLResponse)?.statusCode,
    |                                           `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'response'
265 |                 error: nil,
266 |                 data: nil,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:264:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
262 |             downloadedResponse = .init(
263 |                 response: downloadTask.response,
264 |                 statuscode: (downloadTask.response as? HTTPURLResponse)?.statusCode,
    |                                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
265 |                 error: nil,
266 |                 data: nil,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:265:24: error: 'nil' requires a contextual type
263 |                 response: downloadTask.response,
264 |                 statuscode: (downloadTask.response as? HTTPURLResponse)?.statusCode,
265 |                 error: nil,
    |                        `- error: 'nil' requires a contextual type
266 |                 data: nil,
267 |                 string: nil,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:266:23: error: 'nil' requires a contextual type
264 |                 statuscode: (downloadTask.response as? HTTPURLResponse)?.statusCode,
265 |                 error: nil,
266 |                 data: nil,
    |                       `- error: 'nil' requires a contextual type
267 |                 string: nil,
268 |                 dictionary: nil,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:267:25: error: 'nil' requires a contextual type
265 |                 error: nil,
266 |                 data: nil,
267 |                 string: nil,
    |                         `- error: 'nil' requires a contextual type
268 |                 dictionary: nil,
269 |                 cookies: nil,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:268:29: error: 'nil' requires a contextual type
266 |                 data: nil,
267 |                 string: nil,
268 |                 dictionary: nil,
    |                             `- error: 'nil' requires a contextual type
269 |                 cookies: nil,
270 |                 request: downloadTask.originalRequest ?? .init(url: downloadTask.currentRequest?.url ?? location)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:269:26: error: 'nil' requires a contextual type
267 |                 string: nil,
268 |                 dictionary: nil,
269 |                 cookies: nil,
    |                          `- error: 'nil' requires a contextual type
270 |                 request: downloadTask.originalRequest ?? .init(url: downloadTask.currentRequest?.url ?? location)
271 |             )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:270:39: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'originalRequest'
268 |                 dictionary: nil,
269 |                 cookies: nil,
270 |                 request: downloadTask.originalRequest ?? .init(url: downloadTask.currentRequest?.url ?? location)
    |                                       `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'originalRequest'
271 |             )
272 |         } catch {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:270:59: error: cannot infer contextual base in reference to member 'init'
268 |                 dictionary: nil,
269 |                 cookies: nil,
270 |                 request: downloadTask.originalRequest ?? .init(url: downloadTask.currentRequest?.url ?? location)
    |                                                           `- error: cannot infer contextual base in reference to member 'init'
271 |             )
272 |         } catch {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:270:82: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'currentRequest'
268 |                 dictionary: nil,
269 |                 cookies: nil,
270 |                 request: downloadTask.originalRequest ?? .init(url: downloadTask.currentRequest?.url ?? location)
    |                                                                                  `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'currentRequest'
271 |             )
272 |         } catch {
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:273:76: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'originalRequest'
271 |             )
272 |         } catch {
273 |             downloadedResponse = .init(error: error, request: downloadTask.originalRequest ?? .init(url: location))
    |                                                                            `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'originalRequest'
274 |         }
275 |     }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:291:31: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
289 |             continuation.resume(returning: downloadedResponse ?? .init(
290 |                 error: error,
291 |                 request: task.originalRequest ?? .init(url: URL(fileURLWithPath: "/"))
    |                               `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
292 |             ))
293 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:291:51: error: cannot infer contextual base in reference to member 'init'
289 |             continuation.resume(returning: downloadedResponse ?? .init(
290 |                 error: error,
291 |                 request: task.originalRequest ?? .init(url: URL(fileURLWithPath: "/"))
    |                                                   `- error: cannot infer contextual base in reference to member 'init'
292 |             ))
293 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:299:32: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
297 |             let data = uploadData
298 |             continuation.resume(returning: .init(
299 |                 response: task.response,
    |                                `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
300 |                 statuscode: (task.response as? HTTPURLResponse)?.statusCode,
301 |                 error: error,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:300:35: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
298 |             continuation.resume(returning: .init(
299 |                 response: task.response,
300 |                 statuscode: (task.response as? HTTPURLResponse)?.statusCode,
    |                                   `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
301 |                 error: error,
302 |                 data: data,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:300:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
298 |             continuation.resume(returning: .init(
299 |                 response: task.response,
300 |                 statuscode: (task.response as? HTTPURLResponse)?.statusCode,
    |                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
301 |                 error: error,
302 |                 data: data,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:305:26: error: 'nil' requires a contextual type
303 |                 string: data.flatMap { String(data: $0, encoding: .utf8) },
304 |                 dictionary: data.flatMap { try? JSONSerialization.jsonObject(with: $0) as? [String: Any] },
305 |                 cookies: nil,
    |                          `- error: 'nil' requires a contextual type
306 |                 request: task.originalRequest ?? .init(url: URL(fileURLWithPath: "/"))
307 |             ))
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:306:31: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
304 |                 dictionary: data.flatMap { try? JSONSerialization.jsonObject(with: $0) as? [String: Any] },
305 |                 cookies: nil,
306 |                 request: task.originalRequest ?? .init(url: URL(fileURLWithPath: "/"))
    |                               `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
307 |             ))
308 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:306:51: error: cannot infer contextual base in reference to member 'init'
304 |                 dictionary: data.flatMap { try? JSONSerialization.jsonObject(with: $0) as? [String: Any] },
305 |                 cookies: nil,
306 |                 request: task.originalRequest ?? .init(url: URL(fileURLWithPath: "/"))
    |                                                   `- error: cannot infer contextual base in reference to member 'init'
307 |             ))
308 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/transfers.swift:309:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
307 |             ))
308 |         }
309 |         session.finishTasksAndInvalidate()
    |                 `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
310 |     }
311 | }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:135:75: error: cannot find type 'URLRequest' in scope
133 |     }
134 |
135 |     private func createFileBackedUploadRequest(path: String) -> (request: URLRequest, boundary: String)? {
    |                                                                           `- error: cannot find type 'URLRequest' in scope
136 |         guard let siteURL = isURL(path) else { return nil }
137 |         let boundary = generateBoundary()
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:183:20: error: cannot find type 'URLRequest' in scope
181 |
182 |     private func uploadFileBackedRequest(
183 |         _ request: URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
184 |         bodyFile: URL,
185 |         onProgress: @escaping @Sendable (TransferProgress) -> Void
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:26:77: error: cannot infer contextual base in reference to member 'init'
 24 |     ) async -> NetworkResponse {
 25 |         guard let request = createFileBackedUploadRequest(path: path) else {
 26 |             return .init(error: NetworkingError.invalidURL(path), request: .init(url: defaultURL))
    |                                                                             `- error: cannot infer contextual base in reference to member 'init'
 27 |         }
 28 |
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:61:27: error: cannot infer contextual base in reference to member 'init'
 59 |                     message: "Error: Upload endpoint doesn't appear to be an URL"
 60 |                 ),
 61 |                 request: .init(url: defaultURL)
    |                           `- error: cannot infer contextual base in reference to member 'init'
 62 |             )
 63 |         }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:27:23: error: cannot find type 'URLRequest' in scope
 25 |     /// - Returns: ``NetworkResponse``
 26 |     internal func exec( // swiftlint:disable:this function_body_length
 27 |         with request: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
 28 |         file: String = #file,
 29 |         line: Int = #line,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/exec.swift:115:23: error: cannot find type 'URLRequest' in scope
113 |     /// - Returns: ``NetworkResponse``
114 |     internal func exec(
115 |         with request: URLRequest,
    |                       `- error: cannot find type 'URLRequest' in scope
116 |         completionHandler: @escaping @Sendable (NetworkResponse) -> Void,
117 |         file: String = #file,
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:94:31: error: cannot infer contextual base in reference to member 'init'
 92 |                         message: "Error: Upload endpoint doesn't appear to be an URL"
 93 |                     ),
 94 |                     request: .init(url: defaultURL)
    |                               `- error: cannot infer contextual base in reference to member 'init'
 95 |                 )
 96 |             )
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:150:29: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
148 |         let bodyFile = FileManager.default.temporaryDirectory
149 |             .appendingPathComponent("SimpleNetworking-\(UUID().uuidString).multipart")
150 |         FileManager.default.createFile(atPath: bodyFile.path, contents: nil)
    |                             `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
151 |         let output = try FileHandle(forWritingTo: bodyFile)
152 |         defer { try? output.close() }
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:198:56: error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
196 |
197 |         let delegate = TransferDelegate(progressHandler: onProgress)
198 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
    |                                                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'configuration'
199 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
200 |         var response = await delegate.upload(session: session, request: preparedRequest, bodyFile: bodyFile)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:199:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
197 |         let delegate = TransferDelegate(progressHandler: onProgress)
198 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
199 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
200 |         var response = await delegate.upload(session: session, request: preparedRequest, bodyFile: bodyFile)
201 |         saveCookies(from: response.response)
/host/spi-builder-workspace/Sources/SimpleNetworking/SimpleNetworking/uploadMethods.swift:199:99: error: 'nil' requires a contextual type
197 |         let delegate = TransferDelegate(progressHandler: onProgress)
198 |         let configuration = requestSettings().session?.configuration ?? .ephemeral
199 |         let session = URLSession(configuration: configuration, delegate: delegate, delegateQueue: nil)
    |                                                                                                   `- error: 'nil' requires a contextual type
200 |         var response = await delegate.upload(session: session, request: preparedRequest, bodyFile: bodyFile)
201 |         saveCookies(from: response.response)
[29/31] Compiling SimpleNetworking HTTPHeader.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:55:29: error: cannot find type 'URLRequest' in scope
 53 |
 54 |         /// Request
 55 |         public var request: URLRequest
    |                             `- error: cannot find type 'URLRequest' in scope
 56 |
 57 |         /// Whether this response has a 2xx HTTP status and no transport error.
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:34:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |
 33 |         /// URL Response
 34 |         public var response: URLResponse?
    |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |
 36 |         /// HTTP Status code
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/SimpleNetworking/Structs/NetworkResponse.swift:52:30: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 50 |
 51 |         /// Received cookies.
 52 |         public var cookies: [HTTPCookie]?
    |                              `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |
 54 |         /// Request
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
  |                  `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:126:49: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
124 |         /// Get the returned HTTP Headers
125 |         public var headers: [HTTPHeader] {
126 |             let httpURLResponse = self.response as? HTTPURLResponse
    |                                                 `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
127 |             return httpURLResponse?.allHeaderFields.compactMap {
128 |                 guard let key = $0.key as? String,
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:126:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 |         /// Get the returned HTTP Headers
125 |         public var headers: [HTTPHeader] {
126 |             let httpURLResponse = self.response as? HTTPURLResponse
    |                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
127 |             return httpURLResponse?.allHeaderFields.compactMap {
128 |                 guard let key = $0.key as? String,
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/SimpleNetworking/Structs/NetworkResponse.swift:127:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
125 |         public var headers: [HTTPHeader] {
126 |             let httpURLResponse = self.response as? HTTPURLResponse
127 |             return httpURLResponse?.allHeaderFields.compactMap {
    |                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
128 |                 guard let key = $0.key as? String,
129 |                       let value = $0.value as? String else { return nil }
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:129:69: error: 'nil' requires a contextual type
127 |             return httpURLResponse?.allHeaderFields.compactMap {
128 |                 guard let key = $0.key as? String,
129 |                       let value = $0.value as? String else { return nil }
    |                                                                     `- error: 'nil' requires a contextual type
130 |
131 |                 return HTTPHeader(name: key, value: value)
[30/31] Compiling SimpleNetworking HTTPMethod.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:55:29: error: cannot find type 'URLRequest' in scope
 53 |
 54 |         /// Request
 55 |         public var request: URLRequest
    |                             `- error: cannot find type 'URLRequest' in scope
 56 |
 57 |         /// Whether this response has a 2xx HTTP status and no transport error.
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:34:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |
 33 |         /// URL Response
 34 |         public var response: URLResponse?
    |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |
 36 |         /// HTTP Status code
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/SimpleNetworking/Structs/NetworkResponse.swift:52:30: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 50 |
 51 |         /// Received cookies.
 52 |         public var cookies: [HTTPCookie]?
    |                              `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |
 54 |         /// Request
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
  |                  `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:126:49: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
124 |         /// Get the returned HTTP Headers
125 |         public var headers: [HTTPHeader] {
126 |             let httpURLResponse = self.response as? HTTPURLResponse
    |                                                 `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
127 |             return httpURLResponse?.allHeaderFields.compactMap {
128 |                 guard let key = $0.key as? String,
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:126:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 |         /// Get the returned HTTP Headers
125 |         public var headers: [HTTPHeader] {
126 |             let httpURLResponse = self.response as? HTTPURLResponse
    |                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
127 |             return httpURLResponse?.allHeaderFields.compactMap {
128 |                 guard let key = $0.key as? String,
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/SimpleNetworking/Structs/NetworkResponse.swift:127:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
125 |         public var headers: [HTTPHeader] {
126 |             let httpURLResponse = self.response as? HTTPURLResponse
127 |             return httpURLResponse?.allHeaderFields.compactMap {
    |                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
128 |                 guard let key = $0.key as? String,
129 |                       let value = $0.value as? String else { return nil }
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:129:69: error: 'nil' requires a contextual type
127 |             return httpURLResponse?.allHeaderFields.compactMap {
128 |                 guard let key = $0.key as? String,
129 |                       let value = $0.value as? String else { return nil }
    |                                                                     `- error: 'nil' requires a contextual type
130 |
131 |                 return HTTPHeader(name: key, value: value)
[31/31] Compiling SimpleNetworking NetworkResponse.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:55:29: error: cannot find type 'URLRequest' in scope
 53 |
 54 |         /// Request
 55 |         public var request: URLRequest
    |                             `- error: cannot find type 'URLRequest' in scope
 56 |
 57 |         /// Whether this response has a 2xx HTTP status and no transport error.
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:34:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |
 33 |         /// URL Response
 34 |         public var response: URLResponse?
    |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |
 36 |         /// HTTP Status code
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/SimpleNetworking/Structs/NetworkResponse.swift:52:30: error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 50 |
 51 |         /// Received cookies.
 52 |         public var cookies: [HTTPCookie]?
    |                              `- error: 'HTTPCookie' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 53 |
 54 |         /// Request
Foundation.HTTPCookie:2:18: note: 'HTTPCookie' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPCookie = AnyObject
  |                  `- note: 'HTTPCookie' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:126:49: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
124 |         /// Get the returned HTTP Headers
125 |         public var headers: [HTTPHeader] {
126 |             let httpURLResponse = self.response as? HTTPURLResponse
    |                                                 `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
127 |             return httpURLResponse?.allHeaderFields.compactMap {
128 |                 guard let key = $0.key as? String,
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:126:53: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 |         /// Get the returned HTTP Headers
125 |         public var headers: [HTTPHeader] {
126 |             let httpURLResponse = self.response as? HTTPURLResponse
    |                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
127 |             return httpURLResponse?.allHeaderFields.compactMap {
128 |                 guard let key = $0.key as? String,
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/SimpleNetworking/Structs/NetworkResponse.swift:127:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
125 |         public var headers: [HTTPHeader] {
126 |             let httpURLResponse = self.response as? HTTPURLResponse
127 |             return httpURLResponse?.allHeaderFields.compactMap {
    |                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
128 |                 guard let key = $0.key as? String,
129 |                       let value = $0.value as? String else { return nil }
/host/spi-builder-workspace/Sources/SimpleNetworking/Structs/NetworkResponse.swift:129:69: error: 'nil' requires a contextual type
127 |             return httpURLResponse?.allHeaderFields.compactMap {
128 |                 guard let key = $0.key as? String,
129 |                       let value = $0.value as? String else { return nil }
    |                                                                     `- error: 'nil' requires a contextual type
130 |
131 |                 return HTTPHeader(name: key, value: value)
BUILD FAILURE 6.1 wasm