The Swift Package Index logo.Swift Package Index

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

Build Information

Failed to build Decree, reference master (dc5638), with Swift 6.1 for Wasm on 27 May 2025 20:14:33 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:256:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
254 |     }
255 |
256 |     func automaticValidate<E: Endpoint>(_ response: URLResponse, for endpoint: E) throws {
    |                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
257 |         guard let response = response as? HTTPURLResponse else {
258 |             return
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/Decree/Private/DecreeRequest.swift:274:35: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
272 |
273 | private extension DecreeRequest {
274 |     func observeProgress(of task: URLSessionTask?) {
    |                                   `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 |         #if canImport(ObjectiveC)
276 |         if #available(iOS 11.0, OSX 10.13, tvOS 11.0, *) {
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/Decree/Private/DecreeRequest.swift:288:54: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
286 |
287 | private extension DecreeRequest {
288 |     func handleResponse(_ output: Output?, response: URLResponse?, error: Error?) {
    |                                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
289 |         self.callbackQueue.async {
290 |             self.logResponse(output: output, response: response, error: error, for: self.endpoint)
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/Decree/Private/DecreeRequest.swift:336:17: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 11 | #endif
 12 |
 13 | class DecreeRequest<E: Endpoint, S: WebService> {
    |                     `- note: 'E' previously declared here
 14 |     enum Output {
 15 |         case data(Data)
    :
334 |     }
335 |
336 |     func handle<E: Endpoint>(_ error: Error, withResponse response: URLResponse, output: Output?, endpoint: E) -> ErrorHandling {
    |                 `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
337 |         let loadedData: Data?
338 |         if let output = output {
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:336:69: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
334 |     }
335 |
336 |     func handle<E: Endpoint>(_ error: Error, withResponse response: URLResponse, output: Output?, endpoint: E) -> ErrorHandling {
    |                                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
337 |         let loadedData: Data?
338 |         if let output = output {
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/Decree/Private/DecreeRequest.swift:367:38: error: cannot find type 'URLRequest' in scope
365 |
366 | private extension DecreeRequest {
367 |     func log<E: Endpoint>(_ request: URLRequest, for endpoint: E) {
    |                                      `- error: cannot find type 'URLRequest' in scope
368 |         Logger.shared.logInfo("""
369 |             --------------------------------------------------------------
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:378:22: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 11 | #endif
 12 |
 13 | class DecreeRequest<E: Endpoint, S: WebService> {
    |                     `- note: 'E' previously declared here
 14 |     enum Output {
 15 |         case data(Data)
    :
376 |     }
377 |
378 |     func logResponse<E: Endpoint>(output: Output?, response: URLResponse?, error: Error?, for endpoint: E) {
    |                      `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
379 |         var log = """
380 |             --------------------------------------------------------------
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:378:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
376 |     }
377 |
378 |     func logResponse<E: Endpoint>(output: Output?, response: URLResponse?, error: Error?, for endpoint: E) {
    |                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
379 |         var log = """
380 |             --------------------------------------------------------------
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/Decree/Private/DecreeRequest.swift:60:70: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 58 |             let request = try self.createRequest()
 59 |
 60 |             let session = self.service.sessionOverride ?? URLSession.shared
    |                                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 61 |             let task = session.execute(request, for: self.service, onComplete: { data, response, error in
 62 |                 let output = Output(data)
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:81:70: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 79 |             let request = try self.createRequest()
 80 |
 81 |             let session = self.service.sessionOverride ?? URLSession.shared
    |                                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 82 |             let task = session.executeDownload(request, for: self.service, onComplete: { url, response, error in
 83 |                 let output = Output(url)
/host/spi-builder-workspace/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:25:30: error: cannot find type 'URLRequest' in scope
 23 |     ///     - An optional URLResponse (will usually be an HTTPURLResponse)
 24 |     ///     - An optional error
 25 |     func handle(dataRequest: URLRequest) -> (Data?, URLResponse?, Error?)
    |                              `- error: cannot find type 'URLRequest' in scope
 26 |
 27 |     /// Handle download requests
/host/spi-builder-workspace/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:38:34: error: cannot find type 'URLRequest' in scope
 36 |     ///     - An optional URLResponse (will usually be an HTTPURLResponse)
 37 |     ///     - An optional error
 38 |     func handle(downloadRequest: URLRequest) -> (URL?, URLResponse?, Error?)
    |                                  `- error: cannot find type 'URLRequest' in scope
 39 | }
 40 |
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:128:22: error: cannot find type 'URLRequest' in scope
126 | private extension DecreeRequest {
127 |     func createRequest() throws -> URLRequest {
128 |         let request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
129 |         if let url = url {
130 |             request = try self.createRequest(to: url, for: endpoint, input: input)
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:162:23: error: cannot find 'URLRequest' in scope
160 |     /// - Returns: the created request
161 |     func createRequest<E: Endpoint>(to url: URL, for endpoint: E, input: RequestInput) throws -> URLRequest {
162 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
163 |         request.httpMethod = E.method.rawValue
164 |
/host/spi-builder-workspace/Sources/Decree/WebService.swift:71:50: error: cannot find type 'URLRequest' in scope
 69 |
 70 |     /// **OPTIONAL** Chance to configure each URLRequest
 71 |     func configure<E: Endpoint>(_ request: inout URLRequest, for endpoint: E) throws
    |                                                  `- error: cannot find type 'URLRequest' in scope
 72 |
 73 |     /// **OPTIONAL** Chance to configure each input encoder
/host/spi-builder-workspace/Sources/Decree/WebService.swift:107:57: error: cannot find type 'URLRequest' in scope
105 |
106 |     public var sessionOverride: Session? { return nil }
107 |     public func configure<E: Endpoint>(_ request: inout URLRequest, for endpoint: E) throws {}
    |                                                         `- error: cannot find type 'URLRequest' in scope
108 |     public func configure<E: Endpoint>(_ encoder: inout JSONEncoder, for endpoint: E) throws {}
109 |     public func configure<E: Endpoint>(_ decoder: inout JSONDecoder, for endpoint: E) throws {}
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:257:39: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
255 |
256 |     func automaticValidate<E: Endpoint>(_ response: URLResponse, for endpoint: E) throws {
257 |         guard let response = response as? HTTPURLResponse else {
    |                                       `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
258 |             return
259 |         }
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:257:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
255 |
256 |     func automaticValidate<E: Endpoint>(_ response: URLResponse, for endpoint: E) throws {
257 |         guard let response = response as? HTTPURLResponse else {
    |                                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
258 |             return
259 |         }
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/Decree/Private/DecreeRequest.swift:261:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
259 |         }
260 |
261 |         switch response.statusCode {
    |                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
262 |         case let x where x >= 200 && x < 300:
263 |             break
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:265:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
263 |             break
264 |         default:
265 |             let status = HTTPStatus(rawValue: response.statusCode)
    |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
266 |             throw endpoint.error(.http(status))
267 |         }
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:390:29: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'logDescription'
388 |
389 |         if let response = response {
390 |             log += response.logDescription
    |                             `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'logDescription'
391 |         }
392 |         else {
/host/spi-builder-workspace/Sources/Decree/Private/DispatchQueue+Async.swift:10:37: error: cannot find type 'DispatchQueue' in scope
 8 | import Foundation
 9 |
10 | extension Optional where Wrapped == DispatchQueue {
   |                                     `- error: cannot find type 'DispatchQueue' in scope
11 |     func async(execute: @escaping () -> ()) {
12 |         if let queue = self {
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:18:76: error: cannot find type 'DispatchQueue' in scope
 16 |     /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
 17 |     /// - Parameter onComplete: Callback when the request is complete
 18 |     func _makeRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ result: EmptyResult) -> ()) {
    |                                                                            `- error: cannot find type 'DispatchQueue' in scope
 19 |         if let mock = service.sessionOverride as? WebServiceMock<Service> {
 20 |             mock.handle(for: self, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:46:95: error: cannot find type 'DispatchQueue' in scope
 44 |     /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
 45 |     /// - Parameter onComplete: Callback when the request is complete
 46 |     func _makeRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ result: EmptyResult) -> ()) {
    |                                                                                               `- error: cannot find type 'DispatchQueue' in scope
 47 |         if let mock = service.sessionOverride as? WebServiceMock<Service> {
 48 |             mock.handle(for: self, input: input, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:81:76: error: cannot find type 'DispatchQueue' in scope
 79 |     /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
 80 |     /// - Parameter onComplete: Callback when the request is complete that includes output if successful
 81 |     func _makeRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ result: Result<Output, DecreeError>) -> ()) {
    |                                                                            `- error: cannot find type 'DispatchQueue' in scope
 82 |         if let mock = service.sessionOverride as? WebServiceMock<Service> {
 83 |             mock.handle(for: self, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:104:84: error: cannot find type 'DispatchQueue' in scope
102 |
103 | extension OutEndpoint {
104 |     func _makeDownloadRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ error: Result<URL, DecreeError>) -> ()) {
    |                                                                                    `- error: cannot find type 'DispatchQueue' in scope
105 |         if let mock = service.sessionOverride as? WebServiceMock<Service> {
106 |             mock.handleDownload(for: self, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:124:95: error: cannot find type 'DispatchQueue' in scope
122 |     /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
123 |     /// - Parameter onComplete: Callback when the request is complete that includes output if successful
124 |     func _makeRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ error: Result<Output, DecreeError>) -> ()) {
    |                                                                                               `- error: cannot find type 'DispatchQueue' in scope
125 |         if let mock = service.sessionOverride as? WebServiceMock<Service> {
126 |             mock.handle(for: self, input: input, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:155:103: error: cannot find type 'DispatchQueue' in scope
153 |
154 | extension InOutEndpoint where Input: Encodable {
155 |     func _makeDownloadRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ error: Result<URL, DecreeError>) -> ()) {
    |                                                                                                       `- error: cannot find type 'DispatchQueue' in scope
156 |         if let mock = service.sessionOverride as? WebServiceMock<Service> {
157 |             mock.handleDownload(for: self, input: input, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:11:67: error: cannot find type 'DispatchQueue' in scope
  9 |
 10 | extension WebServiceMock {
 11 |     func handle<E: EmptyEndpoint>(for endpoint: E, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: EmptyResult) -> ()) {
    |                                                                   `- error: cannot find type 'DispatchQueue' in scope
 12 |         do {
 13 |             let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:55:65: error: cannot find type 'DispatchQueue' in scope
 53 |     }
 54 |
 55 |     func handle<E: OutEndpoint>(for endpoint: E, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: Result<E.Output, DecreeError>) -> ()) {
    |                                                                 `- error: cannot find type 'DispatchQueue' in scope
 56 |         do {
 57 |             let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:33:80: error: cannot find type 'DispatchQueue' in scope
 31 |     }
 32 |
 33 |     func handle<E: InEndpoint>(for endpoint: E, input: E.Input, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: EmptyResult) -> ()) where E.Input: Encodable {
    |                                                                                `- error: cannot find type 'DispatchQueue' in scope
 34 |         do {
 35 |             let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:99:83: error: cannot find type 'DispatchQueue' in scope
 97 |     }
 98 |
 99 |     func handle<E: InOutEndpoint>(for endpoint: E, input: E.Input, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: Result<E.Output, DecreeError>) -> ()) where E.Input: Encodable {
    |                                                                                   `- error: cannot find type 'DispatchQueue' in scope
100 |         do {
101 |             let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebService+MakeRequest.swift:26:87: error: cannot find type 'DispatchQueue' in scope
 24 |     /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on the default queue from URLSession
 25 |     /// - Parameter onComplete: callback for when the request completes with the data returned
 26 |     func makeRequest<E: Endpoint>(to endpoint: E, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<Data?, DecreeError>) -> ()) {
    |                                                                                       `- error: cannot find type 'DispatchQueue' in scope
 27 |         let request = DecreeRequest(for: endpoint, of: self, input: input, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: { result in
 28 |             switch result {
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:24:47: error: cannot infer contextual base in reference to member 'none'
 22 |         }
 23 |
 24 |         service.makeRequest(to: self, input: .none, callbackQueue: callbackQueue, onProgress: onProgress) { result in
    |                                               `- error: cannot infer contextual base in reference to member 'none'
 25 |             switch result {
 26 |             case .failure(let error):
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:87:47: error: cannot infer contextual base in reference to member 'none'
 85 |         }
 86 |
 87 |         service.makeRequest(to: self, input: .none, callbackQueue: callbackQueue, onProgress: onProgress) { result in
    |                                               `- error: cannot infer contextual base in reference to member 'none'
 88 |             switch result {
 89 |             case .failure(let error):
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:77:73: error: cannot find type 'DispatchQueue' in scope
 75 |     }
 76 |
 77 |     func handleDownload<E: OutEndpoint>(for endpoint: E, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: Result<URL, DecreeError>) -> ()) {
    |                                                                         `- error: cannot find type 'DispatchQueue' in scope
 78 |         do {
 79 |             let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:121:91: error: cannot find type 'DispatchQueue' in scope
119 |     }
120 |
121 |     func handleDownload<E: InOutEndpoint>(for endpoint: E, input: E.Input, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: Result<URL, DecreeError>) -> ()) where E.Input: Encodable {
    |                                                                                           `- error: cannot find type 'DispatchQueue' in scope
122 |         do {
123 |             let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebService+MakeRequest.swift:48:95: error: cannot find type 'DispatchQueue' in scope
 46 |     }
 47 |
 48 |     func makeDownloadRequest<E: Endpoint>(to endpoint: E, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<URL, DecreeError>) -> ()) {
    |                                                                                               `- error: cannot find type 'DispatchQueue' in scope
 49 |         let request = DecreeRequest(for: endpoint, of: self, input: input, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: { result in
 50 |             switch result {
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:109:55: error: cannot infer contextual base in reference to member 'none'
107 |             return
108 |         }
109 |         service.makeDownloadRequest(to: self, input: .none, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: onComplete)
    |                                                       `- error: cannot infer contextual base in reference to member 'none'
110 |     }
111 | }
[79/92] Compiling Decree DecreeRequest.swift
/host/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:21:18: error: cannot find type 'DispatchSemaphore' in scope
 19 |
 20 |     var pathValidation: PathValidation {get}
 21 |     var waiting: DispatchSemaphore {get}
    |                  `- error: cannot find type 'DispatchSemaphore' in scope
 22 | }
 23 |
/host/spi-builder-workspace/Sources/Decree/Mocking/WebServiceMock.swift:344:40: error: cannot find type 'URLRequest' in scope
342 |     }
343 |
344 |     public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask {
    |                                        `- error: cannot find type 'URLRequest' in scope
345 |         fatalError("Should not get called. It is special-cased.")
346 |     }
/host/spi-builder-workspace/Sources/Decree/Mocking/WebServiceMock.swift:344:89: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
342 |     }
343 |
344 |     public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask {
    |                                                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
345 |         fatalError("Should not get called. It is special-cased.")
346 |     }
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/Decree/Mocking/WebServiceMock.swift:344:123: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
342 |     }
343 |
344 |     public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask {
    |                                                                                                                           `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
345 |         fatalError("Should not get called. It is special-cased.")
346 |     }
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/Decree/Mocking/WebServiceMock.swift:348:44: error: cannot find type 'URLRequest' in scope
346 |     }
347 |
348 |     public func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask {
    |                                            `- error: cannot find type 'URLRequest' in scope
349 |         fatalError("Should not get called. It is special-cased.")
350 |     }
/host/spi-builder-workspace/Sources/Decree/Mocking/WebServiceMock.swift:348:92: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
346 |     }
347 |
348 |     public func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask {
    |                                                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
349 |         fatalError("Should not get called. It is special-cased.")
350 |     }
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/Decree/Mocking/WebServiceMock.swift:348:126: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
346 |     }
347 |
348 |     public func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask {
    |                                                                                                                              `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
349 |         fatalError("Should not get called. It is special-cased.")
350 |     }
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/Decree/Basic Types/Session.swift:22:33: error: cannot find type 'URLRequest' in scope
20 | //    init(configuration: URLSessionConfiguration, delegate: URLSessionDelegate?, delegateQueue queue: OperationQueue?)
21 |
22 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
   |                                 `- error: cannot find type 'URLRequest' in scope
23 |     func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
24 | }
/host/spi-builder-workspace/Sources/Decree/Basic Types/Session.swift:23:37: error: cannot find type 'URLRequest' in scope
21 |
22 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
23 |     func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
   |                                     `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:37:24: error: cannot find type 'DispatchQueue' in scope
 35 |     let endpoint: E
 36 |     let input: RequestInput
 37 |     let callbackQueue: DispatchQueue?
    |                        `- error: cannot find type 'DispatchQueue' in scope
 38 |     let onProgress: ((Double) -> ())?
 39 |     let onComplete: (_ result: Result<Output?, DecreeError>) -> ()
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:44:78: error: cannot find type 'DispatchQueue' in scope
 42 |     var progressObserver: AnyObject?
 43 |
 44 |     init(for endpoint: E, of service: S, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<Output?, DecreeError>) -> ()) {
    |                                                                              `- error: cannot find type 'DispatchQueue' in scope
 45 |         self.service = service
 46 |         self.endpoint = endpoint
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:97:44: error: cannot find type 'URLRequest' in scope
 95 |
 96 | private extension Session {
 97 |     func execute<S: WebService>(_ request: URLRequest, for webService: S, onComplete: @escaping (Data?, URLResponse?, Error?) -> ()) -> URLSessionDataTask? {
    |                                            `- error: cannot find type 'URLRequest' in scope
 98 |         for handlerSpec in AllRequestsHandlers {
 99 |             if handlerSpec.service is S.Type {
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:97:105: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |
 96 | private extension Session {
 97 |     func execute<S: WebService>(_ request: URLRequest, for webService: S, onComplete: @escaping (Data?, URLResponse?, Error?) -> ()) -> URLSessionDataTask? {
    |                                                                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |         for handlerSpec in AllRequestsHandlers {
 99 |             if handlerSpec.service is S.Type {
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/Decree/Private/DecreeRequest.swift:97:137: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |
 96 | private extension Session {
 97 |     func execute<S: WebService>(_ request: URLRequest, for webService: S, onComplete: @escaping (Data?, URLResponse?, Error?) -> ()) -> URLSessionDataTask? {
    |                                                                                                                                         `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |         for handlerSpec in AllRequestsHandlers {
 99 |             if handlerSpec.service is S.Type {
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/Decree/Private/DecreeRequest.swift:110:52: error: cannot find type 'URLRequest' in scope
108 |     }
109 |
110 |     func executeDownload<S: WebService>(_ request: URLRequest, for webService: S, onComplete: @escaping (URL?, URLResponse?, Error?) -> ()) -> URLSessionDownloadTask? {
    |                                                    `- error: cannot find type 'URLRequest' in scope
111 |         for handlerSpec in AllRequestsHandlers {
112 |             if handlerSpec.service is S.Type {
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:110:112: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     }
109 |
110 |     func executeDownload<S: WebService>(_ request: URLRequest, for webService: S, onComplete: @escaping (URL?, URLResponse?, Error?) -> ()) -> URLSessionDownloadTask? {
    |                                                                                                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |         for handlerSpec in AllRequestsHandlers {
112 |             if handlerSpec.service is S.Type {
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/Decree/Private/DecreeRequest.swift:110:144: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     }
109 |
110 |     func executeDownload<S: WebService>(_ request: URLRequest, for webService: S, onComplete: @escaping (URL?, URLResponse?, Error?) -> ()) -> URLSessionDownloadTask? {
    |                                                                                                                                                `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |         for handlerSpec in AllRequestsHandlers {
112 |             if handlerSpec.service is S.Type {
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/Decree/Private/DecreeRequest.swift:127:36: error: cannot find type 'URLRequest' in scope
125 |
126 | private extension DecreeRequest {
127 |     func createRequest() throws -> URLRequest {
    |                                    `- error: cannot find type 'URLRequest' in scope
128 |         let request: URLRequest
129 |         if let url = url {
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:147:84: error: cannot find type 'URLRequest' in scope
145 |     ///
146 |     /// - Returns: the created request
147 |     func createRequest<E: Endpoint>(to endpoint: E, input: RequestInput) throws -> URLRequest {
    |                                                                                    `- error: cannot find type 'URLRequest' in scope
148 |         let url = try self.createUrl(to: endpoint, input: input)
149 |         return try self.createRequest(to: url, for: endpoint, input: input)
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:161:98: error: cannot find type 'URLRequest' in scope
159 |     ///
160 |     /// - Returns: the created request
161 |     func createRequest<E: Endpoint>(to url: URL, for endpoint: E, input: RequestInput) throws -> URLRequest {
    |                                                                                                  `- error: cannot find type 'URLRequest' in scope
162 |         var request = URLRequest(url: url)
163 |         request.httpMethod = E.method.rawValue
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:215:20: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 11 | #endif
 12 |
 13 | class DecreeRequest<E: Endpoint, S: WebService> {
    |                     `- note: 'E' previously declared here
 14 |     enum Output {
 15 |         case data(Data)
    :
213 |     ///
214 |     /// - Returns: the URL to send the input to
215 |     func createUrl<E: Endpoint>(to endpoint: E, input: RequestInput) throws -> URL {
    |                    `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
216 |         var withoutQuery = endpoint.baseURLOverride ?? self.service.baseURL
217 |         if !endpoint.path.isEmpty {
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:238:58: error: cannot find type 'URLRequest' in scope
236 |     }
237 |
238 |     func addAuthorization<E: Endpoint>(to request: inout URLRequest, isRequired: Bool, for endpoint: E) throws {
    |                                                          `- error: cannot find type 'URLRequest' in scope
239 |         switch self.service.authorization {
240 |         case .none:
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:256:28: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 11 | #endif
 12 |
 13 | class DecreeRequest<E: Endpoint, S: WebService> {
    |                     `- note: 'E' previously declared here
 14 |     enum Output {
 15 |         case data(Data)
    :
254 |     }
255 |
256 |     func automaticValidate<E: Endpoint>(_ response: URLResponse, for endpoint: E) throws {
    |                            `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
257 |         guard let response = response as? HTTPURLResponse else {
258 |             return
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:256:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
254 |     }
255 |
256 |     func automaticValidate<E: Endpoint>(_ response: URLResponse, for endpoint: E) throws {
    |                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
257 |         guard let response = response as? HTTPURLResponse else {
258 |             return
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/Decree/Private/DecreeRequest.swift:274:35: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
272 |
273 | private extension DecreeRequest {
274 |     func observeProgress(of task: URLSessionTask?) {
    |                                   `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 |         #if canImport(ObjectiveC)
276 |         if #available(iOS 11.0, OSX 10.13, tvOS 11.0, *) {
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/Decree/Private/DecreeRequest.swift:288:54: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
286 |
287 | private extension DecreeRequest {
288 |     func handleResponse(_ output: Output?, response: URLResponse?, error: Error?) {
    |                                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
289 |         self.callbackQueue.async {
290 |             self.logResponse(output: output, response: response, error: error, for: self.endpoint)
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/Decree/Private/DecreeRequest.swift:336:17: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 11 | #endif
 12 |
 13 | class DecreeRequest<E: Endpoint, S: WebService> {
    |                     `- note: 'E' previously declared here
 14 |     enum Output {
 15 |         case data(Data)
    :
334 |     }
335 |
336 |     func handle<E: Endpoint>(_ error: Error, withResponse response: URLResponse, output: Output?, endpoint: E) -> ErrorHandling {
    |                 `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
337 |         let loadedData: Data?
338 |         if let output = output {
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:336:69: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
334 |     }
335 |
336 |     func handle<E: Endpoint>(_ error: Error, withResponse response: URLResponse, output: Output?, endpoint: E) -> ErrorHandling {
    |                                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
337 |         let loadedData: Data?
338 |         if let output = output {
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/Decree/Private/DecreeRequest.swift:367:38: error: cannot find type 'URLRequest' in scope
365 |
366 | private extension DecreeRequest {
367 |     func log<E: Endpoint>(_ request: URLRequest, for endpoint: E) {
    |                                      `- error: cannot find type 'URLRequest' in scope
368 |         Logger.shared.logInfo("""
369 |             --------------------------------------------------------------
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:378:22: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 11 | #endif
 12 |
 13 | class DecreeRequest<E: Endpoint, S: WebService> {
    |                     `- note: 'E' previously declared here
 14 |     enum Output {
 15 |         case data(Data)
    :
376 |     }
377 |
378 |     func logResponse<E: Endpoint>(output: Output?, response: URLResponse?, error: Error?, for endpoint: E) {
    |                      `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
379 |         var log = """
380 |             --------------------------------------------------------------
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:378:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
376 |     }
377 |
378 |     func logResponse<E: Endpoint>(output: Output?, response: URLResponse?, error: Error?, for endpoint: E) {
    |                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
379 |         var log = """
380 |             --------------------------------------------------------------
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/Decree/Private/DecreeRequest.swift:60:70: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 58 |             let request = try self.createRequest()
 59 |
 60 |             let session = self.service.sessionOverride ?? URLSession.shared
    |                                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 61 |             let task = session.execute(request, for: self.service, onComplete: { data, response, error in
 62 |                 let output = Output(data)
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:81:70: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 79 |             let request = try self.createRequest()
 80 |
 81 |             let session = self.service.sessionOverride ?? URLSession.shared
    |                                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 82 |             let task = session.executeDownload(request, for: self.service, onComplete: { url, response, error in
 83 |                 let output = Output(url)
/host/spi-builder-workspace/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:25:30: error: cannot find type 'URLRequest' in scope
 23 |     ///     - An optional URLResponse (will usually be an HTTPURLResponse)
 24 |     ///     - An optional error
 25 |     func handle(dataRequest: URLRequest) -> (Data?, URLResponse?, Error?)
    |                              `- error: cannot find type 'URLRequest' in scope
 26 |
 27 |     /// Handle download requests
/host/spi-builder-workspace/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:38:34: error: cannot find type 'URLRequest' in scope
 36 |     ///     - An optional URLResponse (will usually be an HTTPURLResponse)
 37 |     ///     - An optional error
 38 |     func handle(downloadRequest: URLRequest) -> (URL?, URLResponse?, Error?)
    |                                  `- error: cannot find type 'URLRequest' in scope
 39 | }
 40 |
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:128:22: error: cannot find type 'URLRequest' in scope
126 | private extension DecreeRequest {
127 |     func createRequest() throws -> URLRequest {
128 |         let request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
129 |         if let url = url {
130 |             request = try self.createRequest(to: url, for: endpoint, input: input)
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:162:23: error: cannot find 'URLRequest' in scope
160 |     /// - Returns: the created request
161 |     func createRequest<E: Endpoint>(to url: URL, for endpoint: E, input: RequestInput) throws -> URLRequest {
162 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
163 |         request.httpMethod = E.method.rawValue
164 |
/host/spi-builder-workspace/Sources/Decree/WebService.swift:71:50: error: cannot find type 'URLRequest' in scope
 69 |
 70 |     /// **OPTIONAL** Chance to configure each URLRequest
 71 |     func configure<E: Endpoint>(_ request: inout URLRequest, for endpoint: E) throws
    |                                                  `- error: cannot find type 'URLRequest' in scope
 72 |
 73 |     /// **OPTIONAL** Chance to configure each input encoder
/host/spi-builder-workspace/Sources/Decree/WebService.swift:107:57: error: cannot find type 'URLRequest' in scope
105 |
106 |     public var sessionOverride: Session? { return nil }
107 |     public func configure<E: Endpoint>(_ request: inout URLRequest, for endpoint: E) throws {}
    |                                                         `- error: cannot find type 'URLRequest' in scope
108 |     public func configure<E: Endpoint>(_ encoder: inout JSONEncoder, for endpoint: E) throws {}
109 |     public func configure<E: Endpoint>(_ decoder: inout JSONDecoder, for endpoint: E) throws {}
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:257:39: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
255 |
256 |     func automaticValidate<E: Endpoint>(_ response: URLResponse, for endpoint: E) throws {
257 |         guard let response = response as? HTTPURLResponse else {
    |                                       `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
258 |             return
259 |         }
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:257:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
255 |
256 |     func automaticValidate<E: Endpoint>(_ response: URLResponse, for endpoint: E) throws {
257 |         guard let response = response as? HTTPURLResponse else {
    |                                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
258 |             return
259 |         }
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/Decree/Private/DecreeRequest.swift:261:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
259 |         }
260 |
261 |         switch response.statusCode {
    |                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
262 |         case let x where x >= 200 && x < 300:
263 |             break
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:265:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
263 |             break
264 |         default:
265 |             let status = HTTPStatus(rawValue: response.statusCode)
    |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
266 |             throw endpoint.error(.http(status))
267 |         }
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:390:29: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'logDescription'
388 |
389 |         if let response = response {
390 |             log += response.logDescription
    |                             `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'logDescription'
391 |         }
392 |         else {
/host/spi-builder-workspace/Sources/Decree/Private/DispatchQueue+Async.swift:10:37: error: cannot find type 'DispatchQueue' in scope
 8 | import Foundation
 9 |
10 | extension Optional where Wrapped == DispatchQueue {
   |                                     `- error: cannot find type 'DispatchQueue' in scope
11 |     func async(execute: @escaping () -> ()) {
12 |         if let queue = self {
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:18:76: error: cannot find type 'DispatchQueue' in scope
 16 |     /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
 17 |     /// - Parameter onComplete: Callback when the request is complete
 18 |     func _makeRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ result: EmptyResult) -> ()) {
    |                                                                            `- error: cannot find type 'DispatchQueue' in scope
 19 |         if let mock = service.sessionOverride as? WebServiceMock<Service> {
 20 |             mock.handle(for: self, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:46:95: error: cannot find type 'DispatchQueue' in scope
 44 |     /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
 45 |     /// - Parameter onComplete: Callback when the request is complete
 46 |     func _makeRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ result: EmptyResult) -> ()) {
    |                                                                                               `- error: cannot find type 'DispatchQueue' in scope
 47 |         if let mock = service.sessionOverride as? WebServiceMock<Service> {
 48 |             mock.handle(for: self, input: input, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:81:76: error: cannot find type 'DispatchQueue' in scope
 79 |     /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
 80 |     /// - Parameter onComplete: Callback when the request is complete that includes output if successful
 81 |     func _makeRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ result: Result<Output, DecreeError>) -> ()) {
    |                                                                            `- error: cannot find type 'DispatchQueue' in scope
 82 |         if let mock = service.sessionOverride as? WebServiceMock<Service> {
 83 |             mock.handle(for: self, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:104:84: error: cannot find type 'DispatchQueue' in scope
102 |
103 | extension OutEndpoint {
104 |     func _makeDownloadRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ error: Result<URL, DecreeError>) -> ()) {
    |                                                                                    `- error: cannot find type 'DispatchQueue' in scope
105 |         if let mock = service.sessionOverride as? WebServiceMock<Service> {
106 |             mock.handleDownload(for: self, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:124:95: error: cannot find type 'DispatchQueue' in scope
122 |     /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
123 |     /// - Parameter onComplete: Callback when the request is complete that includes output if successful
124 |     func _makeRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ error: Result<Output, DecreeError>) -> ()) {
    |                                                                                               `- error: cannot find type 'DispatchQueue' in scope
125 |         if let mock = service.sessionOverride as? WebServiceMock<Service> {
126 |             mock.handle(for: self, input: input, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:155:103: error: cannot find type 'DispatchQueue' in scope
153 |
154 | extension InOutEndpoint where Input: Encodable {
155 |     func _makeDownloadRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ error: Result<URL, DecreeError>) -> ()) {
    |                                                                                                       `- error: cannot find type 'DispatchQueue' in scope
156 |         if let mock = service.sessionOverride as? WebServiceMock<Service> {
157 |             mock.handleDownload(for: self, input: input, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:11:67: error: cannot find type 'DispatchQueue' in scope
  9 |
 10 | extension WebServiceMock {
 11 |     func handle<E: EmptyEndpoint>(for endpoint: E, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: EmptyResult) -> ()) {
    |                                                                   `- error: cannot find type 'DispatchQueue' in scope
 12 |         do {
 13 |             let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:55:65: error: cannot find type 'DispatchQueue' in scope
 53 |     }
 54 |
 55 |     func handle<E: OutEndpoint>(for endpoint: E, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: Result<E.Output, DecreeError>) -> ()) {
    |                                                                 `- error: cannot find type 'DispatchQueue' in scope
 56 |         do {
 57 |             let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:33:80: error: cannot find type 'DispatchQueue' in scope
 31 |     }
 32 |
 33 |     func handle<E: InEndpoint>(for endpoint: E, input: E.Input, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: EmptyResult) -> ()) where E.Input: Encodable {
    |                                                                                `- error: cannot find type 'DispatchQueue' in scope
 34 |         do {
 35 |             let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:99:83: error: cannot find type 'DispatchQueue' in scope
 97 |     }
 98 |
 99 |     func handle<E: InOutEndpoint>(for endpoint: E, input: E.Input, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: Result<E.Output, DecreeError>) -> ()) where E.Input: Encodable {
    |                                                                                   `- error: cannot find type 'DispatchQueue' in scope
100 |         do {
101 |             let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebService+MakeRequest.swift:26:87: error: cannot find type 'DispatchQueue' in scope
 24 |     /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on the default queue from URLSession
 25 |     /// - Parameter onComplete: callback for when the request completes with the data returned
 26 |     func makeRequest<E: Endpoint>(to endpoint: E, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<Data?, DecreeError>) -> ()) {
    |                                                                                       `- error: cannot find type 'DispatchQueue' in scope
 27 |         let request = DecreeRequest(for: endpoint, of: self, input: input, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: { result in
 28 |             switch result {
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:24:47: error: cannot infer contextual base in reference to member 'none'
 22 |         }
 23 |
 24 |         service.makeRequest(to: self, input: .none, callbackQueue: callbackQueue, onProgress: onProgress) { result in
    |                                               `- error: cannot infer contextual base in reference to member 'none'
 25 |             switch result {
 26 |             case .failure(let error):
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:87:47: error: cannot infer contextual base in reference to member 'none'
 85 |         }
 86 |
 87 |         service.makeRequest(to: self, input: .none, callbackQueue: callbackQueue, onProgress: onProgress) { result in
    |                                               `- error: cannot infer contextual base in reference to member 'none'
 88 |             switch result {
 89 |             case .failure(let error):
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:77:73: error: cannot find type 'DispatchQueue' in scope
 75 |     }
 76 |
 77 |     func handleDownload<E: OutEndpoint>(for endpoint: E, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: Result<URL, DecreeError>) -> ()) {
    |                                                                         `- error: cannot find type 'DispatchQueue' in scope
 78 |         do {
 79 |             let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:121:91: error: cannot find type 'DispatchQueue' in scope
119 |     }
120 |
121 |     func handleDownload<E: InOutEndpoint>(for endpoint: E, input: E.Input, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: Result<URL, DecreeError>) -> ()) where E.Input: Encodable {
    |                                                                                           `- error: cannot find type 'DispatchQueue' in scope
122 |         do {
123 |             let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebService+MakeRequest.swift:48:95: error: cannot find type 'DispatchQueue' in scope
 46 |     }
 47 |
 48 |     func makeDownloadRequest<E: Endpoint>(to endpoint: E, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<URL, DecreeError>) -> ()) {
    |                                                                                               `- error: cannot find type 'DispatchQueue' in scope
 49 |         let request = DecreeRequest(for: endpoint, of: self, input: input, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: { result in
 50 |             switch result {
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:109:55: error: cannot infer contextual base in reference to member 'none'
107 |             return
108 |         }
109 |         service.makeDownloadRequest(to: self, input: .none, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: onComplete)
    |                                                       `- error: cannot infer contextual base in reference to member 'none'
110 |     }
111 | }
[80/92] Compiling Decree DispatchQueue+Async.swift
/host/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:21:18: error: cannot find type 'DispatchSemaphore' in scope
 19 |
 20 |     var pathValidation: PathValidation {get}
 21 |     var waiting: DispatchSemaphore {get}
    |                  `- error: cannot find type 'DispatchSemaphore' in scope
 22 | }
 23 |
/host/spi-builder-workspace/Sources/Decree/Mocking/WebServiceMock.swift:344:40: error: cannot find type 'URLRequest' in scope
342 |     }
343 |
344 |     public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask {
    |                                        `- error: cannot find type 'URLRequest' in scope
345 |         fatalError("Should not get called. It is special-cased.")
346 |     }
/host/spi-builder-workspace/Sources/Decree/Mocking/WebServiceMock.swift:344:89: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
342 |     }
343 |
344 |     public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask {
    |                                                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
345 |         fatalError("Should not get called. It is special-cased.")
346 |     }
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/Decree/Mocking/WebServiceMock.swift:344:123: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
342 |     }
343 |
344 |     public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask {
    |                                                                                                                           `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
345 |         fatalError("Should not get called. It is special-cased.")
346 |     }
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/Decree/Mocking/WebServiceMock.swift:348:44: error: cannot find type 'URLRequest' in scope
346 |     }
347 |
348 |     public func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask {
    |                                            `- error: cannot find type 'URLRequest' in scope
349 |         fatalError("Should not get called. It is special-cased.")
350 |     }
/host/spi-builder-workspace/Sources/Decree/Mocking/WebServiceMock.swift:348:92: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
346 |     }
347 |
348 |     public func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask {
    |                                                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
349 |         fatalError("Should not get called. It is special-cased.")
350 |     }
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/Decree/Mocking/WebServiceMock.swift:348:126: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
346 |     }
347 |
348 |     public func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask {
    |                                                                                                                              `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
349 |         fatalError("Should not get called. It is special-cased.")
350 |     }
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/Decree/Basic Types/Session.swift:22:33: error: cannot find type 'URLRequest' in scope
20 | //    init(configuration: URLSessionConfiguration, delegate: URLSessionDelegate?, delegateQueue queue: OperationQueue?)
21 |
22 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
   |                                 `- error: cannot find type 'URLRequest' in scope
23 |     func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
24 | }
/host/spi-builder-workspace/Sources/Decree/Basic Types/Session.swift:23:37: error: cannot find type 'URLRequest' in scope
21 |
22 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
23 |     func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
   |                                     `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:37:24: error: cannot find type 'DispatchQueue' in scope
 35 |     let endpoint: E
 36 |     let input: RequestInput
 37 |     let callbackQueue: DispatchQueue?
    |                        `- error: cannot find type 'DispatchQueue' in scope
 38 |     let onProgress: ((Double) -> ())?
 39 |     let onComplete: (_ result: Result<Output?, DecreeError>) -> ()
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:44:78: error: cannot find type 'DispatchQueue' in scope
 42 |     var progressObserver: AnyObject?
 43 |
 44 |     init(for endpoint: E, of service: S, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<Output?, DecreeError>) -> ()) {
    |                                                                              `- error: cannot find type 'DispatchQueue' in scope
 45 |         self.service = service
 46 |         self.endpoint = endpoint
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:97:44: error: cannot find type 'URLRequest' in scope
 95 |
 96 | private extension Session {
 97 |     func execute<S: WebService>(_ request: URLRequest, for webService: S, onComplete: @escaping (Data?, URLResponse?, Error?) -> ()) -> URLSessionDataTask? {
    |                                            `- error: cannot find type 'URLRequest' in scope
 98 |         for handlerSpec in AllRequestsHandlers {
 99 |             if handlerSpec.service is S.Type {
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:97:105: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |
 96 | private extension Session {
 97 |     func execute<S: WebService>(_ request: URLRequest, for webService: S, onComplete: @escaping (Data?, URLResponse?, Error?) -> ()) -> URLSessionDataTask? {
    |                                                                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |         for handlerSpec in AllRequestsHandlers {
 99 |             if handlerSpec.service is S.Type {
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/Decree/Private/DecreeRequest.swift:97:137: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |
 96 | private extension Session {
 97 |     func execute<S: WebService>(_ request: URLRequest, for webService: S, onComplete: @escaping (Data?, URLResponse?, Error?) -> ()) -> URLSessionDataTask? {
    |                                                                                                                                         `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |         for handlerSpec in AllRequestsHandlers {
 99 |             if handlerSpec.service is S.Type {
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/Decree/Private/DecreeRequest.swift:110:52: error: cannot find type 'URLRequest' in scope
108 |     }
109 |
110 |     func executeDownload<S: WebService>(_ request: URLRequest, for webService: S, onComplete: @escaping (URL?, URLResponse?, Error?) -> ()) -> URLSessionDownloadTask? {
    |                                                    `- error: cannot find type 'URLRequest' in scope
111 |         for handlerSpec in AllRequestsHandlers {
112 |             if handlerSpec.service is S.Type {
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:110:112: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     }
109 |
110 |     func executeDownload<S: WebService>(_ request: URLRequest, for webService: S, onComplete: @escaping (URL?, URLResponse?, Error?) -> ()) -> URLSessionDownloadTask? {
    |                                                                                                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |         for handlerSpec in AllRequestsHandlers {
112 |             if handlerSpec.service is S.Type {
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/Decree/Private/DecreeRequest.swift:110:144: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     }
109 |
110 |     func executeDownload<S: WebService>(_ request: URLRequest, for webService: S, onComplete: @escaping (URL?, URLResponse?, Error?) -> ()) -> URLSessionDownloadTask? {
    |                                                                                                                                                `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |         for handlerSpec in AllRequestsHandlers {
112 |             if handlerSpec.service is S.Type {
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/Decree/Private/DecreeRequest.swift:127:36: error: cannot find type 'URLRequest' in scope
125 |
126 | private extension DecreeRequest {
127 |     func createRequest() throws -> URLRequest {
    |                                    `- error: cannot find type 'URLRequest' in scope
128 |         let request: URLRequest
129 |         if let url = url {
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:147:84: error: cannot find type 'URLRequest' in scope
145 |     ///
146 |     /// - Returns: the created request
147 |     func createRequest<E: Endpoint>(to endpoint: E, input: RequestInput) throws -> URLRequest {
    |                                                                                    `- error: cannot find type 'URLRequest' in scope
148 |         let url = try self.createUrl(to: endpoint, input: input)
149 |         return try self.createRequest(to: url, for: endpoint, input: input)
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:161:98: error: cannot find type 'URLRequest' in scope
159 |     ///
160 |     /// - Returns: the created request
161 |     func createRequest<E: Endpoint>(to url: URL, for endpoint: E, input: RequestInput) throws -> URLRequest {
    |                                                                                                  `- error: cannot find type 'URLRequest' in scope
162 |         var request = URLRequest(url: url)
163 |         request.httpMethod = E.method.rawValue
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:215:20: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 11 | #endif
 12 |
 13 | class DecreeRequest<E: Endpoint, S: WebService> {
    |                     `- note: 'E' previously declared here
 14 |     enum Output {
 15 |         case data(Data)
    :
213 |     ///
214 |     /// - Returns: the URL to send the input to
215 |     func createUrl<E: Endpoint>(to endpoint: E, input: RequestInput) throws -> URL {
    |                    `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
216 |         var withoutQuery = endpoint.baseURLOverride ?? self.service.baseURL
217 |         if !endpoint.path.isEmpty {
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:238:58: error: cannot find type 'URLRequest' in scope
236 |     }
237 |
238 |     func addAuthorization<E: Endpoint>(to request: inout URLRequest, isRequired: Bool, for endpoint: E) throws {
    |                                                          `- error: cannot find type 'URLRequest' in scope
239 |         switch self.service.authorization {
240 |         case .none:
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:256:28: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 11 | #endif
 12 |
 13 | class DecreeRequest<E: Endpoint, S: WebService> {
    |                     `- note: 'E' previously declared here
 14 |     enum Output {
 15 |         case data(Data)
    :
254 |     }
255 |
256 |     func automaticValidate<E: Endpoint>(_ response: URLResponse, for endpoint: E) throws {
    |                            `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
257 |         guard let response = response as? HTTPURLResponse else {
258 |             return
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:256:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
254 |     }
255 |
256 |     func automaticValidate<E: Endpoint>(_ response: URLResponse, for endpoint: E) throws {
    |                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
257 |         guard let response = response as? HTTPURLResponse else {
258 |             return
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/Decree/Private/DecreeRequest.swift:274:35: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
272 |
273 | private extension DecreeRequest {
274 |     func observeProgress(of task: URLSessionTask?) {
    |                                   `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 |         #if canImport(ObjectiveC)
276 |         if #available(iOS 11.0, OSX 10.13, tvOS 11.0, *) {
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/Decree/Private/DecreeRequest.swift:288:54: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
286 |
287 | private extension DecreeRequest {
288 |     func handleResponse(_ output: Output?, response: URLResponse?, error: Error?) {
    |                                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
289 |         self.callbackQueue.async {
290 |             self.logResponse(output: output, response: response, error: error, for: self.endpoint)
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/Decree/Private/DecreeRequest.swift:336:17: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 11 | #endif
 12 |
 13 | class DecreeRequest<E: Endpoint, S: WebService> {
    |                     `- note: 'E' previously declared here
 14 |     enum Output {
 15 |         case data(Data)
    :
334 |     }
335 |
336 |     func handle<E: Endpoint>(_ error: Error, withResponse response: URLResponse, output: Output?, endpoint: E) -> ErrorHandling {
    |                 `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
337 |         let loadedData: Data?
338 |         if let output = output {
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:336:69: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
334 |     }
335 |
336 |     func handle<E: Endpoint>(_ error: Error, withResponse response: URLResponse, output: Output?, endpoint: E) -> ErrorHandling {
    |                                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
337 |         let loadedData: Data?
338 |         if let output = output {
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/Decree/Private/DecreeRequest.swift:367:38: error: cannot find type 'URLRequest' in scope
365 |
366 | private extension DecreeRequest {
367 |     func log<E: Endpoint>(_ request: URLRequest, for endpoint: E) {
    |                                      `- error: cannot find type 'URLRequest' in scope
368 |         Logger.shared.logInfo("""
369 |             --------------------------------------------------------------
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:378:22: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 11 | #endif
 12 |
 13 | class DecreeRequest<E: Endpoint, S: WebService> {
    |                     `- note: 'E' previously declared here
 14 |     enum Output {
 15 |         case data(Data)
    :
376 |     }
377 |
378 |     func logResponse<E: Endpoint>(output: Output?, response: URLResponse?, error: Error?, for endpoint: E) {
    |                      `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
379 |         var log = """
380 |             --------------------------------------------------------------
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:378:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
376 |     }
377 |
378 |     func logResponse<E: Endpoint>(output: Output?, response: URLResponse?, error: Error?, for endpoint: E) {
    |                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
379 |         var log = """
380 |             --------------------------------------------------------------
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/Decree/Private/DecreeRequest.swift:60:70: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 58 |             let request = try self.createRequest()
 59 |
 60 |             let session = self.service.sessionOverride ?? URLSession.shared
    |                                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 61 |             let task = session.execute(request, for: self.service, onComplete: { data, response, error in
 62 |                 let output = Output(data)
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:81:70: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 79 |             let request = try self.createRequest()
 80 |
 81 |             let session = self.service.sessionOverride ?? URLSession.shared
    |                                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 82 |             let task = session.executeDownload(request, for: self.service, onComplete: { url, response, error in
 83 |                 let output = Output(url)
/host/spi-builder-workspace/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:25:30: error: cannot find type 'URLRequest' in scope
 23 |     ///     - An optional URLResponse (will usually be an HTTPURLResponse)
 24 |     ///     - An optional error
 25 |     func handle(dataRequest: URLRequest) -> (Data?, URLResponse?, Error?)
    |                              `- error: cannot find type 'URLRequest' in scope
 26 |
 27 |     /// Handle download requests
/host/spi-builder-workspace/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:38:34: error: cannot find type 'URLRequest' in scope
 36 |     ///     - An optional URLResponse (will usually be an HTTPURLResponse)
 37 |     ///     - An optional error
 38 |     func handle(downloadRequest: URLRequest) -> (URL?, URLResponse?, Error?)
    |                                  `- error: cannot find type 'URLRequest' in scope
 39 | }
 40 |
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:128:22: error: cannot find type 'URLRequest' in scope
126 | private extension DecreeRequest {
127 |     func createRequest() throws -> URLRequest {
128 |         let request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
129 |         if let url = url {
130 |             request = try self.createRequest(to: url, for: endpoint, input: input)
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:162:23: error: cannot find 'URLRequest' in scope
160 |     /// - Returns: the created request
161 |     func createRequest<E: Endpoint>(to url: URL, for endpoint: E, input: RequestInput) throws -> URLRequest {
162 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
163 |         request.httpMethod = E.method.rawValue
164 |
/host/spi-builder-workspace/Sources/Decree/WebService.swift:71:50: error: cannot find type 'URLRequest' in scope
 69 |
 70 |     /// **OPTIONAL** Chance to configure each URLRequest
 71 |     func configure<E: Endpoint>(_ request: inout URLRequest, for endpoint: E) throws
    |                                                  `- error: cannot find type 'URLRequest' in scope
 72 |
 73 |     /// **OPTIONAL** Chance to configure each input encoder
/host/spi-builder-workspace/Sources/Decree/WebService.swift:107:57: error: cannot find type 'URLRequest' in scope
105 |
106 |     public var sessionOverride: Session? { return nil }
107 |     public func configure<E: Endpoint>(_ request: inout URLRequest, for endpoint: E) throws {}
    |                                                         `- error: cannot find type 'URLRequest' in scope
108 |     public func configure<E: Endpoint>(_ encoder: inout JSONEncoder, for endpoint: E) throws {}
109 |     public func configure<E: Endpoint>(_ decoder: inout JSONDecoder, for endpoint: E) throws {}
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:257:39: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
255 |
256 |     func automaticValidate<E: Endpoint>(_ response: URLResponse, for endpoint: E) throws {
257 |         guard let response = response as? HTTPURLResponse else {
    |                                       `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
258 |             return
259 |         }
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:257:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
255 |
256 |     func automaticValidate<E: Endpoint>(_ response: URLResponse, for endpoint: E) throws {
257 |         guard let response = response as? HTTPURLResponse else {
    |                                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
258 |             return
259 |         }
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/Decree/Private/DecreeRequest.swift:261:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
259 |         }
260 |
261 |         switch response.statusCode {
    |                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
262 |         case let x where x >= 200 && x < 300:
263 |             break
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:265:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
263 |             break
264 |         default:
265 |             let status = HTTPStatus(rawValue: response.statusCode)
    |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
266 |             throw endpoint.error(.http(status))
267 |         }
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:390:29: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'logDescription'
388 |
389 |         if let response = response {
390 |             log += response.logDescription
    |                             `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'logDescription'
391 |         }
392 |         else {
/host/spi-builder-workspace/Sources/Decree/Private/DispatchQueue+Async.swift:10:37: error: cannot find type 'DispatchQueue' in scope
 8 | import Foundation
 9 |
10 | extension Optional where Wrapped == DispatchQueue {
   |                                     `- error: cannot find type 'DispatchQueue' in scope
11 |     func async(execute: @escaping () -> ()) {
12 |         if let queue = self {
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:18:76: error: cannot find type 'DispatchQueue' in scope
 16 |     /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
 17 |     /// - Parameter onComplete: Callback when the request is complete
 18 |     func _makeRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ result: EmptyResult) -> ()) {
    |                                                                            `- error: cannot find type 'DispatchQueue' in scope
 19 |         if let mock = service.sessionOverride as? WebServiceMock<Service> {
 20 |             mock.handle(for: self, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:46:95: error: cannot find type 'DispatchQueue' in scope
 44 |     /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
 45 |     /// - Parameter onComplete: Callback when the request is complete
 46 |     func _makeRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ result: EmptyResult) -> ()) {
    |                                                                                               `- error: cannot find type 'DispatchQueue' in scope
 47 |         if let mock = service.sessionOverride as? WebServiceMock<Service> {
 48 |             mock.handle(for: self, input: input, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:81:76: error: cannot find type 'DispatchQueue' in scope
 79 |     /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
 80 |     /// - Parameter onComplete: Callback when the request is complete that includes output if successful
 81 |     func _makeRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ result: Result<Output, DecreeError>) -> ()) {
    |                                                                            `- error: cannot find type 'DispatchQueue' in scope
 82 |         if let mock = service.sessionOverride as? WebServiceMock<Service> {
 83 |             mock.handle(for: self, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:104:84: error: cannot find type 'DispatchQueue' in scope
102 |
103 | extension OutEndpoint {
104 |     func _makeDownloadRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ error: Result<URL, DecreeError>) -> ()) {
    |                                                                                    `- error: cannot find type 'DispatchQueue' in scope
105 |         if let mock = service.sessionOverride as? WebServiceMock<Service> {
106 |             mock.handleDownload(for: self, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:124:95: error: cannot find type 'DispatchQueue' in scope
122 |     /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
123 |     /// - Parameter onComplete: Callback when the request is complete that includes output if successful
124 |     func _makeRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ error: Result<Output, DecreeError>) -> ()) {
    |                                                                                               `- error: cannot find type 'DispatchQueue' in scope
125 |         if let mock = service.sessionOverride as? WebServiceMock<Service> {
126 |             mock.handle(for: self, input: input, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:155:103: error: cannot find type 'DispatchQueue' in scope
153 |
154 | extension InOutEndpoint where Input: Encodable {
155 |     func _makeDownloadRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ error: Result<URL, DecreeError>) -> ()) {
    |                                                                                                       `- error: cannot find type 'DispatchQueue' in scope
156 |         if let mock = service.sessionOverride as? WebServiceMock<Service> {
157 |             mock.handleDownload(for: self, input: input, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:11:67: error: cannot find type 'DispatchQueue' in scope
  9 |
 10 | extension WebServiceMock {
 11 |     func handle<E: EmptyEndpoint>(for endpoint: E, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: EmptyResult) -> ()) {
    |                                                                   `- error: cannot find type 'DispatchQueue' in scope
 12 |         do {
 13 |             let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:55:65: error: cannot find type 'DispatchQueue' in scope
 53 |     }
 54 |
 55 |     func handle<E: OutEndpoint>(for endpoint: E, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: Result<E.Output, DecreeError>) -> ()) {
    |                                                                 `- error: cannot find type 'DispatchQueue' in scope
 56 |         do {
 57 |             let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:33:80: error: cannot find type 'DispatchQueue' in scope
 31 |     }
 32 |
 33 |     func handle<E: InEndpoint>(for endpoint: E, input: E.Input, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: EmptyResult) -> ()) where E.Input: Encodable {
    |                                                                                `- error: cannot find type 'DispatchQueue' in scope
 34 |         do {
 35 |             let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:99:83: error: cannot find type 'DispatchQueue' in scope
 97 |     }
 98 |
 99 |     func handle<E: InOutEndpoint>(for endpoint: E, input: E.Input, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: Result<E.Output, DecreeError>) -> ()) where E.Input: Encodable {
    |                                                                                   `- error: cannot find type 'DispatchQueue' in scope
100 |         do {
101 |             let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebService+MakeRequest.swift:26:87: error: cannot find type 'DispatchQueue' in scope
 24 |     /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on the default queue from URLSession
 25 |     /// - Parameter onComplete: callback for when the request completes with the data returned
 26 |     func makeRequest<E: Endpoint>(to endpoint: E, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<Data?, DecreeError>) -> ()) {
    |                                                                                       `- error: cannot find type 'DispatchQueue' in scope
 27 |         let request = DecreeRequest(for: endpoint, of: self, input: input, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: { result in
 28 |             switch result {
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:24:47: error: cannot infer contextual base in reference to member 'none'
 22 |         }
 23 |
 24 |         service.makeRequest(to: self, input: .none, callbackQueue: callbackQueue, onProgress: onProgress) { result in
    |                                               `- error: cannot infer contextual base in reference to member 'none'
 25 |             switch result {
 26 |             case .failure(let error):
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:87:47: error: cannot infer contextual base in reference to member 'none'
 85 |         }
 86 |
 87 |         service.makeRequest(to: self, input: .none, callbackQueue: callbackQueue, onProgress: onProgress) { result in
    |                                               `- error: cannot infer contextual base in reference to member 'none'
 88 |             switch result {
 89 |             case .failure(let error):
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:77:73: error: cannot find type 'DispatchQueue' in scope
 75 |     }
 76 |
 77 |     func handleDownload<E: OutEndpoint>(for endpoint: E, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: Result<URL, DecreeError>) -> ()) {
    |                                                                         `- error: cannot find type 'DispatchQueue' in scope
 78 |         do {
 79 |             let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:121:91: error: cannot find type 'DispatchQueue' in scope
119 |     }
120 |
121 |     func handleDownload<E: InOutEndpoint>(for endpoint: E, input: E.Input, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: Result<URL, DecreeError>) -> ()) where E.Input: Encodable {
    |                                                                                           `- error: cannot find type 'DispatchQueue' in scope
122 |         do {
123 |             let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebService+MakeRequest.swift:48:95: error: cannot find type 'DispatchQueue' in scope
 46 |     }
 47 |
 48 |     func makeDownloadRequest<E: Endpoint>(to endpoint: E, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<URL, DecreeError>) -> ()) {
    |                                                                                               `- error: cannot find type 'DispatchQueue' in scope
 49 |         let request = DecreeRequest(for: endpoint, of: self, input: input, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: { result in
 50 |             switch result {
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:109:55: error: cannot infer contextual base in reference to member 'none'
107 |             return
108 |         }
109 |         service.makeDownloadRequest(to: self, input: .none, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: onComplete)
    |                                                       `- error: cannot infer contextual base in reference to member 'none'
110 |     }
111 | }
[81/92] Compiling Decree Endpoint+PrivateMakeRequest.swift
/host/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:21:18: error: cannot find type 'DispatchSemaphore' in scope
 19 |
 20 |     var pathValidation: PathValidation {get}
 21 |     var waiting: DispatchSemaphore {get}
    |                  `- error: cannot find type 'DispatchSemaphore' in scope
 22 | }
 23 |
/host/spi-builder-workspace/Sources/Decree/Mocking/WebServiceMock.swift:344:40: error: cannot find type 'URLRequest' in scope
342 |     }
343 |
344 |     public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask {
    |                                        `- error: cannot find type 'URLRequest' in scope
345 |         fatalError("Should not get called. It is special-cased.")
346 |     }
/host/spi-builder-workspace/Sources/Decree/Mocking/WebServiceMock.swift:344:89: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
342 |     }
343 |
344 |     public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask {
    |                                                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
345 |         fatalError("Should not get called. It is special-cased.")
346 |     }
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/Decree/Mocking/WebServiceMock.swift:344:123: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
342 |     }
343 |
344 |     public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask {
    |                                                                                                                           `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
345 |         fatalError("Should not get called. It is special-cased.")
346 |     }
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/Decree/Mocking/WebServiceMock.swift:348:44: error: cannot find type 'URLRequest' in scope
346 |     }
347 |
348 |     public func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask {
    |                                            `- error: cannot find type 'URLRequest' in scope
349 |         fatalError("Should not get called. It is special-cased.")
350 |     }
/host/spi-builder-workspace/Sources/Decree/Mocking/WebServiceMock.swift:348:92: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
346 |     }
347 |
348 |     public func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask {
    |                                                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
349 |         fatalError("Should not get called. It is special-cased.")
350 |     }
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/Decree/Mocking/WebServiceMock.swift:348:126: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
346 |     }
347 |
348 |     public func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask {
    |                                                                                                                              `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
349 |         fatalError("Should not get called. It is special-cased.")
350 |     }
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/Decree/Basic Types/Session.swift:22:33: error: cannot find type 'URLRequest' in scope
20 | //    init(configuration: URLSessionConfiguration, delegate: URLSessionDelegate?, delegateQueue queue: OperationQueue?)
21 |
22 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
   |                                 `- error: cannot find type 'URLRequest' in scope
23 |     func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
24 | }
/host/spi-builder-workspace/Sources/Decree/Basic Types/Session.swift:23:37: error: cannot find type 'URLRequest' in scope
21 |
22 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
23 |     func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
   |                                     `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:37:24: error: cannot find type 'DispatchQueue' in scope
 35 |     let endpoint: E
 36 |     let input: RequestInput
 37 |     let callbackQueue: DispatchQueue?
    |                        `- error: cannot find type 'DispatchQueue' in scope
 38 |     let onProgress: ((Double) -> ())?
 39 |     let onComplete: (_ result: Result<Output?, DecreeError>) -> ()
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:44:78: error: cannot find type 'DispatchQueue' in scope
 42 |     var progressObserver: AnyObject?
 43 |
 44 |     init(for endpoint: E, of service: S, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<Output?, DecreeError>) -> ()) {
    |                                                                              `- error: cannot find type 'DispatchQueue' in scope
 45 |         self.service = service
 46 |         self.endpoint = endpoint
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:97:44: error: cannot find type 'URLRequest' in scope
 95 |
 96 | private extension Session {
 97 |     func execute<S: WebService>(_ request: URLRequest, for webService: S, onComplete: @escaping (Data?, URLResponse?, Error?) -> ()) -> URLSessionDataTask? {
    |                                            `- error: cannot find type 'URLRequest' in scope
 98 |         for handlerSpec in AllRequestsHandlers {
 99 |             if handlerSpec.service is S.Type {
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:97:105: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |
 96 | private extension Session {
 97 |     func execute<S: WebService>(_ request: URLRequest, for webService: S, onComplete: @escaping (Data?, URLResponse?, Error?) -> ()) -> URLSessionDataTask? {
    |                                                                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |         for handlerSpec in AllRequestsHandlers {
 99 |             if handlerSpec.service is S.Type {
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/Decree/Private/DecreeRequest.swift:97:137: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |
 96 | private extension Session {
 97 |     func execute<S: WebService>(_ request: URLRequest, for webService: S, onComplete: @escaping (Data?, URLResponse?, Error?) -> ()) -> URLSessionDataTask? {
    |                                                                                                                                         `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |         for handlerSpec in AllRequestsHandlers {
 99 |             if handlerSpec.service is S.Type {
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/Decree/Private/DecreeRequest.swift:110:52: error: cannot find type 'URLRequest' in scope
108 |     }
109 |
110 |     func executeDownload<S: WebService>(_ request: URLRequest, for webService: S, onComplete: @escaping (URL?, URLResponse?, Error?) -> ()) -> URLSessionDownloadTask? {
    |                                                    `- error: cannot find type 'URLRequest' in scope
111 |         for handlerSpec in AllRequestsHandlers {
112 |             if handlerSpec.service is S.Type {
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:110:112: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     }
109 |
110 |     func executeDownload<S: WebService>(_ request: URLRequest, for webService: S, onComplete: @escaping (URL?, URLResponse?, Error?) -> ()) -> URLSessionDownloadTask? {
    |                                                                                                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |         for handlerSpec in AllRequestsHandlers {
112 |             if handlerSpec.service is S.Type {
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/Decree/Private/DecreeRequest.swift:110:144: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     }
109 |
110 |     func executeDownload<S: WebService>(_ request: URLRequest, for webService: S, onComplete: @escaping (URL?, URLResponse?, Error?) -> ()) -> URLSessionDownloadTask? {
    |                                                                                                                                                `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |         for handlerSpec in AllRequestsHandlers {
112 |             if handlerSpec.service is S.Type {
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/Decree/Private/DecreeRequest.swift:127:36: error: cannot find type 'URLRequest' in scope
125 |
126 | private extension DecreeRequest {
127 |     func createRequest() throws -> URLRequest {
    |                                    `- error: cannot find type 'URLRequest' in scope
128 |         let request: URLRequest
129 |         if let url = url {
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:147:84: error: cannot find type 'URLRequest' in scope
145 |     ///
146 |     /// - Returns: the created request
147 |     func createRequest<E: Endpoint>(to endpoint: E, input: RequestInput) throws -> URLRequest {
    |                                                                                    `- error: cannot find type 'URLRequest' in scope
148 |         let url = try self.createUrl(to: endpoint, input: input)
149 |         return try self.createRequest(to: url, for: endpoint, input: input)
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:161:98: error: cannot find type 'URLRequest' in scope
159 |     ///
160 |     /// - Returns: the created request
161 |     func createRequest<E: Endpoint>(to url: URL, for endpoint: E, input: RequestInput) throws -> URLRequest {
    |                                                                                                  `- error: cannot find type 'URLRequest' in scope
162 |         var request = URLRequest(url: url)
163 |         request.httpMethod = E.method.rawValue
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:215:20: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 11 | #endif
 12 |
 13 | class DecreeRequest<E: Endpoint, S: WebService> {
    |                     `- note: 'E' previously declared here
 14 |     enum Output {
 15 |         case data(Data)
    :
213 |     ///
214 |     /// - Returns: the URL to send the input to
215 |     func createUrl<E: Endpoint>(to endpoint: E, input: RequestInput) throws -> URL {
    |                    `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
216 |         var withoutQuery = endpoint.baseURLOverride ?? self.service.baseURL
217 |         if !endpoint.path.isEmpty {
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:238:58: error: cannot find type 'URLRequest' in scope
236 |     }
237 |
238 |     func addAuthorization<E: Endpoint>(to request: inout URLRequest, isRequired: Bool, for endpoint: E) throws {
    |                                                          `- error: cannot find type 'URLRequest' in scope
239 |         switch self.service.authorization {
240 |         case .none:
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:256:28: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 11 | #endif
 12 |
 13 | class DecreeRequest<E: Endpoint, S: WebService> {
    |                     `- note: 'E' previously declared here
 14 |     enum Output {
 15 |         case data(Data)
    :
254 |     }
255 |
256 |     func automaticValidate<E: Endpoint>(_ response: URLResponse, for endpoint: E) throws {
    |                            `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
257 |         guard let response = response as? HTTPURLResponse else {
258 |             return
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:256:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
254 |     }
255 |
256 |     func automaticValidate<E: Endpoint>(_ response: URLResponse, for endpoint: E) throws {
    |                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
257 |         guard let response = response as? HTTPURLResponse else {
258 |             return
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/Decree/Private/DecreeRequest.swift:274:35: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
272 |
273 | private extension DecreeRequest {
274 |     func observeProgress(of task: URLSessionTask?) {
    |                                   `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 |         #if canImport(ObjectiveC)
276 |         if #available(iOS 11.0, OSX 10.13, tvOS 11.0, *) {
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/Decree/Private/DecreeRequest.swift:288:54: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
286 |
287 | private extension DecreeRequest {
288 |     func handleResponse(_ output: Output?, response: URLResponse?, error: Error?) {
    |                                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
289 |         self.callbackQueue.async {
290 |             self.logResponse(output: output, response: response, error: error, for: self.endpoint)
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/Decree/Private/DecreeRequest.swift:336:17: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 11 | #endif
 12 |
 13 | class DecreeRequest<E: Endpoint, S: WebService> {
    |                     `- note: 'E' previously declared here
 14 |     enum Output {
 15 |         case data(Data)
    :
334 |     }
335 |
336 |     func handle<E: Endpoint>(_ error: Error, withResponse response: URLResponse, output: Output?, endpoint: E) -> ErrorHandling {
    |                 `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
337 |         let loadedData: Data?
338 |         if let output = output {
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:336:69: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
334 |     }
335 |
336 |     func handle<E: Endpoint>(_ error: Error, withResponse response: URLResponse, output: Output?, endpoint: E) -> ErrorHandling {
    |                                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
337 |         let loadedData: Data?
338 |         if let output = output {
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/Decree/Private/DecreeRequest.swift:367:38: error: cannot find type 'URLRequest' in scope
365 |
366 | private extension DecreeRequest {
367 |     func log<E: Endpoint>(_ request: URLRequest, for endpoint: E) {
    |                                      `- error: cannot find type 'URLRequest' in scope
368 |         Logger.shared.logInfo("""
369 |             --------------------------------------------------------------
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:378:22: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 11 | #endif
 12 |
 13 | class DecreeRequest<E: Endpoint, S: WebService> {
    |                     `- note: 'E' previously declared here
 14 |     enum Output {
 15 |         case data(Data)
    :
376 |     }
377 |
378 |     func logResponse<E: Endpoint>(output: Output?, response: URLResponse?, error: Error?, for endpoint: E) {
    |                      `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
379 |         var log = """
380 |             --------------------------------------------------------------
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:378:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
376 |     }
377 |
378 |     func logResponse<E: Endpoint>(output: Output?, response: URLResponse?, error: Error?, for endpoint: E) {
    |                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
379 |         var log = """
380 |             --------------------------------------------------------------
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/Decree/Private/DecreeRequest.swift:60:70: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 58 |             let request = try self.createRequest()
 59 |
 60 |             let session = self.service.sessionOverride ?? URLSession.shared
    |                                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 61 |             let task = session.execute(request, for: self.service, onComplete: { data, response, error in
 62 |                 let output = Output(data)
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:81:70: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 79 |             let request = try self.createRequest()
 80 |
 81 |             let session = self.service.sessionOverride ?? URLSession.shared
    |                                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 82 |             let task = session.executeDownload(request, for: self.service, onComplete: { url, response, error in
 83 |                 let output = Output(url)
/host/spi-builder-workspace/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:25:30: error: cannot find type 'URLRequest' in scope
 23 |     ///     - An optional URLResponse (will usually be an HTTPURLResponse)
 24 |     ///     - An optional error
 25 |     func handle(dataRequest: URLRequest) -> (Data?, URLResponse?, Error?)
    |                              `- error: cannot find type 'URLRequest' in scope
 26 |
 27 |     /// Handle download requests
/host/spi-builder-workspace/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:38:34: error: cannot find type 'URLRequest' in scope
 36 |     ///     - An optional URLResponse (will usually be an HTTPURLResponse)
 37 |     ///     - An optional error
 38 |     func handle(downloadRequest: URLRequest) -> (URL?, URLResponse?, Error?)
    |                                  `- error: cannot find type 'URLRequest' in scope
 39 | }
 40 |
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:128:22: error: cannot find type 'URLRequest' in scope
126 | private extension DecreeRequest {
127 |     func createRequest() throws -> URLRequest {
128 |         let request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
129 |         if let url = url {
130 |             request = try self.createRequest(to: url, for: endpoint, input: input)
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:162:23: error: cannot find 'URLRequest' in scope
160 |     /// - Returns: the created request
161 |     func createRequest<E: Endpoint>(to url: URL, for endpoint: E, input: RequestInput) throws -> URLRequest {
162 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
163 |         request.httpMethod = E.method.rawValue
164 |
/host/spi-builder-workspace/Sources/Decree/WebService.swift:71:50: error: cannot find type 'URLRequest' in scope
 69 |
 70 |     /// **OPTIONAL** Chance to configure each URLRequest
 71 |     func configure<E: Endpoint>(_ request: inout URLRequest, for endpoint: E) throws
    |                                                  `- error: cannot find type 'URLRequest' in scope
 72 |
 73 |     /// **OPTIONAL** Chance to configure each input encoder
/host/spi-builder-workspace/Sources/Decree/WebService.swift:107:57: error: cannot find type 'URLRequest' in scope
105 |
106 |     public var sessionOverride: Session? { return nil }
107 |     public func configure<E: Endpoint>(_ request: inout URLRequest, for endpoint: E) throws {}
    |                                                         `- error: cannot find type 'URLRequest' in scope
108 |     public func configure<E: Endpoint>(_ encoder: inout JSONEncoder, for endpoint: E) throws {}
109 |     public func configure<E: Endpoint>(_ decoder: inout JSONDecoder, for endpoint: E) throws {}
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:257:39: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
255 |
256 |     func automaticValidate<E: Endpoint>(_ response: URLResponse, for endpoint: E) throws {
257 |         guard let response = response as? HTTPURLResponse else {
    |                                       `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
258 |             return
259 |         }
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:257:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
255 |
256 |     func automaticValidate<E: Endpoint>(_ response: URLResponse, for endpoint: E) throws {
257 |         guard let response = response as? HTTPURLResponse else {
    |                                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
258 |             return
259 |         }
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/Decree/Private/DecreeRequest.swift:261:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
259 |         }
260 |
261 |         switch response.statusCode {
    |                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
262 |         case let x where x >= 200 && x < 300:
263 |             break
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:265:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
263 |             break
264 |         default:
265 |             let status = HTTPStatus(rawValue: response.statusCode)
    |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
266 |             throw endpoint.error(.http(status))
267 |         }
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:390:29: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'logDescription'
388 |
389 |         if let response = response {
390 |             log += response.logDescription
    |                             `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'logDescription'
391 |         }
392 |         else {
/host/spi-builder-workspace/Sources/Decree/Private/DispatchQueue+Async.swift:10:37: error: cannot find type 'DispatchQueue' in scope
 8 | import Foundation
 9 |
10 | extension Optional where Wrapped == DispatchQueue {
   |                                     `- error: cannot find type 'DispatchQueue' in scope
11 |     func async(execute: @escaping () -> ()) {
12 |         if let queue = self {
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:18:76: error: cannot find type 'DispatchQueue' in scope
 16 |     /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
 17 |     /// - Parameter onComplete: Callback when the request is complete
 18 |     func _makeRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ result: EmptyResult) -> ()) {
    |                                                                            `- error: cannot find type 'DispatchQueue' in scope
 19 |         if let mock = service.sessionOverride as? WebServiceMock<Service> {
 20 |             mock.handle(for: self, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:46:95: error: cannot find type 'DispatchQueue' in scope
 44 |     /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
 45 |     /// - Parameter onComplete: Callback when the request is complete
 46 |     func _makeRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ result: EmptyResult) -> ()) {
    |                                                                                               `- error: cannot find type 'DispatchQueue' in scope
 47 |         if let mock = service.sessionOverride as? WebServiceMock<Service> {
 48 |             mock.handle(for: self, input: input, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:81:76: error: cannot find type 'DispatchQueue' in scope
 79 |     /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
 80 |     /// - Parameter onComplete: Callback when the request is complete that includes output if successful
 81 |     func _makeRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ result: Result<Output, DecreeError>) -> ()) {
    |                                                                            `- error: cannot find type 'DispatchQueue' in scope
 82 |         if let mock = service.sessionOverride as? WebServiceMock<Service> {
 83 |             mock.handle(for: self, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:104:84: error: cannot find type 'DispatchQueue' in scope
102 |
103 | extension OutEndpoint {
104 |     func _makeDownloadRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ error: Result<URL, DecreeError>) -> ()) {
    |                                                                                    `- error: cannot find type 'DispatchQueue' in scope
105 |         if let mock = service.sessionOverride as? WebServiceMock<Service> {
106 |             mock.handleDownload(for: self, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:124:95: error: cannot find type 'DispatchQueue' in scope
122 |     /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
123 |     /// - Parameter onComplete: Callback when the request is complete that includes output if successful
124 |     func _makeRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ error: Result<Output, DecreeError>) -> ()) {
    |                                                                                               `- error: cannot find type 'DispatchQueue' in scope
125 |         if let mock = service.sessionOverride as? WebServiceMock<Service> {
126 |             mock.handle(for: self, input: input, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:155:103: error: cannot find type 'DispatchQueue' in scope
153 |
154 | extension InOutEndpoint where Input: Encodable {
155 |     func _makeDownloadRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ error: Result<URL, DecreeError>) -> ()) {
    |                                                                                                       `- error: cannot find type 'DispatchQueue' in scope
156 |         if let mock = service.sessionOverride as? WebServiceMock<Service> {
157 |             mock.handleDownload(for: self, input: input, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:11:67: error: cannot find type 'DispatchQueue' in scope
  9 |
 10 | extension WebServiceMock {
 11 |     func handle<E: EmptyEndpoint>(for endpoint: E, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: EmptyResult) -> ()) {
    |                                                                   `- error: cannot find type 'DispatchQueue' in scope
 12 |         do {
 13 |             let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:55:65: error: cannot find type 'DispatchQueue' in scope
 53 |     }
 54 |
 55 |     func handle<E: OutEndpoint>(for endpoint: E, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: Result<E.Output, DecreeError>) -> ()) {
    |                                                                 `- error: cannot find type 'DispatchQueue' in scope
 56 |         do {
 57 |             let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:33:80: error: cannot find type 'DispatchQueue' in scope
 31 |     }
 32 |
 33 |     func handle<E: InEndpoint>(for endpoint: E, input: E.Input, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: EmptyResult) -> ()) where E.Input: Encodable {
    |                                                                                `- error: cannot find type 'DispatchQueue' in scope
 34 |         do {
 35 |             let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:99:83: error: cannot find type 'DispatchQueue' in scope
 97 |     }
 98 |
 99 |     func handle<E: InOutEndpoint>(for endpoint: E, input: E.Input, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: Result<E.Output, DecreeError>) -> ()) where E.Input: Encodable {
    |                                                                                   `- error: cannot find type 'DispatchQueue' in scope
100 |         do {
101 |             let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebService+MakeRequest.swift:26:87: error: cannot find type 'DispatchQueue' in scope
 24 |     /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on the default queue from URLSession
 25 |     /// - Parameter onComplete: callback for when the request completes with the data returned
 26 |     func makeRequest<E: Endpoint>(to endpoint: E, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<Data?, DecreeError>) -> ()) {
    |                                                                                       `- error: cannot find type 'DispatchQueue' in scope
 27 |         let request = DecreeRequest(for: endpoint, of: self, input: input, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: { result in
 28 |             switch result {
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:24:47: error: cannot infer contextual base in reference to member 'none'
 22 |         }
 23 |
 24 |         service.makeRequest(to: self, input: .none, callbackQueue: callbackQueue, onProgress: onProgress) { result in
    |                                               `- error: cannot infer contextual base in reference to member 'none'
 25 |             switch result {
 26 |             case .failure(let error):
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:87:47: error: cannot infer contextual base in reference to member 'none'
 85 |         }
 86 |
 87 |         service.makeRequest(to: self, input: .none, callbackQueue: callbackQueue, onProgress: onProgress) { result in
    |                                               `- error: cannot infer contextual base in reference to member 'none'
 88 |             switch result {
 89 |             case .failure(let error):
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:77:73: error: cannot find type 'DispatchQueue' in scope
 75 |     }
 76 |
 77 |     func handleDownload<E: OutEndpoint>(for endpoint: E, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: Result<URL, DecreeError>) -> ()) {
    |                                                                         `- error: cannot find type 'DispatchQueue' in scope
 78 |         do {
 79 |             let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:121:91: error: cannot find type 'DispatchQueue' in scope
119 |     }
120 |
121 |     func handleDownload<E: InOutEndpoint>(for endpoint: E, input: E.Input, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: Result<URL, DecreeError>) -> ()) where E.Input: Encodable {
    |                                                                                           `- error: cannot find type 'DispatchQueue' in scope
122 |         do {
123 |             let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebService+MakeRequest.swift:48:95: error: cannot find type 'DispatchQueue' in scope
 46 |     }
 47 |
 48 |     func makeDownloadRequest<E: Endpoint>(to endpoint: E, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<URL, DecreeError>) -> ()) {
    |                                                                                               `- error: cannot find type 'DispatchQueue' in scope
 49 |         let request = DecreeRequest(for: endpoint, of: self, input: input, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: { result in
 50 |             switch result {
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:109:55: error: cannot infer contextual base in reference to member 'none'
107 |             return
108 |         }
109 |         service.makeDownloadRequest(to: self, input: .none, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: onComplete)
    |                                                       `- error: cannot infer contextual base in reference to member 'none'
110 |     }
111 | }
[82/92] Compiling Decree Expectations+Private.swift
/host/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:21:18: error: cannot find type 'DispatchSemaphore' in scope
 19 |
 20 |     var pathValidation: PathValidation {get}
 21 |     var waiting: DispatchSemaphore {get}
    |                  `- error: cannot find type 'DispatchSemaphore' in scope
 22 | }
 23 |
/host/spi-builder-workspace/Sources/Decree/Mocking/WebServiceMock.swift:344:40: error: cannot find type 'URLRequest' in scope
342 |     }
343 |
344 |     public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask {
    |                                        `- error: cannot find type 'URLRequest' in scope
345 |         fatalError("Should not get called. It is special-cased.")
346 |     }
/host/spi-builder-workspace/Sources/Decree/Mocking/WebServiceMock.swift:344:89: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
342 |     }
343 |
344 |     public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask {
    |                                                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
345 |         fatalError("Should not get called. It is special-cased.")
346 |     }
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/Decree/Mocking/WebServiceMock.swift:344:123: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
342 |     }
343 |
344 |     public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask {
    |                                                                                                                           `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
345 |         fatalError("Should not get called. It is special-cased.")
346 |     }
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/Decree/Mocking/WebServiceMock.swift:348:44: error: cannot find type 'URLRequest' in scope
346 |     }
347 |
348 |     public func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask {
    |                                            `- error: cannot find type 'URLRequest' in scope
349 |         fatalError("Should not get called. It is special-cased.")
350 |     }
/host/spi-builder-workspace/Sources/Decree/Mocking/WebServiceMock.swift:348:92: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
346 |     }
347 |
348 |     public func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask {
    |                                                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
349 |         fatalError("Should not get called. It is special-cased.")
350 |     }
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/Decree/Mocking/WebServiceMock.swift:348:126: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
346 |     }
347 |
348 |     public func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask {
    |                                                                                                                              `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
349 |         fatalError("Should not get called. It is special-cased.")
350 |     }
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/Decree/Basic Types/Session.swift:22:33: error: cannot find type 'URLRequest' in scope
20 | //    init(configuration: URLSessionConfiguration, delegate: URLSessionDelegate?, delegateQueue queue: OperationQueue?)
21 |
22 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
   |                                 `- error: cannot find type 'URLRequest' in scope
23 |     func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
24 | }
/host/spi-builder-workspace/Sources/Decree/Basic Types/Session.swift:23:37: error: cannot find type 'URLRequest' in scope
21 |
22 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
23 |     func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
   |                                     `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:37:24: error: cannot find type 'DispatchQueue' in scope
 35 |     let endpoint: E
 36 |     let input: RequestInput
 37 |     let callbackQueue: DispatchQueue?
    |                        `- error: cannot find type 'DispatchQueue' in scope
 38 |     let onProgress: ((Double) -> ())?
 39 |     let onComplete: (_ result: Result<Output?, DecreeError>) -> ()
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:44:78: error: cannot find type 'DispatchQueue' in scope
 42 |     var progressObserver: AnyObject?
 43 |
 44 |     init(for endpoint: E, of service: S, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<Output?, DecreeError>) -> ()) {
    |                                                                              `- error: cannot find type 'DispatchQueue' in scope
 45 |         self.service = service
 46 |         self.endpoint = endpoint
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:97:44: error: cannot find type 'URLRequest' in scope
 95 |
 96 | private extension Session {
 97 |     func execute<S: WebService>(_ request: URLRequest, for webService: S, onComplete: @escaping (Data?, URLResponse?, Error?) -> ()) -> URLSessionDataTask? {
    |                                            `- error: cannot find type 'URLRequest' in scope
 98 |         for handlerSpec in AllRequestsHandlers {
 99 |             if handlerSpec.service is S.Type {
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:97:105: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |
 96 | private extension Session {
 97 |     func execute<S: WebService>(_ request: URLRequest, for webService: S, onComplete: @escaping (Data?, URLResponse?, Error?) -> ()) -> URLSessionDataTask? {
    |                                                                                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |         for handlerSpec in AllRequestsHandlers {
 99 |             if handlerSpec.service is S.Type {
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/Decree/Private/DecreeRequest.swift:97:137: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |
 96 | private extension Session {
 97 |     func execute<S: WebService>(_ request: URLRequest, for webService: S, onComplete: @escaping (Data?, URLResponse?, Error?) -> ()) -> URLSessionDataTask? {
    |                                                                                                                                         `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |         for handlerSpec in AllRequestsHandlers {
 99 |             if handlerSpec.service is S.Type {
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/Decree/Private/DecreeRequest.swift:110:52: error: cannot find type 'URLRequest' in scope
108 |     }
109 |
110 |     func executeDownload<S: WebService>(_ request: URLRequest, for webService: S, onComplete: @escaping (URL?, URLResponse?, Error?) -> ()) -> URLSessionDownloadTask? {
    |                                                    `- error: cannot find type 'URLRequest' in scope
111 |         for handlerSpec in AllRequestsHandlers {
112 |             if handlerSpec.service is S.Type {
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:110:112: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     }
109 |
110 |     func executeDownload<S: WebService>(_ request: URLRequest, for webService: S, onComplete: @escaping (URL?, URLResponse?, Error?) -> ()) -> URLSessionDownloadTask? {
    |                                                                                                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |         for handlerSpec in AllRequestsHandlers {
112 |             if handlerSpec.service is S.Type {
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/Decree/Private/DecreeRequest.swift:110:144: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
108 |     }
109 |
110 |     func executeDownload<S: WebService>(_ request: URLRequest, for webService: S, onComplete: @escaping (URL?, URLResponse?, Error?) -> ()) -> URLSessionDownloadTask? {
    |                                                                                                                                                `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 |         for handlerSpec in AllRequestsHandlers {
112 |             if handlerSpec.service is S.Type {
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/Decree/Private/DecreeRequest.swift:127:36: error: cannot find type 'URLRequest' in scope
125 |
126 | private extension DecreeRequest {
127 |     func createRequest() throws -> URLRequest {
    |                                    `- error: cannot find type 'URLRequest' in scope
128 |         let request: URLRequest
129 |         if let url = url {
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:147:84: error: cannot find type 'URLRequest' in scope
145 |     ///
146 |     /// - Returns: the created request
147 |     func createRequest<E: Endpoint>(to endpoint: E, input: RequestInput) throws -> URLRequest {
    |                                                                                    `- error: cannot find type 'URLRequest' in scope
148 |         let url = try self.createUrl(to: endpoint, input: input)
149 |         return try self.createRequest(to: url, for: endpoint, input: input)
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:161:98: error: cannot find type 'URLRequest' in scope
159 |     ///
160 |     /// - Returns: the created request
161 |     func createRequest<E: Endpoint>(to url: URL, for endpoint: E, input: RequestInput) throws -> URLRequest {
    |                                                                                                  `- error: cannot find type 'URLRequest' in scope
162 |         var request = URLRequest(url: url)
163 |         request.httpMethod = E.method.rawValue
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:215:20: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 11 | #endif
 12 |
 13 | class DecreeRequest<E: Endpoint, S: WebService> {
    |                     `- note: 'E' previously declared here
 14 |     enum Output {
 15 |         case data(Data)
    :
213 |     ///
214 |     /// - Returns: the URL to send the input to
215 |     func createUrl<E: Endpoint>(to endpoint: E, input: RequestInput) throws -> URL {
    |                    `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
216 |         var withoutQuery = endpoint.baseURLOverride ?? self.service.baseURL
217 |         if !endpoint.path.isEmpty {
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:238:58: error: cannot find type 'URLRequest' in scope
236 |     }
237 |
238 |     func addAuthorization<E: Endpoint>(to request: inout URLRequest, isRequired: Bool, for endpoint: E) throws {
    |                                                          `- error: cannot find type 'URLRequest' in scope
239 |         switch self.service.authorization {
240 |         case .none:
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:256:28: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 11 | #endif
 12 |
 13 | class DecreeRequest<E: Endpoint, S: WebService> {
    |                     `- note: 'E' previously declared here
 14 |     enum Output {
 15 |         case data(Data)
    :
254 |     }
255 |
256 |     func automaticValidate<E: Endpoint>(_ response: URLResponse, for endpoint: E) throws {
    |                            `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
257 |         guard let response = response as? HTTPURLResponse else {
258 |             return
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:256:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
254 |     }
255 |
256 |     func automaticValidate<E: Endpoint>(_ response: URLResponse, for endpoint: E) throws {
    |                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
257 |         guard let response = response as? HTTPURLResponse else {
258 |             return
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/Decree/Private/DecreeRequest.swift:274:35: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
272 |
273 | private extension DecreeRequest {
274 |     func observeProgress(of task: URLSessionTask?) {
    |                                   `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 |         #if canImport(ObjectiveC)
276 |         if #available(iOS 11.0, OSX 10.13, tvOS 11.0, *) {
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/Decree/Private/DecreeRequest.swift:288:54: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
286 |
287 | private extension DecreeRequest {
288 |     func handleResponse(_ output: Output?, response: URLResponse?, error: Error?) {
    |                                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
289 |         self.callbackQueue.async {
290 |             self.logResponse(output: output, response: response, error: error, for: self.endpoint)
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/Decree/Private/DecreeRequest.swift:336:17: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 11 | #endif
 12 |
 13 | class DecreeRequest<E: Endpoint, S: WebService> {
    |                     `- note: 'E' previously declared here
 14 |     enum Output {
 15 |         case data(Data)
    :
334 |     }
335 |
336 |     func handle<E: Endpoint>(_ error: Error, withResponse response: URLResponse, output: Output?, endpoint: E) -> ErrorHandling {
    |                 `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
337 |         let loadedData: Data?
338 |         if let output = output {
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:336:69: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
334 |     }
335 |
336 |     func handle<E: Endpoint>(_ error: Error, withResponse response: URLResponse, output: Output?, endpoint: E) -> ErrorHandling {
    |                                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
337 |         let loadedData: Data?
338 |         if let output = output {
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/Decree/Private/DecreeRequest.swift:367:38: error: cannot find type 'URLRequest' in scope
365 |
366 | private extension DecreeRequest {
367 |     func log<E: Endpoint>(_ request: URLRequest, for endpoint: E) {
    |                                      `- error: cannot find type 'URLRequest' in scope
368 |         Logger.shared.logInfo("""
369 |             --------------------------------------------------------------
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:378:22: warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 11 | #endif
 12 |
 13 | class DecreeRequest<E: Endpoint, S: WebService> {
    |                     `- note: 'E' previously declared here
 14 |     enum Output {
 15 |         case data(Data)
    :
376 |     }
377 |
378 |     func logResponse<E: Endpoint>(output: Output?, response: URLResponse?, error: Error?, for endpoint: E) {
    |                      `- warning: generic parameter 'E' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
379 |         var log = """
380 |             --------------------------------------------------------------
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:378:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
376 |     }
377 |
378 |     func logResponse<E: Endpoint>(output: Output?, response: URLResponse?, error: Error?, for endpoint: E) {
    |                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
379 |         var log = """
380 |             --------------------------------------------------------------
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/Decree/Private/DecreeRequest.swift:60:70: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 58 |             let request = try self.createRequest()
 59 |
 60 |             let session = self.service.sessionOverride ?? URLSession.shared
    |                                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 61 |             let task = session.execute(request, for: self.service, onComplete: { data, response, error in
 62 |                 let output = Output(data)
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:81:70: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 79 |             let request = try self.createRequest()
 80 |
 81 |             let session = self.service.sessionOverride ?? URLSession.shared
    |                                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 82 |             let task = session.executeDownload(request, for: self.service, onComplete: { url, response, error in
 83 |                 let output = Output(url)
/host/spi-builder-workspace/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:25:30: error: cannot find type 'URLRequest' in scope
 23 |     ///     - An optional URLResponse (will usually be an HTTPURLResponse)
 24 |     ///     - An optional error
 25 |     func handle(dataRequest: URLRequest) -> (Data?, URLResponse?, Error?)
    |                              `- error: cannot find type 'URLRequest' in scope
 26 |
 27 |     /// Handle download requests
/host/spi-builder-workspace/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:38:34: error: cannot find type 'URLRequest' in scope
 36 |     ///     - An optional URLResponse (will usually be an HTTPURLResponse)
 37 |     ///     - An optional error
 38 |     func handle(downloadRequest: URLRequest) -> (URL?, URLResponse?, Error?)
    |                                  `- error: cannot find type 'URLRequest' in scope
 39 | }
 40 |
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:128:22: error: cannot find type 'URLRequest' in scope
126 | private extension DecreeRequest {
127 |     func createRequest() throws -> URLRequest {
128 |         let request: URLRequest
    |                      `- error: cannot find type 'URLRequest' in scope
129 |         if let url = url {
130 |             request = try self.createRequest(to: url, for: endpoint, input: input)
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:162:23: error: cannot find 'URLRequest' in scope
160 |     /// - Returns: the created request
161 |     func createRequest<E: Endpoint>(to url: URL, for endpoint: E, input: RequestInput) throws -> URLRequest {
162 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
163 |         request.httpMethod = E.method.rawValue
164 |
/host/spi-builder-workspace/Sources/Decree/WebService.swift:71:50: error: cannot find type 'URLRequest' in scope
 69 |
 70 |     /// **OPTIONAL** Chance to configure each URLRequest
 71 |     func configure<E: Endpoint>(_ request: inout URLRequest, for endpoint: E) throws
    |                                                  `- error: cannot find type 'URLRequest' in scope
 72 |
 73 |     /// **OPTIONAL** Chance to configure each input encoder
/host/spi-builder-workspace/Sources/Decree/WebService.swift:107:57: error: cannot find type 'URLRequest' in scope
105 |
106 |     public var sessionOverride: Session? { return nil }
107 |     public func configure<E: Endpoint>(_ request: inout URLRequest, for endpoint: E) throws {}
    |                                                         `- error: cannot find type 'URLRequest' in scope
108 |     public func configure<E: Endpoint>(_ encoder: inout JSONEncoder, for endpoint: E) throws {}
109 |     public func configure<E: Endpoint>(_ decoder: inout JSONDecoder, for endpoint: E) throws {}
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:257:39: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
255 |
256 |     func automaticValidate<E: Endpoint>(_ response: URLResponse, for endpoint: E) throws {
257 |         guard let response = response as? HTTPURLResponse else {
    |                                       `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
258 |             return
259 |         }
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:257:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
255 |
256 |     func automaticValidate<E: Endpoint>(_ response: URLResponse, for endpoint: E) throws {
257 |         guard let response = response as? HTTPURLResponse else {
    |                                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
258 |             return
259 |         }
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/Decree/Private/DecreeRequest.swift:261:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
259 |         }
260 |
261 |         switch response.statusCode {
    |                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
262 |         case let x where x >= 200 && x < 300:
263 |             break
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:265:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
263 |             break
264 |         default:
265 |             let status = HTTPStatus(rawValue: response.statusCode)
    |                                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
266 |             throw endpoint.error(.http(status))
267 |         }
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:390:29: error: value of type 'URLResponse' (aka 'AnyObject') has no member 'logDescription'
388 |
389 |         if let response = response {
390 |             log += response.logDescription
    |                             `- error: value of type 'URLResponse' (aka 'AnyObject') has no member 'logDescription'
391 |         }
392 |         else {
/host/spi-builder-workspace/Sources/Decree/Private/DispatchQueue+Async.swift:10:37: error: cannot find type 'DispatchQueue' in scope
 8 | import Foundation
 9 |
10 | extension Optional where Wrapped == DispatchQueue {
   |                                     `- error: cannot find type 'DispatchQueue' in scope
11 |     func async(execute: @escaping () -> ()) {
12 |         if let queue = self {
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:18:76: error: cannot find type 'DispatchQueue' in scope
 16 |     /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
 17 |     /// - Parameter onComplete: Callback when the request is complete
 18 |     func _makeRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ result: EmptyResult) -> ()) {
    |                                                                            `- error: cannot find type 'DispatchQueue' in scope
 19 |         if let mock = service.sessionOverride as? WebServiceMock<Service> {
 20 |             mock.handle(for: self, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:46:95: error: cannot find type 'DispatchQueue' in scope
 44 |     /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
 45 |     /// - Parameter onComplete: Callback when the request is complete
 46 |     func _makeRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ result: EmptyResult) -> ()) {
    |                                                                                               `- error: cannot find type 'DispatchQueue' in scope
 47 |         if let mock = service.sessionOverride as? WebServiceMock<Service> {
 48 |             mock.handle(for: self, input: input, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:81:76: error: cannot find type 'DispatchQueue' in scope
 79 |     /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
 80 |     /// - Parameter onComplete: Callback when the request is complete that includes output if successful
 81 |     func _makeRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ result: Result<Output, DecreeError>) -> ()) {
    |                                                                            `- error: cannot find type 'DispatchQueue' in scope
 82 |         if let mock = service.sessionOverride as? WebServiceMock<Service> {
 83 |             mock.handle(for: self, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:104:84: error: cannot find type 'DispatchQueue' in scope
102 |
103 | extension OutEndpoint {
104 |     func _makeDownloadRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ error: Result<URL, DecreeError>) -> ()) {
    |                                                                                    `- error: cannot find type 'DispatchQueue' in scope
105 |         if let mock = service.sessionOverride as? WebServiceMock<Service> {
106 |             mock.handleDownload(for: self, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:124:95: error: cannot find type 'DispatchQueue' in scope
122 |     /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
123 |     /// - Parameter onComplete: Callback when the request is complete that includes output if successful
124 |     func _makeRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ error: Result<Output, DecreeError>) -> ()) {
    |                                                                                               `- error: cannot find type 'DispatchQueue' in scope
125 |         if let mock = service.sessionOverride as? WebServiceMock<Service> {
126 |             mock.handle(for: self, input: input, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:155:103: error: cannot find type 'DispatchQueue' in scope
153 |
154 | extension InOutEndpoint where Input: Encodable {
155 |     func _makeDownloadRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ error: Result<URL, DecreeError>) -> ()) {
    |                                                                                                       `- error: cannot find type 'DispatchQueue' in scope
156 |         if let mock = service.sessionOverride as? WebServiceMock<Service> {
157 |             mock.handleDownload(for: self, input: input, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:11:67: error: cannot find type 'DispatchQueue' in scope
  9 |
 10 | extension WebServiceMock {
 11 |     func handle<E: EmptyEndpoint>(for endpoint: E, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: EmptyResult) -> ()) {
    |                                                                   `- error: cannot find type 'DispatchQueue' in scope
 12 |         do {
 13 |             let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:55:65: error: cannot find type 'DispatchQueue' in scope
 53 |     }
 54 |
 55 |     func handle<E: OutEndpoint>(for endpoint: E, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: Result<E.Output, DecreeError>) -> ()) {
    |                                                                 `- error: cannot find type 'DispatchQueue' in scope
 56 |         do {
 57 |             let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:33:80: error: cannot find type 'DispatchQueue' in scope
 31 |     }
 32 |
 33 |     func handle<E: InEndpoint>(for endpoint: E, input: E.Input, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: EmptyResult) -> ()) where E.Input: Encodable {
    |                                                                                `- error: cannot find type 'DispatchQueue' in scope
 34 |         do {
 35 |             let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:99:83: error: cannot find type 'DispatchQueue' in scope
 97 |     }
 98 |
 99 |     func handle<E: InOutEndpoint>(for endpoint: E, input: E.Input, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: Result<E.Output, DecreeError>) -> ()) where E.Input: Encodable {
    |                                                                                   `- error: cannot find type 'DispatchQueue' in scope
100 |         do {
101 |             let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebService+MakeRequest.swift:26:87: error: cannot find type 'DispatchQueue' in scope
 24 |     /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on the default queue from URLSession
 25 |     /// - Parameter onComplete: callback for when the request completes with the data returned
 26 |     func makeRequest<E: Endpoint>(to endpoint: E, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<Data?, DecreeError>) -> ()) {
    |                                                                                       `- error: cannot find type 'DispatchQueue' in scope
 27 |         let request = DecreeRequest(for: endpoint, of: self, input: input, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: { result in
 28 |             switch result {
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:24:47: error: cannot infer contextual base in reference to member 'none'
 22 |         }
 23 |
 24 |         service.makeRequest(to: self, input: .none, callbackQueue: callbackQueue, onProgress: onProgress) { result in
    |                                               `- error: cannot infer contextual base in reference to member 'none'
 25 |             switch result {
 26 |             case .failure(let error):
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:87:47: error: cannot infer contextual base in reference to member 'none'
 85 |         }
 86 |
 87 |         service.makeRequest(to: self, input: .none, callbackQueue: callbackQueue, onProgress: onProgress) { result in
    |                                               `- error: cannot infer contextual base in reference to member 'none'
 88 |             switch result {
 89 |             case .failure(let error):
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:77:73: error: cannot find type 'DispatchQueue' in scope
 75 |     }
 76 |
 77 |     func handleDownload<E: OutEndpoint>(for endpoint: E, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: Result<URL, DecreeError>) -> ()) {
    |                                                                         `- error: cannot find type 'DispatchQueue' in scope
 78 |         do {
 79 |             let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:121:91: error: cannot find type 'DispatchQueue' in scope
119 |     }
120 |
121 |     func handleDownload<E: InOutEndpoint>(for endpoint: E, input: E.Input, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: Result<URL, DecreeError>) -> ()) where E.Input: Encodable {
    |                                                                                           `- error: cannot find type 'DispatchQueue' in scope
122 |         do {
123 |             let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebService+MakeRequest.swift:48:95: error: cannot find type 'DispatchQueue' in scope
 46 |     }
 47 |
 48 |     func makeDownloadRequest<E: Endpoint>(to endpoint: E, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<URL, DecreeError>) -> ()) {
    |                                                                                               `- error: cannot find type 'DispatchQueue' in scope
 49 |         let request = DecreeRequest(for: endpoint, of: self, input: input, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: { result in
 50 |             switch result {
/host/spi-builder-workspace/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:109:55: error: cannot infer contextual base in reference to member 'none'
107 |             return
108 |         }
109 |         service.makeDownloadRequest(to: self, input: .none, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: onComplete)
    |                                                       `- error: cannot infer contextual base in reference to member 'none'
110 |     }
111 | }
[83/92] Compiling Decree ErrorHandling.swift
[84/92] Compiling Decree ErrorResponse.swift
[85/92] Compiling Decree File.swift
[86/92] Compiling Decree InputFormat.swift
[87/92] Compiling Decree Method.swift
[88/92] Compiling Decree Authorization.swift
[89/92] Compiling Decree AuthorizationRequirement.swift
[90/92] Compiling Decree DecreeError.swift
[91/92] Compiling Decree DecreeErrorDescribable.swift
[92/92] Compiling Decree EmptyResult.swift
BUILD FAILURE 6.1 wasm