Build Information
Failed to build DecreeServices, reference 4.4.1 (4f9a08
), with Swift 6.1 for Wasm on 28 May 2025 00:10:54 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-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
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/.build/checkouts/Decree/Sources/Decree/WebService.swift:115:69: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | public func validate<E: Endpoint>(_ response: URLResponse, for endpoint: E) throws {}
114 | public func validate<E: Endpoint>(_ response: BasicResponse, for endpoint: E) throws {}
115 | public func handle<E: Endpoint>(_ error: DecreeError, response: URLResponse, from endpoint: E) -> ErrorHandling { return .error(error) }
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | }
117 |
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
[136/207] Compiling Decree NoBasicResponse.swift
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Basic Types/Session.swift:22:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | // init(configuration: URLSessionConfiguration, delegate: URLSessionDelegate?, delegateQueue queue: OperationQueue?)
21 |
22 | 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.
23 | func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
24 | }
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/.build/checkouts/Decree/Sources/Decree/Basic Types/Session.swift:22:116: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | // init(configuration: URLSessionConfiguration, delegate: URLSessionDelegate?, delegateQueue queue: OperationQueue?)
21 |
22 | 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.
23 | func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
24 | }
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/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Basic Types/Session.swift:23:85: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | }
25 |
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/.build/checkouts/Decree/Sources/Decree/Basic Types/Session.swift:23:119: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | }
25 |
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/.build/checkouts/Decree/Sources/Decree/Basic Types/Session.swift:26:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
24 | }
25 |
26 | extension URLSession: Session {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
27 |
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:33:82: error: cannot find type 'DispatchQueue' in scope
31 | /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
32 | /// - Parameter onComplete: Callback when the request is complete
33 | public func makeRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ result: EmptyResult) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
34 | self._makeRequest(to: service, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
35 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:89:101: error: cannot find type 'DispatchQueue' in scope
87 | /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
88 | /// - Parameter onComplete: Callback when the request is complete
89 | public func makeRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ result: EmptyResult) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
90 | self._makeRequest(to: service, with: input, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
91 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:146:82: error: cannot find type 'DispatchQueue' in scope
144 | /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
145 | /// - Parameter onComplete: Callback when the request is complete that includes output if successful
146 | public func makeRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ result: Result<Output, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
147 | self._makeRequest(to: service, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
148 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:189:90: error: cannot find type 'DispatchQueue' in scope
187 | /// - Parameter callbackQueue: Queue to execute the onComplete callbacks on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
188 | /// - Parameter onComplete: Callback when the request is complete that includes url to the downloaded data
189 | public func makeDownloadRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ error: Result<URL, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
190 | self._makeDownloadRequest(to: service, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
191 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:241:101: error: cannot find type 'DispatchQueue' in scope
239 | /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
240 | /// - Parameter onComplete: Callback when the request is complete that includes output if successful
241 | public func makeRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ error: Result<Output, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
242 | self._makeRequest(to: service, with: input, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
243 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:286:109: error: cannot find type 'DispatchQueue' in scope
284 | /// - Parameter callbackQueue: Queue to execute the onComplete callbacks on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
285 | /// - Parameter onComplete: Callback when the request is complete that includes url to the downloaded data
286 | public func makeDownloadRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ error: Result<URL, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
287 | self._makeDownloadRequest(to: service, with: input, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
288 | }
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:34:82: error: 'nil' requires a contextual type
32 | /// - Parameter onComplete: Callback when the request is complete
33 | public func makeRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ result: EmptyResult) -> ()) {
34 | self._makeRequest(to: service, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
| `- error: 'nil' requires a contextual type
35 | }
36 |
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:43:25: error: cannot find 'DispatchSemaphore' in scope
41 | /// - Parameter service: service to make the request to
42 | public func makeSynchronousRequest(to service: Service = Service.shared) throws {
43 | let semephore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
44 | var result: EmptyResult?
45 | self._makeRequest(to: service, callbackQueue: nil, onProgress: nil) { output in
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:45:55: error: 'nil' requires a contextual type
43 | let semephore = DispatchSemaphore(value: 0)
44 | var result: EmptyResult?
45 | self._makeRequest(to: service, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
46 | result = output
47 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:45:72: error: 'nil' requires a contextual type
43 | let semephore = DispatchSemaphore(value: 0)
44 | var result: EmptyResult?
45 | self._makeRequest(to: service, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
46 | result = output
47 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:90:95: error: 'nil' requires a contextual type
88 | /// - Parameter onComplete: Callback when the request is complete
89 | public func makeRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ result: EmptyResult) -> ()) {
90 | self._makeRequest(to: service, with: input, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
| `- error: 'nil' requires a contextual type
91 | }
92 |
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:102:25: error: cannot find 'DispatchSemaphore' in scope
100 | /// - Parameter input: data to pass to endpoint
101 | public func makeSynchronousRequest(to service: Service = Service.shared, with input: Input) throws {
102 | let semephore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
103 | var result: EmptyResult?
104 | self._makeRequest(to: service, with: input, callbackQueue: nil, onProgress: nil) { output in
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:104:68: error: 'nil' requires a contextual type
102 | let semephore = DispatchSemaphore(value: 0)
103 | var result: EmptyResult?
104 | self._makeRequest(to: service, with: input, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
105 | result = output
106 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:104:85: error: 'nil' requires a contextual type
102 | let semephore = DispatchSemaphore(value: 0)
103 | var result: EmptyResult?
104 | self._makeRequest(to: service, with: input, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
105 | result = output
106 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:147:82: error: 'nil' requires a contextual type
145 | /// - Parameter onComplete: Callback when the request is complete that includes output if successful
146 | public func makeRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ result: Result<Output, DecreeError>) -> ()) {
147 | self._makeRequest(to: service, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
| `- error: 'nil' requires a contextual type
148 | }
149 |
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:160:25: error: cannot find 'DispatchSemaphore' in scope
158 | /// - Returns: endpoint's output
159 | public func makeSynchronousRequest(to service: Service = Service.shared) throws -> Output {
160 | let semephore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
161 | var result: Result<Output, DecreeError>?
162 | self._makeRequest(to: service, callbackQueue: nil, onProgress: nil) { output in
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:162:55: error: 'nil' requires a contextual type
160 | let semephore = DispatchSemaphore(value: 0)
161 | var result: Result<Output, DecreeError>?
162 | self._makeRequest(to: service, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
163 | result = output
164 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:162:72: error: 'nil' requires a contextual type
160 | let semephore = DispatchSemaphore(value: 0)
161 | var result: Result<Output, DecreeError>?
162 | self._makeRequest(to: service, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
163 | result = output
164 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:190:90: error: 'nil' requires a contextual type
188 | /// - Parameter onComplete: Callback when the request is complete that includes url to the downloaded data
189 | public func makeDownloadRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ error: Result<URL, DecreeError>) -> ()) {
190 | self._makeDownloadRequest(to: service, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
| `- error: 'nil' requires a contextual type
191 | }
192 |
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:242:95: error: 'nil' requires a contextual type
240 | /// - Parameter onComplete: Callback when the request is complete that includes output if successful
241 | public func makeRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ error: Result<Output, DecreeError>) -> ()) {
242 | self._makeRequest(to: service, with: input, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
| `- error: 'nil' requires a contextual type
243 | }
244 |
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:256:25: error: cannot find 'DispatchSemaphore' in scope
254 | /// - Returns: endpoint's output
255 | public func makeSynchronousRequest(to service: Service = Service.shared, with input: Input) throws -> Output {
256 | let semephore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
257 | var result: Result<Output, DecreeError>?
258 | self._makeRequest(to: service, with: input, callbackQueue: nil, onProgress: nil) { output in
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:258:68: error: 'nil' requires a contextual type
256 | let semephore = DispatchSemaphore(value: 0)
257 | var result: Result<Output, DecreeError>?
258 | self._makeRequest(to: service, with: input, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
259 | result = output
260 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:258:85: error: 'nil' requires a contextual type
256 | let semephore = DispatchSemaphore(value: 0)
257 | var result: Result<Output, DecreeError>?
258 | self._makeRequest(to: service, with: input, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
259 | result = output
260 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:287:103: error: 'nil' requires a contextual type
285 | /// - Parameter onComplete: Callback when the request is complete that includes url to the downloaded data
286 | public func makeDownloadRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ error: Result<URL, DecreeError>) -> ()) {
287 | self._makeDownloadRequest(to: service, with: input, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
| `- error: 'nil' requires a contextual type
288 | }
289 |
[137/207] Compiling Decree OutputFormat.swift
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Basic Types/Session.swift:22:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | // init(configuration: URLSessionConfiguration, delegate: URLSessionDelegate?, delegateQueue queue: OperationQueue?)
21 |
22 | 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.
23 | func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
24 | }
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/.build/checkouts/Decree/Sources/Decree/Basic Types/Session.swift:22:116: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | // init(configuration: URLSessionConfiguration, delegate: URLSessionDelegate?, delegateQueue queue: OperationQueue?)
21 |
22 | 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.
23 | func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
24 | }
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/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Basic Types/Session.swift:23:85: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | }
25 |
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/.build/checkouts/Decree/Sources/Decree/Basic Types/Session.swift:23:119: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | }
25 |
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/.build/checkouts/Decree/Sources/Decree/Basic Types/Session.swift:26:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
24 | }
25 |
26 | extension URLSession: Session {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
27 |
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:33:82: error: cannot find type 'DispatchQueue' in scope
31 | /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
32 | /// - Parameter onComplete: Callback when the request is complete
33 | public func makeRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ result: EmptyResult) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
34 | self._makeRequest(to: service, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
35 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:89:101: error: cannot find type 'DispatchQueue' in scope
87 | /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
88 | /// - Parameter onComplete: Callback when the request is complete
89 | public func makeRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ result: EmptyResult) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
90 | self._makeRequest(to: service, with: input, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
91 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:146:82: error: cannot find type 'DispatchQueue' in scope
144 | /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
145 | /// - Parameter onComplete: Callback when the request is complete that includes output if successful
146 | public func makeRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ result: Result<Output, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
147 | self._makeRequest(to: service, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
148 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:189:90: error: cannot find type 'DispatchQueue' in scope
187 | /// - Parameter callbackQueue: Queue to execute the onComplete callbacks on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
188 | /// - Parameter onComplete: Callback when the request is complete that includes url to the downloaded data
189 | public func makeDownloadRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ error: Result<URL, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
190 | self._makeDownloadRequest(to: service, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
191 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:241:101: error: cannot find type 'DispatchQueue' in scope
239 | /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
240 | /// - Parameter onComplete: Callback when the request is complete that includes output if successful
241 | public func makeRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ error: Result<Output, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
242 | self._makeRequest(to: service, with: input, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
243 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:286:109: error: cannot find type 'DispatchQueue' in scope
284 | /// - Parameter callbackQueue: Queue to execute the onComplete callbacks on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
285 | /// - Parameter onComplete: Callback when the request is complete that includes url to the downloaded data
286 | public func makeDownloadRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ error: Result<URL, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
287 | self._makeDownloadRequest(to: service, with: input, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
288 | }
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:34:82: error: 'nil' requires a contextual type
32 | /// - Parameter onComplete: Callback when the request is complete
33 | public func makeRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ result: EmptyResult) -> ()) {
34 | self._makeRequest(to: service, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
| `- error: 'nil' requires a contextual type
35 | }
36 |
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:43:25: error: cannot find 'DispatchSemaphore' in scope
41 | /// - Parameter service: service to make the request to
42 | public func makeSynchronousRequest(to service: Service = Service.shared) throws {
43 | let semephore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
44 | var result: EmptyResult?
45 | self._makeRequest(to: service, callbackQueue: nil, onProgress: nil) { output in
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:45:55: error: 'nil' requires a contextual type
43 | let semephore = DispatchSemaphore(value: 0)
44 | var result: EmptyResult?
45 | self._makeRequest(to: service, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
46 | result = output
47 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:45:72: error: 'nil' requires a contextual type
43 | let semephore = DispatchSemaphore(value: 0)
44 | var result: EmptyResult?
45 | self._makeRequest(to: service, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
46 | result = output
47 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:90:95: error: 'nil' requires a contextual type
88 | /// - Parameter onComplete: Callback when the request is complete
89 | public func makeRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ result: EmptyResult) -> ()) {
90 | self._makeRequest(to: service, with: input, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
| `- error: 'nil' requires a contextual type
91 | }
92 |
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:102:25: error: cannot find 'DispatchSemaphore' in scope
100 | /// - Parameter input: data to pass to endpoint
101 | public func makeSynchronousRequest(to service: Service = Service.shared, with input: Input) throws {
102 | let semephore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
103 | var result: EmptyResult?
104 | self._makeRequest(to: service, with: input, callbackQueue: nil, onProgress: nil) { output in
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:104:68: error: 'nil' requires a contextual type
102 | let semephore = DispatchSemaphore(value: 0)
103 | var result: EmptyResult?
104 | self._makeRequest(to: service, with: input, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
105 | result = output
106 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:104:85: error: 'nil' requires a contextual type
102 | let semephore = DispatchSemaphore(value: 0)
103 | var result: EmptyResult?
104 | self._makeRequest(to: service, with: input, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
105 | result = output
106 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:147:82: error: 'nil' requires a contextual type
145 | /// - Parameter onComplete: Callback when the request is complete that includes output if successful
146 | public func makeRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ result: Result<Output, DecreeError>) -> ()) {
147 | self._makeRequest(to: service, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
| `- error: 'nil' requires a contextual type
148 | }
149 |
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:160:25: error: cannot find 'DispatchSemaphore' in scope
158 | /// - Returns: endpoint's output
159 | public func makeSynchronousRequest(to service: Service = Service.shared) throws -> Output {
160 | let semephore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
161 | var result: Result<Output, DecreeError>?
162 | self._makeRequest(to: service, callbackQueue: nil, onProgress: nil) { output in
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:162:55: error: 'nil' requires a contextual type
160 | let semephore = DispatchSemaphore(value: 0)
161 | var result: Result<Output, DecreeError>?
162 | self._makeRequest(to: service, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
163 | result = output
164 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:162:72: error: 'nil' requires a contextual type
160 | let semephore = DispatchSemaphore(value: 0)
161 | var result: Result<Output, DecreeError>?
162 | self._makeRequest(to: service, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
163 | result = output
164 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:190:90: error: 'nil' requires a contextual type
188 | /// - Parameter onComplete: Callback when the request is complete that includes url to the downloaded data
189 | public func makeDownloadRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ error: Result<URL, DecreeError>) -> ()) {
190 | self._makeDownloadRequest(to: service, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
| `- error: 'nil' requires a contextual type
191 | }
192 |
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:242:95: error: 'nil' requires a contextual type
240 | /// - Parameter onComplete: Callback when the request is complete that includes output if successful
241 | public func makeRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ error: Result<Output, DecreeError>) -> ()) {
242 | self._makeRequest(to: service, with: input, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
| `- error: 'nil' requires a contextual type
243 | }
244 |
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:256:25: error: cannot find 'DispatchSemaphore' in scope
254 | /// - Returns: endpoint's output
255 | public func makeSynchronousRequest(to service: Service = Service.shared, with input: Input) throws -> Output {
256 | let semephore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
257 | var result: Result<Output, DecreeError>?
258 | self._makeRequest(to: service, with: input, callbackQueue: nil, onProgress: nil) { output in
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:258:68: error: 'nil' requires a contextual type
256 | let semephore = DispatchSemaphore(value: 0)
257 | var result: Result<Output, DecreeError>?
258 | self._makeRequest(to: service, with: input, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
259 | result = output
260 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:258:85: error: 'nil' requires a contextual type
256 | let semephore = DispatchSemaphore(value: 0)
257 | var result: Result<Output, DecreeError>?
258 | self._makeRequest(to: service, with: input, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
259 | result = output
260 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:287:103: error: 'nil' requires a contextual type
285 | /// - Parameter onComplete: Callback when the request is complete that includes url to the downloaded data
286 | public func makeDownloadRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ error: Result<URL, DecreeError>) -> ()) {
287 | self._makeDownloadRequest(to: service, with: input, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
| `- error: 'nil' requires a contextual type
288 | }
289 |
[138/207] Compiling Decree Session.swift
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Basic Types/Session.swift:22:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | // init(configuration: URLSessionConfiguration, delegate: URLSessionDelegate?, delegateQueue queue: OperationQueue?)
21 |
22 | 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.
23 | func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
24 | }
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/.build/checkouts/Decree/Sources/Decree/Basic Types/Session.swift:22:116: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | // init(configuration: URLSessionConfiguration, delegate: URLSessionDelegate?, delegateQueue queue: OperationQueue?)
21 |
22 | 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.
23 | func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
24 | }
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/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Basic Types/Session.swift:23:85: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | }
25 |
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/.build/checkouts/Decree/Sources/Decree/Basic Types/Session.swift:23:119: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | }
25 |
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/.build/checkouts/Decree/Sources/Decree/Basic Types/Session.swift:26:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
24 | }
25 |
26 | extension URLSession: Session {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
27 |
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:33:82: error: cannot find type 'DispatchQueue' in scope
31 | /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
32 | /// - Parameter onComplete: Callback when the request is complete
33 | public func makeRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ result: EmptyResult) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
34 | self._makeRequest(to: service, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
35 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:89:101: error: cannot find type 'DispatchQueue' in scope
87 | /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
88 | /// - Parameter onComplete: Callback when the request is complete
89 | public func makeRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ result: EmptyResult) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
90 | self._makeRequest(to: service, with: input, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
91 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:146:82: error: cannot find type 'DispatchQueue' in scope
144 | /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
145 | /// - Parameter onComplete: Callback when the request is complete that includes output if successful
146 | public func makeRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ result: Result<Output, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
147 | self._makeRequest(to: service, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
148 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:189:90: error: cannot find type 'DispatchQueue' in scope
187 | /// - Parameter callbackQueue: Queue to execute the onComplete callbacks on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
188 | /// - Parameter onComplete: Callback when the request is complete that includes url to the downloaded data
189 | public func makeDownloadRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ error: Result<URL, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
190 | self._makeDownloadRequest(to: service, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
191 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:241:101: error: cannot find type 'DispatchQueue' in scope
239 | /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
240 | /// - Parameter onComplete: Callback when the request is complete that includes output if successful
241 | public func makeRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ error: Result<Output, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
242 | self._makeRequest(to: service, with: input, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
243 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:286:109: error: cannot find type 'DispatchQueue' in scope
284 | /// - Parameter callbackQueue: Queue to execute the onComplete callbacks on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
285 | /// - Parameter onComplete: Callback when the request is complete that includes url to the downloaded data
286 | public func makeDownloadRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ error: Result<URL, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
287 | self._makeDownloadRequest(to: service, with: input, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
288 | }
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:34:82: error: 'nil' requires a contextual type
32 | /// - Parameter onComplete: Callback when the request is complete
33 | public func makeRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ result: EmptyResult) -> ()) {
34 | self._makeRequest(to: service, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
| `- error: 'nil' requires a contextual type
35 | }
36 |
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:43:25: error: cannot find 'DispatchSemaphore' in scope
41 | /// - Parameter service: service to make the request to
42 | public func makeSynchronousRequest(to service: Service = Service.shared) throws {
43 | let semephore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
44 | var result: EmptyResult?
45 | self._makeRequest(to: service, callbackQueue: nil, onProgress: nil) { output in
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:45:55: error: 'nil' requires a contextual type
43 | let semephore = DispatchSemaphore(value: 0)
44 | var result: EmptyResult?
45 | self._makeRequest(to: service, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
46 | result = output
47 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:45:72: error: 'nil' requires a contextual type
43 | let semephore = DispatchSemaphore(value: 0)
44 | var result: EmptyResult?
45 | self._makeRequest(to: service, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
46 | result = output
47 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:90:95: error: 'nil' requires a contextual type
88 | /// - Parameter onComplete: Callback when the request is complete
89 | public func makeRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ result: EmptyResult) -> ()) {
90 | self._makeRequest(to: service, with: input, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
| `- error: 'nil' requires a contextual type
91 | }
92 |
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:102:25: error: cannot find 'DispatchSemaphore' in scope
100 | /// - Parameter input: data to pass to endpoint
101 | public func makeSynchronousRequest(to service: Service = Service.shared, with input: Input) throws {
102 | let semephore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
103 | var result: EmptyResult?
104 | self._makeRequest(to: service, with: input, callbackQueue: nil, onProgress: nil) { output in
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:104:68: error: 'nil' requires a contextual type
102 | let semephore = DispatchSemaphore(value: 0)
103 | var result: EmptyResult?
104 | self._makeRequest(to: service, with: input, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
105 | result = output
106 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:104:85: error: 'nil' requires a contextual type
102 | let semephore = DispatchSemaphore(value: 0)
103 | var result: EmptyResult?
104 | self._makeRequest(to: service, with: input, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
105 | result = output
106 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:147:82: error: 'nil' requires a contextual type
145 | /// - Parameter onComplete: Callback when the request is complete that includes output if successful
146 | public func makeRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ result: Result<Output, DecreeError>) -> ()) {
147 | self._makeRequest(to: service, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
| `- error: 'nil' requires a contextual type
148 | }
149 |
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:160:25: error: cannot find 'DispatchSemaphore' in scope
158 | /// - Returns: endpoint's output
159 | public func makeSynchronousRequest(to service: Service = Service.shared) throws -> Output {
160 | let semephore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
161 | var result: Result<Output, DecreeError>?
162 | self._makeRequest(to: service, callbackQueue: nil, onProgress: nil) { output in
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:162:55: error: 'nil' requires a contextual type
160 | let semephore = DispatchSemaphore(value: 0)
161 | var result: Result<Output, DecreeError>?
162 | self._makeRequest(to: service, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
163 | result = output
164 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:162:72: error: 'nil' requires a contextual type
160 | let semephore = DispatchSemaphore(value: 0)
161 | var result: Result<Output, DecreeError>?
162 | self._makeRequest(to: service, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
163 | result = output
164 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:190:90: error: 'nil' requires a contextual type
188 | /// - Parameter onComplete: Callback when the request is complete that includes url to the downloaded data
189 | public func makeDownloadRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ error: Result<URL, DecreeError>) -> ()) {
190 | self._makeDownloadRequest(to: service, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
| `- error: 'nil' requires a contextual type
191 | }
192 |
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:242:95: error: 'nil' requires a contextual type
240 | /// - Parameter onComplete: Callback when the request is complete that includes output if successful
241 | public func makeRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ error: Result<Output, DecreeError>) -> ()) {
242 | self._makeRequest(to: service, with: input, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
| `- error: 'nil' requires a contextual type
243 | }
244 |
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:256:25: error: cannot find 'DispatchSemaphore' in scope
254 | /// - Returns: endpoint's output
255 | public func makeSynchronousRequest(to service: Service = Service.shared, with input: Input) throws -> Output {
256 | let semephore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
257 | var result: Result<Output, DecreeError>?
258 | self._makeRequest(to: service, with: input, callbackQueue: nil, onProgress: nil) { output in
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:258:68: error: 'nil' requires a contextual type
256 | let semephore = DispatchSemaphore(value: 0)
257 | var result: Result<Output, DecreeError>?
258 | self._makeRequest(to: service, with: input, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
259 | result = output
260 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:258:85: error: 'nil' requires a contextual type
256 | let semephore = DispatchSemaphore(value: 0)
257 | var result: Result<Output, DecreeError>?
258 | self._makeRequest(to: service, with: input, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
259 | result = output
260 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:287:103: error: 'nil' requires a contextual type
285 | /// - Parameter onComplete: Callback when the request is complete that includes url to the downloaded data
286 | public func makeDownloadRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ error: Result<URL, DecreeError>) -> ()) {
287 | self._makeDownloadRequest(to: service, with: input, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
| `- error: 'nil' requires a contextual type
288 | }
289 |
[139/207] Compiling Decree Endpoint+MakeRequest.swift
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Basic Types/Session.swift:22:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | // init(configuration: URLSessionConfiguration, delegate: URLSessionDelegate?, delegateQueue queue: OperationQueue?)
21 |
22 | 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.
23 | func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
24 | }
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/.build/checkouts/Decree/Sources/Decree/Basic Types/Session.swift:22:116: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | // init(configuration: URLSessionConfiguration, delegate: URLSessionDelegate?, delegateQueue queue: OperationQueue?)
21 |
22 | 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.
23 | func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
24 | }
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/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Basic Types/Session.swift:23:85: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | }
25 |
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/.build/checkouts/Decree/Sources/Decree/Basic Types/Session.swift:23:119: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | }
25 |
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/.build/checkouts/Decree/Sources/Decree/Basic Types/Session.swift:26:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
24 | }
25 |
26 | extension URLSession: Session {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
27 |
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:33:82: error: cannot find type 'DispatchQueue' in scope
31 | /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
32 | /// - Parameter onComplete: Callback when the request is complete
33 | public func makeRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ result: EmptyResult) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
34 | self._makeRequest(to: service, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
35 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:89:101: error: cannot find type 'DispatchQueue' in scope
87 | /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
88 | /// - Parameter onComplete: Callback when the request is complete
89 | public func makeRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ result: EmptyResult) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
90 | self._makeRequest(to: service, with: input, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
91 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:146:82: error: cannot find type 'DispatchQueue' in scope
144 | /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
145 | /// - Parameter onComplete: Callback when the request is complete that includes output if successful
146 | public func makeRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ result: Result<Output, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
147 | self._makeRequest(to: service, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
148 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:189:90: error: cannot find type 'DispatchQueue' in scope
187 | /// - Parameter callbackQueue: Queue to execute the onComplete callbacks on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
188 | /// - Parameter onComplete: Callback when the request is complete that includes url to the downloaded data
189 | public func makeDownloadRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ error: Result<URL, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
190 | self._makeDownloadRequest(to: service, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
191 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:241:101: error: cannot find type 'DispatchQueue' in scope
239 | /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
240 | /// - Parameter onComplete: Callback when the request is complete that includes output if successful
241 | public func makeRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ error: Result<Output, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
242 | self._makeRequest(to: service, with: input, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
243 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:286:109: error: cannot find type 'DispatchQueue' in scope
284 | /// - Parameter callbackQueue: Queue to execute the onComplete callbacks on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
285 | /// - Parameter onComplete: Callback when the request is complete that includes url to the downloaded data
286 | public func makeDownloadRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ error: Result<URL, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
287 | self._makeDownloadRequest(to: service, with: input, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
288 | }
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:34:82: error: 'nil' requires a contextual type
32 | /// - Parameter onComplete: Callback when the request is complete
33 | public func makeRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ result: EmptyResult) -> ()) {
34 | self._makeRequest(to: service, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
| `- error: 'nil' requires a contextual type
35 | }
36 |
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:43:25: error: cannot find 'DispatchSemaphore' in scope
41 | /// - Parameter service: service to make the request to
42 | public func makeSynchronousRequest(to service: Service = Service.shared) throws {
43 | let semephore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
44 | var result: EmptyResult?
45 | self._makeRequest(to: service, callbackQueue: nil, onProgress: nil) { output in
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:45:55: error: 'nil' requires a contextual type
43 | let semephore = DispatchSemaphore(value: 0)
44 | var result: EmptyResult?
45 | self._makeRequest(to: service, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
46 | result = output
47 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:45:72: error: 'nil' requires a contextual type
43 | let semephore = DispatchSemaphore(value: 0)
44 | var result: EmptyResult?
45 | self._makeRequest(to: service, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
46 | result = output
47 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:90:95: error: 'nil' requires a contextual type
88 | /// - Parameter onComplete: Callback when the request is complete
89 | public func makeRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ result: EmptyResult) -> ()) {
90 | self._makeRequest(to: service, with: input, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
| `- error: 'nil' requires a contextual type
91 | }
92 |
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:102:25: error: cannot find 'DispatchSemaphore' in scope
100 | /// - Parameter input: data to pass to endpoint
101 | public func makeSynchronousRequest(to service: Service = Service.shared, with input: Input) throws {
102 | let semephore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
103 | var result: EmptyResult?
104 | self._makeRequest(to: service, with: input, callbackQueue: nil, onProgress: nil) { output in
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:104:68: error: 'nil' requires a contextual type
102 | let semephore = DispatchSemaphore(value: 0)
103 | var result: EmptyResult?
104 | self._makeRequest(to: service, with: input, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
105 | result = output
106 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:104:85: error: 'nil' requires a contextual type
102 | let semephore = DispatchSemaphore(value: 0)
103 | var result: EmptyResult?
104 | self._makeRequest(to: service, with: input, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
105 | result = output
106 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:147:82: error: 'nil' requires a contextual type
145 | /// - Parameter onComplete: Callback when the request is complete that includes output if successful
146 | public func makeRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ result: Result<Output, DecreeError>) -> ()) {
147 | self._makeRequest(to: service, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
| `- error: 'nil' requires a contextual type
148 | }
149 |
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:160:25: error: cannot find 'DispatchSemaphore' in scope
158 | /// - Returns: endpoint's output
159 | public func makeSynchronousRequest(to service: Service = Service.shared) throws -> Output {
160 | let semephore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
161 | var result: Result<Output, DecreeError>?
162 | self._makeRequest(to: service, callbackQueue: nil, onProgress: nil) { output in
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:162:55: error: 'nil' requires a contextual type
160 | let semephore = DispatchSemaphore(value: 0)
161 | var result: Result<Output, DecreeError>?
162 | self._makeRequest(to: service, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
163 | result = output
164 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:162:72: error: 'nil' requires a contextual type
160 | let semephore = DispatchSemaphore(value: 0)
161 | var result: Result<Output, DecreeError>?
162 | self._makeRequest(to: service, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
163 | result = output
164 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:190:90: error: 'nil' requires a contextual type
188 | /// - Parameter onComplete: Callback when the request is complete that includes url to the downloaded data
189 | public func makeDownloadRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ error: Result<URL, DecreeError>) -> ()) {
190 | self._makeDownloadRequest(to: service, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
| `- error: 'nil' requires a contextual type
191 | }
192 |
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:242:95: error: 'nil' requires a contextual type
240 | /// - Parameter onComplete: Callback when the request is complete that includes output if successful
241 | public func makeRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ error: Result<Output, DecreeError>) -> ()) {
242 | self._makeRequest(to: service, with: input, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
| `- error: 'nil' requires a contextual type
243 | }
244 |
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:256:25: error: cannot find 'DispatchSemaphore' in scope
254 | /// - Returns: endpoint's output
255 | public func makeSynchronousRequest(to service: Service = Service.shared, with input: Input) throws -> Output {
256 | let semephore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
257 | var result: Result<Output, DecreeError>?
258 | self._makeRequest(to: service, with: input, callbackQueue: nil, onProgress: nil) { output in
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:258:68: error: 'nil' requires a contextual type
256 | let semephore = DispatchSemaphore(value: 0)
257 | var result: Result<Output, DecreeError>?
258 | self._makeRequest(to: service, with: input, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
259 | result = output
260 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:258:85: error: 'nil' requires a contextual type
256 | let semephore = DispatchSemaphore(value: 0)
257 | var result: Result<Output, DecreeError>?
258 | self._makeRequest(to: service, with: input, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
259 | result = output
260 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:287:103: error: 'nil' requires a contextual type
285 | /// - Parameter onComplete: Callback when the request is complete that includes url to the downloaded data
286 | public func makeDownloadRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ error: Result<URL, DecreeError>) -> ()) {
287 | self._makeDownloadRequest(to: service, with: input, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
| `- error: 'nil' requires a contextual type
288 | }
289 |
[140/207] Compiling Decree Endpoint.swift
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Basic Types/Session.swift:22:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | // init(configuration: URLSessionConfiguration, delegate: URLSessionDelegate?, delegateQueue queue: OperationQueue?)
21 |
22 | 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.
23 | func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
24 | }
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/.build/checkouts/Decree/Sources/Decree/Basic Types/Session.swift:22:116: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | // init(configuration: URLSessionConfiguration, delegate: URLSessionDelegate?, delegateQueue queue: OperationQueue?)
21 |
22 | 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.
23 | func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
24 | }
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/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Basic Types/Session.swift:23:85: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | }
25 |
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/.build/checkouts/Decree/Sources/Decree/Basic Types/Session.swift:23:119: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | }
25 |
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/.build/checkouts/Decree/Sources/Decree/Basic Types/Session.swift:26:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
24 | }
25 |
26 | extension URLSession: Session {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
27 |
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:33:82: error: cannot find type 'DispatchQueue' in scope
31 | /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
32 | /// - Parameter onComplete: Callback when the request is complete
33 | public func makeRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ result: EmptyResult) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
34 | self._makeRequest(to: service, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
35 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:89:101: error: cannot find type 'DispatchQueue' in scope
87 | /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
88 | /// - Parameter onComplete: Callback when the request is complete
89 | public func makeRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ result: EmptyResult) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
90 | self._makeRequest(to: service, with: input, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
91 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:146:82: error: cannot find type 'DispatchQueue' in scope
144 | /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
145 | /// - Parameter onComplete: Callback when the request is complete that includes output if successful
146 | public func makeRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ result: Result<Output, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
147 | self._makeRequest(to: service, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
148 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:189:90: error: cannot find type 'DispatchQueue' in scope
187 | /// - Parameter callbackQueue: Queue to execute the onComplete callbacks on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
188 | /// - Parameter onComplete: Callback when the request is complete that includes url to the downloaded data
189 | public func makeDownloadRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ error: Result<URL, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
190 | self._makeDownloadRequest(to: service, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
191 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:241:101: error: cannot find type 'DispatchQueue' in scope
239 | /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
240 | /// - Parameter onComplete: Callback when the request is complete that includes output if successful
241 | public func makeRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ error: Result<Output, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
242 | self._makeRequest(to: service, with: input, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
243 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:286:109: error: cannot find type 'DispatchQueue' in scope
284 | /// - Parameter callbackQueue: Queue to execute the onComplete callbacks on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
285 | /// - Parameter onComplete: Callback when the request is complete that includes url to the downloaded data
286 | public func makeDownloadRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ error: Result<URL, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
287 | self._makeDownloadRequest(to: service, with: input, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
288 | }
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:34:82: error: 'nil' requires a contextual type
32 | /// - Parameter onComplete: Callback when the request is complete
33 | public func makeRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ result: EmptyResult) -> ()) {
34 | self._makeRequest(to: service, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
| `- error: 'nil' requires a contextual type
35 | }
36 |
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:43:25: error: cannot find 'DispatchSemaphore' in scope
41 | /// - Parameter service: service to make the request to
42 | public func makeSynchronousRequest(to service: Service = Service.shared) throws {
43 | let semephore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
44 | var result: EmptyResult?
45 | self._makeRequest(to: service, callbackQueue: nil, onProgress: nil) { output in
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:45:55: error: 'nil' requires a contextual type
43 | let semephore = DispatchSemaphore(value: 0)
44 | var result: EmptyResult?
45 | self._makeRequest(to: service, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
46 | result = output
47 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:45:72: error: 'nil' requires a contextual type
43 | let semephore = DispatchSemaphore(value: 0)
44 | var result: EmptyResult?
45 | self._makeRequest(to: service, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
46 | result = output
47 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:90:95: error: 'nil' requires a contextual type
88 | /// - Parameter onComplete: Callback when the request is complete
89 | public func makeRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ result: EmptyResult) -> ()) {
90 | self._makeRequest(to: service, with: input, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
| `- error: 'nil' requires a contextual type
91 | }
92 |
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:102:25: error: cannot find 'DispatchSemaphore' in scope
100 | /// - Parameter input: data to pass to endpoint
101 | public func makeSynchronousRequest(to service: Service = Service.shared, with input: Input) throws {
102 | let semephore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
103 | var result: EmptyResult?
104 | self._makeRequest(to: service, with: input, callbackQueue: nil, onProgress: nil) { output in
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:104:68: error: 'nil' requires a contextual type
102 | let semephore = DispatchSemaphore(value: 0)
103 | var result: EmptyResult?
104 | self._makeRequest(to: service, with: input, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
105 | result = output
106 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:104:85: error: 'nil' requires a contextual type
102 | let semephore = DispatchSemaphore(value: 0)
103 | var result: EmptyResult?
104 | self._makeRequest(to: service, with: input, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
105 | result = output
106 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:147:82: error: 'nil' requires a contextual type
145 | /// - Parameter onComplete: Callback when the request is complete that includes output if successful
146 | public func makeRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ result: Result<Output, DecreeError>) -> ()) {
147 | self._makeRequest(to: service, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
| `- error: 'nil' requires a contextual type
148 | }
149 |
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:160:25: error: cannot find 'DispatchSemaphore' in scope
158 | /// - Returns: endpoint's output
159 | public func makeSynchronousRequest(to service: Service = Service.shared) throws -> Output {
160 | let semephore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
161 | var result: Result<Output, DecreeError>?
162 | self._makeRequest(to: service, callbackQueue: nil, onProgress: nil) { output in
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:162:55: error: 'nil' requires a contextual type
160 | let semephore = DispatchSemaphore(value: 0)
161 | var result: Result<Output, DecreeError>?
162 | self._makeRequest(to: service, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
163 | result = output
164 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:162:72: error: 'nil' requires a contextual type
160 | let semephore = DispatchSemaphore(value: 0)
161 | var result: Result<Output, DecreeError>?
162 | self._makeRequest(to: service, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
163 | result = output
164 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:190:90: error: 'nil' requires a contextual type
188 | /// - Parameter onComplete: Callback when the request is complete that includes url to the downloaded data
189 | public func makeDownloadRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ error: Result<URL, DecreeError>) -> ()) {
190 | self._makeDownloadRequest(to: service, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
| `- error: 'nil' requires a contextual type
191 | }
192 |
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:242:95: error: 'nil' requires a contextual type
240 | /// - Parameter onComplete: Callback when the request is complete that includes output if successful
241 | public func makeRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ error: Result<Output, DecreeError>) -> ()) {
242 | self._makeRequest(to: service, with: input, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
| `- error: 'nil' requires a contextual type
243 | }
244 |
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:256:25: error: cannot find 'DispatchSemaphore' in scope
254 | /// - Returns: endpoint's output
255 | public func makeSynchronousRequest(to service: Service = Service.shared, with input: Input) throws -> Output {
256 | let semephore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
257 | var result: Result<Output, DecreeError>?
258 | self._makeRequest(to: service, with: input, callbackQueue: nil, onProgress: nil) { output in
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:258:68: error: 'nil' requires a contextual type
256 | let semephore = DispatchSemaphore(value: 0)
257 | var result: Result<Output, DecreeError>?
258 | self._makeRequest(to: service, with: input, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
259 | result = output
260 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:258:85: error: 'nil' requires a contextual type
256 | let semephore = DispatchSemaphore(value: 0)
257 | var result: Result<Output, DecreeError>?
258 | self._makeRequest(to: service, with: input, callbackQueue: nil, onProgress: nil) { output in
| `- error: 'nil' requires a contextual type
259 | result = output
260 | semephore.signal()
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Endpoint+MakeRequest.swift:287:103: error: 'nil' requires a contextual type
285 | /// - Parameter onComplete: Callback when the request is complete that includes url to the downloaded data
286 | public func makeDownloadRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onComplete: @escaping (_ error: Result<URL, DecreeError>) -> ()) {
287 | self._makeDownloadRequest(to: service, with: input, callbackQueue: callbackQueue, onProgress: nil, onComplete: onComplete)
| `- error: 'nil' requires a contextual type
288 | }
289 |
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Mocking/Expectations.swift:28:48: error: cannot find type 'DispatchTimeoutResult' in scope
26 | ///
27 | /// Only use for asynchronous requests
28 | public func wait(timeout: TimeInterval) -> DispatchTimeoutResult {
| `- error: cannot find type 'DispatchTimeoutResult' in scope
29 | return self.waiting.wait(timeout: .now() + timeout)
30 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/Expectations.swift:43:26: error: cannot find 'DispatchSemaphore' in scope
41 | public let pathValidation: PathValidation
42 | public var returning: EmptyResult
43 | public var waiting = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
44 |
45 | public static var typeName: String {
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/Expectations.swift:65:26: error: cannot find 'DispatchSemaphore' in scope
63 | public let pathValidation: PathValidation
64 | public var returning: EmptyResult
65 | public var waiting = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
66 |
67 | public static var typeName: String {
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/Expectations.swift:87:26: error: cannot find 'DispatchSemaphore' in scope
85 | public let pathValidation: PathValidation
86 | public var returning: Result<E.Output, DecreeError>
87 | public var waiting = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
88 |
89 | public static var typeName: String {
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/Expectations.swift:109:26: error: cannot find 'DispatchSemaphore' in scope
107 | public let pathValidation: PathValidation
108 | public var returning: Result<URL, DecreeError>
109 | public var waiting = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
110 |
111 | public static var typeName: String {
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/Expectations.swift:131:26: error: cannot find 'DispatchSemaphore' in scope
129 | public let pathValidation: PathValidation
130 | public var returning: Result<E.Output, DecreeError>
131 | public var waiting = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
132 |
133 | public static var typeName: String {
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/Expectations.swift:153:26: error: cannot find 'DispatchSemaphore' in scope
151 | public let pathValidation: PathValidation
152 | public var returning: Result<URL, DecreeError>
153 | public var waiting = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
154 |
155 | public static var typeName: String {
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:25:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | /// - An optional URLResponse (will usually be an HTTPURLResponse)
24 | /// - An optional error
25 | func handle(dataRequest: URLRequest) -> (Data?, URLResponse?, Error?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 | /// Handle download requests
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/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:38:56: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | /// - An optional URLResponse (will usually be an HTTPURLResponse)
37 | /// - An optional error
38 | func handle(downloadRequest: URLRequest) -> (URL?, URLResponse?, Error?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | }
40 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:43:44: error: cannot find type 'URLRequest' in scope
41 | extension WebService {
42 | /// Closure to manually handle web service request
43 | public typealias AllRequestsHandler = (URLRequest) -> (Data?, URLResponse?, Error?)
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | /// Set a handler for handling all requests made to all instances of this web service
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:56:58: error: @escaping attribute only applies to function types
54 | /// These are the 3 things that are usually returned from the underlying URLSession data task.
55 | @available(*, deprecated, message: "This does not support handling download requests. Use the protocol version of this call instead.")
56 | public static func startHandlingAllRequests(handler: @escaping AllRequestsHandler) {
| `- error: @escaping attribute only applies to function types
57 | self.stopHandlingAllRequests()
58 |
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:87:19: error: @escaping attribute only applies to function types
85 | let handler: WebService.AllRequestsHandler
86 |
87 | init(handler: @escaping WebService.AllRequestsHandler) {
| `- error: @escaping attribute only applies to function types
88 | self.handler = handler
89 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:91:30: error: cannot find type 'URLRequest' in scope
89 | }
90 |
91 | func handle(dataRequest: URLRequest) -> (Data?, URLResponse?, Error?) {
| `- error: cannot find type 'URLRequest' in scope
92 | return self.handler(dataRequest)
93 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:91:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | }
90 |
91 | func handle(dataRequest: URLRequest) -> (Data?, URLResponse?, Error?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 | return self.handler(dataRequest)
93 | }
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/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:95:34: error: cannot find type 'URLRequest' in scope
93 | }
94 |
95 | func handle(downloadRequest: URLRequest) -> (URL?, URLResponse?, Error?) {
| `- error: cannot find type 'URLRequest' in scope
96 | return (nil, nil, DecreeError(.custom(
97 | "Using deprecated all requests handler that does not support download requests",
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:95:56: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | }
94 |
95 | func handle(downloadRequest: URLRequest) -> (URL?, URLResponse?, Error?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
96 | return (nil, nil, DecreeError(.custom(
97 | "Using deprecated all requests handler that does not support download requests",
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/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Mocking/Expectations.swift:28:48: error: cannot find type 'DispatchTimeoutResult' in scope
26 | ///
27 | /// Only use for asynchronous requests
28 | public func wait(timeout: TimeInterval) -> DispatchTimeoutResult {
| `- error: cannot find type 'DispatchTimeoutResult' in scope
29 | return self.waiting.wait(timeout: .now() + timeout)
30 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/Expectations.swift:43:26: error: cannot find 'DispatchSemaphore' in scope
41 | public let pathValidation: PathValidation
42 | public var returning: EmptyResult
43 | public var waiting = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
44 |
45 | public static var typeName: String {
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/Expectations.swift:65:26: error: cannot find 'DispatchSemaphore' in scope
63 | public let pathValidation: PathValidation
64 | public var returning: EmptyResult
65 | public var waiting = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
66 |
67 | public static var typeName: String {
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/Expectations.swift:87:26: error: cannot find 'DispatchSemaphore' in scope
85 | public let pathValidation: PathValidation
86 | public var returning: Result<E.Output, DecreeError>
87 | public var waiting = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
88 |
89 | public static var typeName: String {
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/Expectations.swift:109:26: error: cannot find 'DispatchSemaphore' in scope
107 | public let pathValidation: PathValidation
108 | public var returning: Result<URL, DecreeError>
109 | public var waiting = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
110 |
111 | public static var typeName: String {
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/Expectations.swift:131:26: error: cannot find 'DispatchSemaphore' in scope
129 | public let pathValidation: PathValidation
130 | public var returning: Result<E.Output, DecreeError>
131 | public var waiting = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
132 |
133 | public static var typeName: String {
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/Expectations.swift:153:26: error: cannot find 'DispatchSemaphore' in scope
151 | public let pathValidation: PathValidation
152 | public var returning: Result<URL, DecreeError>
153 | public var waiting = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
154 |
155 | public static var typeName: String {
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:25:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | /// - An optional URLResponse (will usually be an HTTPURLResponse)
24 | /// - An optional error
25 | func handle(dataRequest: URLRequest) -> (Data?, URLResponse?, Error?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 | /// Handle download requests
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/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:38:56: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | /// - An optional URLResponse (will usually be an HTTPURLResponse)
37 | /// - An optional error
38 | func handle(downloadRequest: URLRequest) -> (URL?, URLResponse?, Error?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | }
40 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:43:44: error: cannot find type 'URLRequest' in scope
41 | extension WebService {
42 | /// Closure to manually handle web service request
43 | public typealias AllRequestsHandler = (URLRequest) -> (Data?, URLResponse?, Error?)
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | /// Set a handler for handling all requests made to all instances of this web service
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:56:58: error: @escaping attribute only applies to function types
54 | /// These are the 3 things that are usually returned from the underlying URLSession data task.
55 | @available(*, deprecated, message: "This does not support handling download requests. Use the protocol version of this call instead.")
56 | public static func startHandlingAllRequests(handler: @escaping AllRequestsHandler) {
| `- error: @escaping attribute only applies to function types
57 | self.stopHandlingAllRequests()
58 |
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:87:19: error: @escaping attribute only applies to function types
85 | let handler: WebService.AllRequestsHandler
86 |
87 | init(handler: @escaping WebService.AllRequestsHandler) {
| `- error: @escaping attribute only applies to function types
88 | self.handler = handler
89 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:91:30: error: cannot find type 'URLRequest' in scope
89 | }
90 |
91 | func handle(dataRequest: URLRequest) -> (Data?, URLResponse?, Error?) {
| `- error: cannot find type 'URLRequest' in scope
92 | return self.handler(dataRequest)
93 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:91:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | }
90 |
91 | func handle(dataRequest: URLRequest) -> (Data?, URLResponse?, Error?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 | return self.handler(dataRequest)
93 | }
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/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:95:34: error: cannot find type 'URLRequest' in scope
93 | }
94 |
95 | func handle(downloadRequest: URLRequest) -> (URL?, URLResponse?, Error?) {
| `- error: cannot find type 'URLRequest' in scope
96 | return (nil, nil, DecreeError(.custom(
97 | "Using deprecated all requests handler that does not support download requests",
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:95:56: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | }
94 |
95 | func handle(downloadRequest: URLRequest) -> (URL?, URLResponse?, Error?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
96 | return (nil, nil, DecreeError(.custom(
97 | "Using deprecated all requests handler that does not support download requests",
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/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Mocking/Expectations.swift:28:48: error: cannot find type 'DispatchTimeoutResult' in scope
26 | ///
27 | /// Only use for asynchronous requests
28 | public func wait(timeout: TimeInterval) -> DispatchTimeoutResult {
| `- error: cannot find type 'DispatchTimeoutResult' in scope
29 | return self.waiting.wait(timeout: .now() + timeout)
30 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/Expectations.swift:43:26: error: cannot find 'DispatchSemaphore' in scope
41 | public let pathValidation: PathValidation
42 | public var returning: EmptyResult
43 | public var waiting = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
44 |
45 | public static var typeName: String {
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/Expectations.swift:65:26: error: cannot find 'DispatchSemaphore' in scope
63 | public let pathValidation: PathValidation
64 | public var returning: EmptyResult
65 | public var waiting = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
66 |
67 | public static var typeName: String {
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/Expectations.swift:87:26: error: cannot find 'DispatchSemaphore' in scope
85 | public let pathValidation: PathValidation
86 | public var returning: Result<E.Output, DecreeError>
87 | public var waiting = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
88 |
89 | public static var typeName: String {
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/Expectations.swift:109:26: error: cannot find 'DispatchSemaphore' in scope
107 | public let pathValidation: PathValidation
108 | public var returning: Result<URL, DecreeError>
109 | public var waiting = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
110 |
111 | public static var typeName: String {
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/Expectations.swift:131:26: error: cannot find 'DispatchSemaphore' in scope
129 | public let pathValidation: PathValidation
130 | public var returning: Result<E.Output, DecreeError>
131 | public var waiting = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
132 |
133 | public static var typeName: String {
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/Expectations.swift:153:26: error: cannot find 'DispatchSemaphore' in scope
151 | public let pathValidation: PathValidation
152 | public var returning: Result<URL, DecreeError>
153 | public var waiting = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
154 |
155 | public static var typeName: String {
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:25:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | /// - An optional URLResponse (will usually be an HTTPURLResponse)
24 | /// - An optional error
25 | func handle(dataRequest: URLRequest) -> (Data?, URLResponse?, Error?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 | /// Handle download requests
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/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:38:56: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | /// - An optional URLResponse (will usually be an HTTPURLResponse)
37 | /// - An optional error
38 | func handle(downloadRequest: URLRequest) -> (URL?, URLResponse?, Error?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | }
40 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:43:44: error: cannot find type 'URLRequest' in scope
41 | extension WebService {
42 | /// Closure to manually handle web service request
43 | public typealias AllRequestsHandler = (URLRequest) -> (Data?, URLResponse?, Error?)
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | /// Set a handler for handling all requests made to all instances of this web service
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:56:58: error: @escaping attribute only applies to function types
54 | /// These are the 3 things that are usually returned from the underlying URLSession data task.
55 | @available(*, deprecated, message: "This does not support handling download requests. Use the protocol version of this call instead.")
56 | public static func startHandlingAllRequests(handler: @escaping AllRequestsHandler) {
| `- error: @escaping attribute only applies to function types
57 | self.stopHandlingAllRequests()
58 |
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:87:19: error: @escaping attribute only applies to function types
85 | let handler: WebService.AllRequestsHandler
86 |
87 | init(handler: @escaping WebService.AllRequestsHandler) {
| `- error: @escaping attribute only applies to function types
88 | self.handler = handler
89 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:91:30: error: cannot find type 'URLRequest' in scope
89 | }
90 |
91 | func handle(dataRequest: URLRequest) -> (Data?, URLResponse?, Error?) {
| `- error: cannot find type 'URLRequest' in scope
92 | return self.handler(dataRequest)
93 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:91:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | }
90 |
91 | func handle(dataRequest: URLRequest) -> (Data?, URLResponse?, Error?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 | return self.handler(dataRequest)
93 | }
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/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:95:34: error: cannot find type 'URLRequest' in scope
93 | }
94 |
95 | func handle(downloadRequest: URLRequest) -> (URL?, URLResponse?, Error?) {
| `- error: cannot find type 'URLRequest' in scope
96 | return (nil, nil, DecreeError(.custom(
97 | "Using deprecated all requests handler that does not support download requests",
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:95:56: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | }
94 |
95 | func handle(downloadRequest: URLRequest) -> (URL?, URLResponse?, Error?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
96 | return (nil, nil, DecreeError(.custom(
97 | "Using deprecated all requests handler that does not support download requests",
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/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Mocking/Expectations.swift:28:48: error: cannot find type 'DispatchTimeoutResult' in scope
26 | ///
27 | /// Only use for asynchronous requests
28 | public func wait(timeout: TimeInterval) -> DispatchTimeoutResult {
| `- error: cannot find type 'DispatchTimeoutResult' in scope
29 | return self.waiting.wait(timeout: .now() + timeout)
30 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/Expectations.swift:43:26: error: cannot find 'DispatchSemaphore' in scope
41 | public let pathValidation: PathValidation
42 | public var returning: EmptyResult
43 | public var waiting = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
44 |
45 | public static var typeName: String {
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/Expectations.swift:65:26: error: cannot find 'DispatchSemaphore' in scope
63 | public let pathValidation: PathValidation
64 | public var returning: EmptyResult
65 | public var waiting = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
66 |
67 | public static var typeName: String {
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/Expectations.swift:87:26: error: cannot find 'DispatchSemaphore' in scope
85 | public let pathValidation: PathValidation
86 | public var returning: Result<E.Output, DecreeError>
87 | public var waiting = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
88 |
89 | public static var typeName: String {
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/Expectations.swift:109:26: error: cannot find 'DispatchSemaphore' in scope
107 | public let pathValidation: PathValidation
108 | public var returning: Result<URL, DecreeError>
109 | public var waiting = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
110 |
111 | public static var typeName: String {
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/Expectations.swift:131:26: error: cannot find 'DispatchSemaphore' in scope
129 | public let pathValidation: PathValidation
130 | public var returning: Result<E.Output, DecreeError>
131 | public var waiting = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
132 |
133 | public static var typeName: String {
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/Expectations.swift:153:26: error: cannot find 'DispatchSemaphore' in scope
151 | public let pathValidation: PathValidation
152 | public var returning: Result<URL, DecreeError>
153 | public var waiting = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
154 |
155 | public static var typeName: String {
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:25:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | /// - An optional URLResponse (will usually be an HTTPURLResponse)
24 | /// - An optional error
25 | func handle(dataRequest: URLRequest) -> (Data?, URLResponse?, Error?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 | /// Handle download requests
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/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:38:56: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | /// - An optional URLResponse (will usually be an HTTPURLResponse)
37 | /// - An optional error
38 | func handle(downloadRequest: URLRequest) -> (URL?, URLResponse?, Error?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | }
40 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:43:44: error: cannot find type 'URLRequest' in scope
41 | extension WebService {
42 | /// Closure to manually handle web service request
43 | public typealias AllRequestsHandler = (URLRequest) -> (Data?, URLResponse?, Error?)
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | /// Set a handler for handling all requests made to all instances of this web service
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:56:58: error: @escaping attribute only applies to function types
54 | /// These are the 3 things that are usually returned from the underlying URLSession data task.
55 | @available(*, deprecated, message: "This does not support handling download requests. Use the protocol version of this call instead.")
56 | public static func startHandlingAllRequests(handler: @escaping AllRequestsHandler) {
| `- error: @escaping attribute only applies to function types
57 | self.stopHandlingAllRequests()
58 |
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:87:19: error: @escaping attribute only applies to function types
85 | let handler: WebService.AllRequestsHandler
86 |
87 | init(handler: @escaping WebService.AllRequestsHandler) {
| `- error: @escaping attribute only applies to function types
88 | self.handler = handler
89 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:91:30: error: cannot find type 'URLRequest' in scope
89 | }
90 |
91 | func handle(dataRequest: URLRequest) -> (Data?, URLResponse?, Error?) {
| `- error: cannot find type 'URLRequest' in scope
92 | return self.handler(dataRequest)
93 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:91:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | }
90 |
91 | func handle(dataRequest: URLRequest) -> (Data?, URLResponse?, Error?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 | return self.handler(dataRequest)
93 | }
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/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:95:34: error: cannot find type 'URLRequest' in scope
93 | }
94 |
95 | func handle(downloadRequest: URLRequest) -> (URL?, URLResponse?, Error?) {
| `- error: cannot find type 'URLRequest' in scope
96 | return (nil, nil, DecreeError(.custom(
97 | "Using deprecated all requests handler that does not support download requests",
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:95:56: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | }
94 |
95 | func handle(downloadRequest: URLRequest) -> (URL?, URLResponse?, Error?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
96 | return (nil, nil, DecreeError(.custom(
97 | "Using deprecated all requests handler that does not support download requests",
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/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Mocking/Expectations.swift:28:48: error: cannot find type 'DispatchTimeoutResult' in scope
26 | ///
27 | /// Only use for asynchronous requests
28 | public func wait(timeout: TimeInterval) -> DispatchTimeoutResult {
| `- error: cannot find type 'DispatchTimeoutResult' in scope
29 | return self.waiting.wait(timeout: .now() + timeout)
30 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/Expectations.swift:43:26: error: cannot find 'DispatchSemaphore' in scope
41 | public let pathValidation: PathValidation
42 | public var returning: EmptyResult
43 | public var waiting = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
44 |
45 | public static var typeName: String {
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/Expectations.swift:65:26: error: cannot find 'DispatchSemaphore' in scope
63 | public let pathValidation: PathValidation
64 | public var returning: EmptyResult
65 | public var waiting = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
66 |
67 | public static var typeName: String {
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/Expectations.swift:87:26: error: cannot find 'DispatchSemaphore' in scope
85 | public let pathValidation: PathValidation
86 | public var returning: Result<E.Output, DecreeError>
87 | public var waiting = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
88 |
89 | public static var typeName: String {
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/Expectations.swift:109:26: error: cannot find 'DispatchSemaphore' in scope
107 | public let pathValidation: PathValidation
108 | public var returning: Result<URL, DecreeError>
109 | public var waiting = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
110 |
111 | public static var typeName: String {
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/Expectations.swift:131:26: error: cannot find 'DispatchSemaphore' in scope
129 | public let pathValidation: PathValidation
130 | public var returning: Result<E.Output, DecreeError>
131 | public var waiting = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
132 |
133 | public static var typeName: String {
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/Expectations.swift:153:26: error: cannot find 'DispatchSemaphore' in scope
151 | public let pathValidation: PathValidation
152 | public var returning: Result<URL, DecreeError>
153 | public var waiting = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
154 |
155 | public static var typeName: String {
/host/spi-builder-workspace/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:25:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | /// - An optional URLResponse (will usually be an HTTPURLResponse)
24 | /// - An optional error
25 | func handle(dataRequest: URLRequest) -> (Data?, URLResponse?, Error?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 | /// Handle download requests
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/.build/checkouts/Decree/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/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:38:56: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | /// - An optional URLResponse (will usually be an HTTPURLResponse)
37 | /// - An optional error
38 | func handle(downloadRequest: URLRequest) -> (URL?, URLResponse?, Error?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | }
40 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:43:44: error: cannot find type 'URLRequest' in scope
41 | extension WebService {
42 | /// Closure to manually handle web service request
43 | public typealias AllRequestsHandler = (URLRequest) -> (Data?, URLResponse?, Error?)
| `- error: cannot find type 'URLRequest' in scope
44 |
45 | /// Set a handler for handling all requests made to all instances of this web service
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:56:58: error: @escaping attribute only applies to function types
54 | /// These are the 3 things that are usually returned from the underlying URLSession data task.
55 | @available(*, deprecated, message: "This does not support handling download requests. Use the protocol version of this call instead.")
56 | public static func startHandlingAllRequests(handler: @escaping AllRequestsHandler) {
| `- error: @escaping attribute only applies to function types
57 | self.stopHandlingAllRequests()
58 |
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:87:19: error: @escaping attribute only applies to function types
85 | let handler: WebService.AllRequestsHandler
86 |
87 | init(handler: @escaping WebService.AllRequestsHandler) {
| `- error: @escaping attribute only applies to function types
88 | self.handler = handler
89 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:91:30: error: cannot find type 'URLRequest' in scope
89 | }
90 |
91 | func handle(dataRequest: URLRequest) -> (Data?, URLResponse?, Error?) {
| `- error: cannot find type 'URLRequest' in scope
92 | return self.handler(dataRequest)
93 | }
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:91:53: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 | }
90 |
91 | func handle(dataRequest: URLRequest) -> (Data?, URLResponse?, Error?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 | return self.handler(dataRequest)
93 | }
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/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:95:34: error: cannot find type 'URLRequest' in scope
93 | }
94 |
95 | func handle(downloadRequest: URLRequest) -> (URL?, URLResponse?, Error?) {
| `- error: cannot find type 'URLRequest' in scope
96 | return (nil, nil, DecreeError(.custom(
97 | "Using deprecated all requests handler that does not support download requests",
/host/spi-builder-workspace/.build/checkouts/Decree/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:95:56: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | }
94 |
95 | func handle(downloadRequest: URLRequest) -> (URL?, URLResponse?, Error?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
96 | return (nil, nil, DecreeError(.custom(
97 | "Using deprecated all requests handler that does not support download requests",
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
[166/207] Compiling CryptoSwift XChaCha20+Foundation.swift
[167/207] Compiling CryptoSwift Generics.swift
[168/207] Compiling CryptoSwift HKDF.swift
[169/207] Compiling CryptoSwift HMAC.swift
[170/207] Compiling CryptoSwift ISO10126Padding.swift
[171/207] Compiling CryptoSwift ISO78164Padding.swift
[172/207] Compiling CryptoSwift Int+Extension.swift
[173/207] Compiling CryptoSwift MD5.swift
[174/207] Compiling CryptoSwift NoPadding.swift
[175/207] Compiling CryptoSwift Operators.swift
[176/207] Compiling CryptoSwift DER.swift
[177/207] Compiling CryptoSwift PBKDF1.swift
[178/207] Compiling CryptoSwift PBKDF2.swift
[179/207] Compiling CryptoSwift PKCS1v15.swift
[180/207] Compiling CryptoSwift CompactMap.swift
[181/207] Compiling CryptoSwift Cryptor.swift
[182/207] Compiling CryptoSwift Cryptors.swift
[183/207] Compiling CryptoSwift Digest.swift
[184/207] Compiling CryptoSwift DigestType.swift
[185/207] Compiling CryptoSwift AES+Foundation.swift
[186/207] Compiling CryptoSwift Array+Foundation.swift
[187/207] Compiling CryptoSwift Blowfish+Foundation.swift
[188/207] Compiling CryptoSwift ChaCha20+Foundation.swift
[189/207] Compiling CryptoSwift Data+Extension.swift
[190/207] Compiling CryptoSwift HMAC+Foundation.swift
[191/207] Compiling CryptoSwift Rabbit+Foundation.swift
[192/207] Compiling CryptoSwift String+FoundationExtension.swift
[193/207] Compiling CryptoSwift Utils+Foundation.swift
BUILD FAILURE 6.1 wasm