Build Information
Failed to build Decree, reference 4.4.0 (dc5638
), with Swift 6.1 for Wasm on 27 May 2025 20:14:33 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
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/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/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/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/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/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/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/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/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:18:76: error: cannot find type 'DispatchQueue' in scope
16 | /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
17 | /// - Parameter onComplete: Callback when the request is complete
18 | func _makeRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ result: EmptyResult) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
19 | if let mock = service.sessionOverride as? WebServiceMock<Service> {
20 | mock.handle(for: self, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/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/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/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/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/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:46:95: error: cannot find type 'DispatchQueue' in scope
44 | /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
45 | /// - Parameter onComplete: Callback when the request is complete
46 | func _makeRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ result: EmptyResult) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
47 | if let mock = service.sessionOverride as? WebServiceMock<Service> {
48 | mock.handle(for: self, input: input, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/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/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/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/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/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:81:76: error: cannot find type 'DispatchQueue' in scope
79 | /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
80 | /// - Parameter onComplete: Callback when the request is complete that includes output if successful
81 | func _makeRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ result: Result<Output, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
82 | if let mock = service.sessionOverride as? WebServiceMock<Service> {
83 | mock.handle(for: self, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/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/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/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/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/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:104:84: error: cannot find type 'DispatchQueue' in scope
102 |
103 | extension OutEndpoint {
104 | func _makeDownloadRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ error: Result<URL, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
105 | if let mock = service.sessionOverride as? WebServiceMock<Service> {
106 | mock.handleDownload(for: self, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/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/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:124:95: error: cannot find type 'DispatchQueue' in scope
122 | /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
123 | /// - Parameter onComplete: Callback when the request is complete that includes output if successful
124 | func _makeRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ error: Result<Output, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
125 | if let mock = service.sessionOverride as? WebServiceMock<Service> {
126 | mock.handle(for: self, input: input, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/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/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/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/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/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:155:103: error: cannot find type 'DispatchQueue' in scope
153 |
154 | extension InOutEndpoint where Input: Encodable {
155 | func _makeDownloadRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ error: Result<URL, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
156 | if let mock = service.sessionOverride as? WebServiceMock<Service> {
157 | mock.handleDownload(for: self, input: input, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/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 |
[68/92] Compiling Decree Endpoint.swift
/host/spi-builder-workspace/Sources/Decree/Basic Types/Session.swift:22:33: error: cannot find type 'URLRequest' in scope
20 | // init(configuration: URLSessionConfiguration, delegate: URLSessionDelegate?, delegateQueue queue: OperationQueue?)
21 |
22 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
| `- error: cannot find type 'URLRequest' in scope
23 | func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
24 | }
/host/spi-builder-workspace/Sources/Decree/Basic Types/Session.swift: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/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/Sources/Decree/Basic Types/Session.swift:23:37: error: cannot find type 'URLRequest' in scope
21 |
22 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
23 | func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
| `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/Decree/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/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/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/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/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/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/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/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/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/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:18:76: error: cannot find type 'DispatchQueue' in scope
16 | /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
17 | /// - Parameter onComplete: Callback when the request is complete
18 | func _makeRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ result: EmptyResult) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
19 | if let mock = service.sessionOverride as? WebServiceMock<Service> {
20 | mock.handle(for: self, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/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/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/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/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/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:46:95: error: cannot find type 'DispatchQueue' in scope
44 | /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
45 | /// - Parameter onComplete: Callback when the request is complete
46 | func _makeRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ result: EmptyResult) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
47 | if let mock = service.sessionOverride as? WebServiceMock<Service> {
48 | mock.handle(for: self, input: input, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/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/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/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/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/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:81:76: error: cannot find type 'DispatchQueue' in scope
79 | /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
80 | /// - Parameter onComplete: Callback when the request is complete that includes output if successful
81 | func _makeRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ result: Result<Output, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
82 | if let mock = service.sessionOverride as? WebServiceMock<Service> {
83 | mock.handle(for: self, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/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/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/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/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/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:104:84: error: cannot find type 'DispatchQueue' in scope
102 |
103 | extension OutEndpoint {
104 | func _makeDownloadRequest(to service: Service = Service.shared, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ error: Result<URL, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
105 | if let mock = service.sessionOverride as? WebServiceMock<Service> {
106 | mock.handleDownload(for: self, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/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/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:124:95: error: cannot find type 'DispatchQueue' in scope
122 | /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on an unpredictable queue. Defaults to the main queue.
123 | /// - Parameter onComplete: Callback when the request is complete that includes output if successful
124 | func _makeRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ error: Result<Output, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
125 | if let mock = service.sessionOverride as? WebServiceMock<Service> {
126 | mock.handle(for: self, input: input, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/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/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/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/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/Sources/Decree/Private/Endpoint+PrivateMakeRequest.swift:155:103: error: cannot find type 'DispatchQueue' in scope
153 |
154 | extension InOutEndpoint where Input: Encodable {
155 | func _makeDownloadRequest(to service: Service = Service.shared, with input: Input, callbackQueue: DispatchQueue? = DispatchQueue.main, onProgress: ((Double) -> ())? = nil, onComplete: @escaping (_ error: Result<URL, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
156 | if let mock = service.sessionOverride as? WebServiceMock<Service> {
157 | mock.handleDownload(for: self, input: input, callbackQueue: callbackQueue, onComplete: onComplete)
/host/spi-builder-workspace/Sources/Decree/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 |
[69/92] Compiling Decree URLResponse+Logging.swift
/host/spi-builder-workspace/Sources/Decree/Private/URLResponse+Logging.swift:13:1: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
11 | #endif
12 |
13 | extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
14 | var logDescription: String {
15 | var log = ""
/host/spi-builder-workspace/Sources/Decree/Private/URLResponse+Logging.swift:29:9: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
27 | }
28 |
29 | private extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
30 | var headers: String {
31 | return self.allHeaderFields.map({ key, value in
/host/spi-builder-workspace/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:25:30: error: cannot find type 'URLRequest' in scope
23 | /// - An optional URLResponse (will usually be an HTTPURLResponse)
24 | /// - An optional error
25 | func handle(dataRequest: URLRequest) -> (Data?, URLResponse?, Error?)
| `- error: cannot find type 'URLRequest' in scope
26 |
27 | /// Handle download requests
/host/spi-builder-workspace/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:38:34: error: cannot find type 'URLRequest' in scope
36 | /// - An optional URLResponse (will usually be an HTTPURLResponse)
37 | /// - An optional error
38 | func handle(downloadRequest: URLRequest) -> (URL?, URLResponse?, Error?)
| `- error: cannot find type 'URLRequest' in scope
39 | }
40 |
/host/spi-builder-workspace/Sources/Decree/Private/WebService+MakeRequest.swift:26:87: error: cannot find type 'DispatchQueue' in scope
24 | /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on the default queue from URLSession
25 | /// - Parameter onComplete: callback for when the request completes with the data returned
26 | func makeRequest<E: Endpoint>(to endpoint: E, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<Data?, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
27 | let request = DecreeRequest(for: endpoint, of: self, input: input, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: { result in
28 | switch result {
/host/spi-builder-workspace/Sources/Decree/Private/WebService+MakeRequest.swift:48:95: error: cannot find type 'DispatchQueue' in scope
46 | }
47 |
48 | func makeDownloadRequest<E: Endpoint>(to endpoint: E, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<URL, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
49 | let request = DecreeRequest(for: endpoint, of: self, input: input, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: { result in
50 | switch result {
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:44:78: error: cannot find type 'DispatchQueue' in scope
42 | var progressObserver: AnyObject?
43 |
44 | init(for endpoint: E, of service: S, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<Output?, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
45 | self.service = service
46 | self.endpoint = endpoint
/host/spi-builder-workspace/Sources/Decree/Private/WebService+MakeRequest.swift:27:23: error: generic parameter 'E' could not be inferred
25 | /// - Parameter onComplete: callback for when the request completes with the data returned
26 | func makeRequest<E: Endpoint>(to endpoint: E, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<Data?, DecreeError>) -> ()) {
27 | let request = DecreeRequest(for: endpoint, of: self, input: input, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: { result in
| `- error: generic parameter 'E' could not be inferred
28 | switch result {
29 | case .failure(let error):
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:13:21: note: 'E' declared as parameter to type 'DecreeRequest'
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' declared as parameter to type 'DecreeRequest'
14 | enum Output {
15 | case data(Data)
/host/spi-builder-workspace/Sources/Decree/Private/WebService+MakeRequest.swift:27:23: error: generic parameter 'S' could not be inferred
25 | /// - Parameter onComplete: callback for when the request completes with the data returned
26 | func makeRequest<E: Endpoint>(to endpoint: E, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<Data?, DecreeError>) -> ()) {
27 | let request = DecreeRequest(for: endpoint, of: self, input: input, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: { result in
| |- error: generic parameter 'S' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
28 | switch result {
29 | case .failure(let error):
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:13:34: note: 'S' declared as parameter to type 'DecreeRequest'
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'S' declared as parameter to type 'DecreeRequest'
14 | enum Output {
15 | case data(Data)
/host/spi-builder-workspace/Sources/Decree/Private/WebService+MakeRequest.swift:49:23: error: generic parameter 'E' could not be inferred
47 |
48 | func makeDownloadRequest<E: Endpoint>(to endpoint: E, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<URL, DecreeError>) -> ()) {
49 | let request = DecreeRequest(for: endpoint, of: self, input: input, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: { result in
| `- error: generic parameter 'E' could not be inferred
50 | switch result {
51 | case .failure(let error):
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:13:21: note: 'E' declared as parameter to type 'DecreeRequest'
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' declared as parameter to type 'DecreeRequest'
14 | enum Output {
15 | case data(Data)
/host/spi-builder-workspace/Sources/Decree/Private/WebService+MakeRequest.swift:49:23: error: generic parameter 'S' could not be inferred
47 |
48 | func makeDownloadRequest<E: Endpoint>(to endpoint: E, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<URL, DecreeError>) -> ()) {
49 | let request = DecreeRequest(for: endpoint, of: self, input: input, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: { result in
| |- error: generic parameter 'S' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
50 | switch result {
51 | case .failure(let error):
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:13:34: note: 'S' declared as parameter to type 'DecreeRequest'
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'S' declared as parameter to type 'DecreeRequest'
14 | enum Output {
15 | case data(Data)
/host/spi-builder-workspace/Sources/Decree/WebService.swift:71:50: error: cannot find type 'URLRequest' in scope
69 |
70 | /// **OPTIONAL** Chance to configure each URLRequest
71 | func configure<E: Endpoint>(_ request: inout URLRequest, for endpoint: E) throws
| `- error: cannot find type 'URLRequest' in scope
72 |
73 | /// **OPTIONAL** Chance to configure each input encoder
/host/spi-builder-workspace/Sources/Decree/WebService.swift:107:57: error: cannot find type 'URLRequest' in scope
105 |
106 | public var sessionOverride: Session? { return nil }
107 | public func configure<E: Endpoint>(_ request: inout URLRequest, for endpoint: E) throws {}
| `- error: cannot find type 'URLRequest' in scope
108 | public func configure<E: Endpoint>(_ encoder: inout JSONEncoder, for endpoint: E) throws {}
109 | public func configure<E: Endpoint>(_ decoder: inout JSONDecoder, for endpoint: E) throws {}
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:11:67: error: cannot find type 'DispatchQueue' in scope
9 |
10 | extension WebServiceMock {
11 | func handle<E: EmptyEndpoint>(for endpoint: E, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: EmptyResult) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
12 | do {
13 | let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:33:80: error: cannot find type 'DispatchQueue' in scope
31 | }
32 |
33 | func handle<E: InEndpoint>(for endpoint: E, input: E.Input, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: EmptyResult) -> ()) where E.Input: Encodable {
| `- error: cannot find type 'DispatchQueue' in scope
34 | do {
35 | let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:55:65: error: cannot find type 'DispatchQueue' in scope
53 | }
54 |
55 | func handle<E: OutEndpoint>(for endpoint: E, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: Result<E.Output, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
56 | do {
57 | let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:77:73: error: cannot find type 'DispatchQueue' in scope
75 | }
76 |
77 | func handleDownload<E: OutEndpoint>(for endpoint: E, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: Result<URL, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
78 | do {
79 | let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:99:83: error: cannot find type 'DispatchQueue' in scope
97 | }
98 |
99 | func handle<E: InOutEndpoint>(for endpoint: E, input: E.Input, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: Result<E.Output, DecreeError>) -> ()) where E.Input: Encodable {
| `- error: cannot find type 'DispatchQueue' in scope
100 | do {
101 | let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:121:91: error: cannot find type 'DispatchQueue' in scope
119 | }
120 |
121 | func handleDownload<E: InOutEndpoint>(for endpoint: E, input: E.Input, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: Result<URL, DecreeError>) -> ()) where E.Input: Encodable {
| `- error: cannot find type 'DispatchQueue' in scope
122 | do {
123 | let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:18:17: error: cannot find 'DispatchQueue' in scope
16 | try expectation.validate(path: endpoint.path, for: endpoint)
17 | try expectation.validate(endpoint)
18 | DispatchQueue(label: "background").async {
| `- error: cannot find 'DispatchQueue' in scope
19 | callbackQueue.async {
20 | onComplete(expectation.returning)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:40:17: error: cannot find 'DispatchQueue' in scope
38 | try expectation.validate(path: endpoint.path, for: endpoint)
39 | try expectation.validate(endpoint, input: input)
40 | DispatchQueue(label: "background").async {
| `- error: cannot find 'DispatchQueue' in scope
41 | callbackQueue.async {
42 | onComplete(expectation.returning)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:62:17: error: cannot find 'DispatchQueue' in scope
60 | try expectation.validate(path: endpoint.path, for: endpoint)
61 | try expectation.validate(endpoint)
62 | DispatchQueue(label: "background").async {
| `- error: cannot find 'DispatchQueue' in scope
63 | callbackQueue.async {
64 | onComplete(expectation.returning)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:84:17: error: cannot find 'DispatchQueue' in scope
82 | try expectation.validate(path: endpoint.path, for: endpoint)
83 | try expectation.validate(endpoint)
84 | DispatchQueue(label: "background").async {
| `- error: cannot find 'DispatchQueue' in scope
85 | callbackQueue.async {
86 | onComplete(expectation.returning)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:106:17: error: cannot find 'DispatchQueue' in scope
104 | try expectation.validate(path: endpoint.path, for: endpoint)
105 | try expectation.validate(endpoint, input: input)
106 | DispatchQueue(label: "background").async {
| `- error: cannot find 'DispatchQueue' in scope
107 | callbackQueue.async {
108 | onComplete(expectation.returning)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:128:17: error: cannot find 'DispatchQueue' in scope
126 | try expectation.validate(path: endpoint.path, for: endpoint)
127 | try expectation.validate(endpoint, input: input)
128 | DispatchQueue(label: "background").async {
| `- error: cannot find 'DispatchQueue' in scope
129 | callbackQueue.async {
130 | onComplete(expectation.returning)
/host/spi-builder-workspace/Sources/Decree/Basic Types/Session.swift:22:33: error: cannot find type 'URLRequest' in scope
20 | // init(configuration: URLSessionConfiguration, delegate: URLSessionDelegate?, delegateQueue queue: OperationQueue?)
21 |
22 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
| `- error: cannot find type 'URLRequest' in scope
23 | func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
24 | }
/host/spi-builder-workspace/Sources/Decree/Basic Types/Session.swift:23:37: error: cannot find type 'URLRequest' in scope
21 |
22 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
23 | func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
| `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/Decree/WebService.swift:91:44: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 |
90 | /// **OPTIONAL** Chance to validate the URLResponse
91 | func validate<E: Endpoint>(_ response: URLResponse, for endpoint: E) throws
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 |
93 | /// **OPTIONAL** Chance to validate the BasicResponse
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Decree/WebService.swift:99:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 |
98 | /// *OPTIONAL* Chance to automatically handle a response error
99 | func handle<E: Endpoint>(_ error: DecreeError, response: URLResponse, from endpoint: E) -> ErrorHandling
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 | }
101 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Decree/WebService.swift:113:51: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 | public func configure<E: Endpoint>(_ decoder: inout XMLDecoder, for endpoint: E) throws {}
112 | public func configure<E: Endpoint>(_ encoder: inout KeyValueEncoder, for endpoint: E) throws {}
113 | public func validate<E: Endpoint>(_ response: URLResponse, for endpoint: E) throws {}
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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) }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Decree/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
[70/92] Compiling Decree WebService+MakeRequest.swift
/host/spi-builder-workspace/Sources/Decree/Private/URLResponse+Logging.swift:13:1: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
11 | #endif
12 |
13 | extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
14 | var logDescription: String {
15 | var log = ""
/host/spi-builder-workspace/Sources/Decree/Private/URLResponse+Logging.swift:29:9: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
27 | }
28 |
29 | private extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
30 | var headers: String {
31 | return self.allHeaderFields.map({ key, value in
/host/spi-builder-workspace/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:25:30: error: cannot find type 'URLRequest' in scope
23 | /// - An optional URLResponse (will usually be an HTTPURLResponse)
24 | /// - An optional error
25 | func handle(dataRequest: URLRequest) -> (Data?, URLResponse?, Error?)
| `- error: cannot find type 'URLRequest' in scope
26 |
27 | /// Handle download requests
/host/spi-builder-workspace/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:38:34: error: cannot find type 'URLRequest' in scope
36 | /// - An optional URLResponse (will usually be an HTTPURLResponse)
37 | /// - An optional error
38 | func handle(downloadRequest: URLRequest) -> (URL?, URLResponse?, Error?)
| `- error: cannot find type 'URLRequest' in scope
39 | }
40 |
/host/spi-builder-workspace/Sources/Decree/Private/WebService+MakeRequest.swift:26:87: error: cannot find type 'DispatchQueue' in scope
24 | /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on the default queue from URLSession
25 | /// - Parameter onComplete: callback for when the request completes with the data returned
26 | func makeRequest<E: Endpoint>(to endpoint: E, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<Data?, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
27 | let request = DecreeRequest(for: endpoint, of: self, input: input, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: { result in
28 | switch result {
/host/spi-builder-workspace/Sources/Decree/Private/WebService+MakeRequest.swift:48:95: error: cannot find type 'DispatchQueue' in scope
46 | }
47 |
48 | func makeDownloadRequest<E: Endpoint>(to endpoint: E, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<URL, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
49 | let request = DecreeRequest(for: endpoint, of: self, input: input, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: { result in
50 | switch result {
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:44:78: error: cannot find type 'DispatchQueue' in scope
42 | var progressObserver: AnyObject?
43 |
44 | init(for endpoint: E, of service: S, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<Output?, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
45 | self.service = service
46 | self.endpoint = endpoint
/host/spi-builder-workspace/Sources/Decree/Private/WebService+MakeRequest.swift:27:23: error: generic parameter 'E' could not be inferred
25 | /// - Parameter onComplete: callback for when the request completes with the data returned
26 | func makeRequest<E: Endpoint>(to endpoint: E, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<Data?, DecreeError>) -> ()) {
27 | let request = DecreeRequest(for: endpoint, of: self, input: input, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: { result in
| `- error: generic parameter 'E' could not be inferred
28 | switch result {
29 | case .failure(let error):
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:13:21: note: 'E' declared as parameter to type 'DecreeRequest'
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' declared as parameter to type 'DecreeRequest'
14 | enum Output {
15 | case data(Data)
/host/spi-builder-workspace/Sources/Decree/Private/WebService+MakeRequest.swift:27:23: error: generic parameter 'S' could not be inferred
25 | /// - Parameter onComplete: callback for when the request completes with the data returned
26 | func makeRequest<E: Endpoint>(to endpoint: E, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<Data?, DecreeError>) -> ()) {
27 | let request = DecreeRequest(for: endpoint, of: self, input: input, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: { result in
| |- error: generic parameter 'S' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
28 | switch result {
29 | case .failure(let error):
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:13:34: note: 'S' declared as parameter to type 'DecreeRequest'
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'S' declared as parameter to type 'DecreeRequest'
14 | enum Output {
15 | case data(Data)
/host/spi-builder-workspace/Sources/Decree/Private/WebService+MakeRequest.swift:49:23: error: generic parameter 'E' could not be inferred
47 |
48 | func makeDownloadRequest<E: Endpoint>(to endpoint: E, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<URL, DecreeError>) -> ()) {
49 | let request = DecreeRequest(for: endpoint, of: self, input: input, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: { result in
| `- error: generic parameter 'E' could not be inferred
50 | switch result {
51 | case .failure(let error):
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:13:21: note: 'E' declared as parameter to type 'DecreeRequest'
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' declared as parameter to type 'DecreeRequest'
14 | enum Output {
15 | case data(Data)
/host/spi-builder-workspace/Sources/Decree/Private/WebService+MakeRequest.swift:49:23: error: generic parameter 'S' could not be inferred
47 |
48 | func makeDownloadRequest<E: Endpoint>(to endpoint: E, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<URL, DecreeError>) -> ()) {
49 | let request = DecreeRequest(for: endpoint, of: self, input: input, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: { result in
| |- error: generic parameter 'S' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
50 | switch result {
51 | case .failure(let error):
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:13:34: note: 'S' declared as parameter to type 'DecreeRequest'
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'S' declared as parameter to type 'DecreeRequest'
14 | enum Output {
15 | case data(Data)
/host/spi-builder-workspace/Sources/Decree/WebService.swift:71:50: error: cannot find type 'URLRequest' in scope
69 |
70 | /// **OPTIONAL** Chance to configure each URLRequest
71 | func configure<E: Endpoint>(_ request: inout URLRequest, for endpoint: E) throws
| `- error: cannot find type 'URLRequest' in scope
72 |
73 | /// **OPTIONAL** Chance to configure each input encoder
/host/spi-builder-workspace/Sources/Decree/WebService.swift:107:57: error: cannot find type 'URLRequest' in scope
105 |
106 | public var sessionOverride: Session? { return nil }
107 | public func configure<E: Endpoint>(_ request: inout URLRequest, for endpoint: E) throws {}
| `- error: cannot find type 'URLRequest' in scope
108 | public func configure<E: Endpoint>(_ encoder: inout JSONEncoder, for endpoint: E) throws {}
109 | public func configure<E: Endpoint>(_ decoder: inout JSONDecoder, for endpoint: E) throws {}
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:11:67: error: cannot find type 'DispatchQueue' in scope
9 |
10 | extension WebServiceMock {
11 | func handle<E: EmptyEndpoint>(for endpoint: E, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: EmptyResult) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
12 | do {
13 | let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:33:80: error: cannot find type 'DispatchQueue' in scope
31 | }
32 |
33 | func handle<E: InEndpoint>(for endpoint: E, input: E.Input, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: EmptyResult) -> ()) where E.Input: Encodable {
| `- error: cannot find type 'DispatchQueue' in scope
34 | do {
35 | let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:55:65: error: cannot find type 'DispatchQueue' in scope
53 | }
54 |
55 | func handle<E: OutEndpoint>(for endpoint: E, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: Result<E.Output, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
56 | do {
57 | let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:77:73: error: cannot find type 'DispatchQueue' in scope
75 | }
76 |
77 | func handleDownload<E: OutEndpoint>(for endpoint: E, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: Result<URL, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
78 | do {
79 | let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:99:83: error: cannot find type 'DispatchQueue' in scope
97 | }
98 |
99 | func handle<E: InOutEndpoint>(for endpoint: E, input: E.Input, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: Result<E.Output, DecreeError>) -> ()) where E.Input: Encodable {
| `- error: cannot find type 'DispatchQueue' in scope
100 | do {
101 | let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:121:91: error: cannot find type 'DispatchQueue' in scope
119 | }
120 |
121 | func handleDownload<E: InOutEndpoint>(for endpoint: E, input: E.Input, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: Result<URL, DecreeError>) -> ()) where E.Input: Encodable {
| `- error: cannot find type 'DispatchQueue' in scope
122 | do {
123 | let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:18:17: error: cannot find 'DispatchQueue' in scope
16 | try expectation.validate(path: endpoint.path, for: endpoint)
17 | try expectation.validate(endpoint)
18 | DispatchQueue(label: "background").async {
| `- error: cannot find 'DispatchQueue' in scope
19 | callbackQueue.async {
20 | onComplete(expectation.returning)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:40:17: error: cannot find 'DispatchQueue' in scope
38 | try expectation.validate(path: endpoint.path, for: endpoint)
39 | try expectation.validate(endpoint, input: input)
40 | DispatchQueue(label: "background").async {
| `- error: cannot find 'DispatchQueue' in scope
41 | callbackQueue.async {
42 | onComplete(expectation.returning)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:62:17: error: cannot find 'DispatchQueue' in scope
60 | try expectation.validate(path: endpoint.path, for: endpoint)
61 | try expectation.validate(endpoint)
62 | DispatchQueue(label: "background").async {
| `- error: cannot find 'DispatchQueue' in scope
63 | callbackQueue.async {
64 | onComplete(expectation.returning)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:84:17: error: cannot find 'DispatchQueue' in scope
82 | try expectation.validate(path: endpoint.path, for: endpoint)
83 | try expectation.validate(endpoint)
84 | DispatchQueue(label: "background").async {
| `- error: cannot find 'DispatchQueue' in scope
85 | callbackQueue.async {
86 | onComplete(expectation.returning)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:106:17: error: cannot find 'DispatchQueue' in scope
104 | try expectation.validate(path: endpoint.path, for: endpoint)
105 | try expectation.validate(endpoint, input: input)
106 | DispatchQueue(label: "background").async {
| `- error: cannot find 'DispatchQueue' in scope
107 | callbackQueue.async {
108 | onComplete(expectation.returning)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:128:17: error: cannot find 'DispatchQueue' in scope
126 | try expectation.validate(path: endpoint.path, for: endpoint)
127 | try expectation.validate(endpoint, input: input)
128 | DispatchQueue(label: "background").async {
| `- error: cannot find 'DispatchQueue' in scope
129 | callbackQueue.async {
130 | onComplete(expectation.returning)
/host/spi-builder-workspace/Sources/Decree/Basic Types/Session.swift:22:33: error: cannot find type 'URLRequest' in scope
20 | // init(configuration: URLSessionConfiguration, delegate: URLSessionDelegate?, delegateQueue queue: OperationQueue?)
21 |
22 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
| `- error: cannot find type 'URLRequest' in scope
23 | func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
24 | }
/host/spi-builder-workspace/Sources/Decree/Basic Types/Session.swift:23:37: error: cannot find type 'URLRequest' in scope
21 |
22 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
23 | func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
| `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/Decree/WebService.swift:91:44: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 |
90 | /// **OPTIONAL** Chance to validate the URLResponse
91 | func validate<E: Endpoint>(_ response: URLResponse, for endpoint: E) throws
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 |
93 | /// **OPTIONAL** Chance to validate the BasicResponse
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Decree/WebService.swift:99:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 |
98 | /// *OPTIONAL* Chance to automatically handle a response error
99 | func handle<E: Endpoint>(_ error: DecreeError, response: URLResponse, from endpoint: E) -> ErrorHandling
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 | }
101 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Decree/WebService.swift:113:51: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 | public func configure<E: Endpoint>(_ decoder: inout XMLDecoder, for endpoint: E) throws {}
112 | public func configure<E: Endpoint>(_ encoder: inout KeyValueEncoder, for endpoint: E) throws {}
113 | public func validate<E: Endpoint>(_ response: URLResponse, for endpoint: E) throws {}
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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) }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Decree/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
[71/92] Compiling Decree WebServiceMock+HandleRequest.swift
/host/spi-builder-workspace/Sources/Decree/Private/URLResponse+Logging.swift:13:1: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
11 | #endif
12 |
13 | extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
14 | var logDescription: String {
15 | var log = ""
/host/spi-builder-workspace/Sources/Decree/Private/URLResponse+Logging.swift:29:9: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
27 | }
28 |
29 | private extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
30 | var headers: String {
31 | return self.allHeaderFields.map({ key, value in
/host/spi-builder-workspace/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:25:30: error: cannot find type 'URLRequest' in scope
23 | /// - An optional URLResponse (will usually be an HTTPURLResponse)
24 | /// - An optional error
25 | func handle(dataRequest: URLRequest) -> (Data?, URLResponse?, Error?)
| `- error: cannot find type 'URLRequest' in scope
26 |
27 | /// Handle download requests
/host/spi-builder-workspace/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:38:34: error: cannot find type 'URLRequest' in scope
36 | /// - An optional URLResponse (will usually be an HTTPURLResponse)
37 | /// - An optional error
38 | func handle(downloadRequest: URLRequest) -> (URL?, URLResponse?, Error?)
| `- error: cannot find type 'URLRequest' in scope
39 | }
40 |
/host/spi-builder-workspace/Sources/Decree/Private/WebService+MakeRequest.swift:26:87: error: cannot find type 'DispatchQueue' in scope
24 | /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on the default queue from URLSession
25 | /// - Parameter onComplete: callback for when the request completes with the data returned
26 | func makeRequest<E: Endpoint>(to endpoint: E, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<Data?, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
27 | let request = DecreeRequest(for: endpoint, of: self, input: input, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: { result in
28 | switch result {
/host/spi-builder-workspace/Sources/Decree/Private/WebService+MakeRequest.swift:48:95: error: cannot find type 'DispatchQueue' in scope
46 | }
47 |
48 | func makeDownloadRequest<E: Endpoint>(to endpoint: E, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<URL, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
49 | let request = DecreeRequest(for: endpoint, of: self, input: input, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: { result in
50 | switch result {
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:44:78: error: cannot find type 'DispatchQueue' in scope
42 | var progressObserver: AnyObject?
43 |
44 | init(for endpoint: E, of service: S, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<Output?, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
45 | self.service = service
46 | self.endpoint = endpoint
/host/spi-builder-workspace/Sources/Decree/Private/WebService+MakeRequest.swift:27:23: error: generic parameter 'E' could not be inferred
25 | /// - Parameter onComplete: callback for when the request completes with the data returned
26 | func makeRequest<E: Endpoint>(to endpoint: E, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<Data?, DecreeError>) -> ()) {
27 | let request = DecreeRequest(for: endpoint, of: self, input: input, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: { result in
| `- error: generic parameter 'E' could not be inferred
28 | switch result {
29 | case .failure(let error):
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:13:21: note: 'E' declared as parameter to type 'DecreeRequest'
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' declared as parameter to type 'DecreeRequest'
14 | enum Output {
15 | case data(Data)
/host/spi-builder-workspace/Sources/Decree/Private/WebService+MakeRequest.swift:27:23: error: generic parameter 'S' could not be inferred
25 | /// - Parameter onComplete: callback for when the request completes with the data returned
26 | func makeRequest<E: Endpoint>(to endpoint: E, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<Data?, DecreeError>) -> ()) {
27 | let request = DecreeRequest(for: endpoint, of: self, input: input, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: { result in
| |- error: generic parameter 'S' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
28 | switch result {
29 | case .failure(let error):
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:13:34: note: 'S' declared as parameter to type 'DecreeRequest'
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'S' declared as parameter to type 'DecreeRequest'
14 | enum Output {
15 | case data(Data)
/host/spi-builder-workspace/Sources/Decree/Private/WebService+MakeRequest.swift:49:23: error: generic parameter 'E' could not be inferred
47 |
48 | func makeDownloadRequest<E: Endpoint>(to endpoint: E, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<URL, DecreeError>) -> ()) {
49 | let request = DecreeRequest(for: endpoint, of: self, input: input, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: { result in
| `- error: generic parameter 'E' could not be inferred
50 | switch result {
51 | case .failure(let error):
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:13:21: note: 'E' declared as parameter to type 'DecreeRequest'
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' declared as parameter to type 'DecreeRequest'
14 | enum Output {
15 | case data(Data)
/host/spi-builder-workspace/Sources/Decree/Private/WebService+MakeRequest.swift:49:23: error: generic parameter 'S' could not be inferred
47 |
48 | func makeDownloadRequest<E: Endpoint>(to endpoint: E, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<URL, DecreeError>) -> ()) {
49 | let request = DecreeRequest(for: endpoint, of: self, input: input, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: { result in
| |- error: generic parameter 'S' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
50 | switch result {
51 | case .failure(let error):
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:13:34: note: 'S' declared as parameter to type 'DecreeRequest'
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'S' declared as parameter to type 'DecreeRequest'
14 | enum Output {
15 | case data(Data)
/host/spi-builder-workspace/Sources/Decree/WebService.swift:71:50: error: cannot find type 'URLRequest' in scope
69 |
70 | /// **OPTIONAL** Chance to configure each URLRequest
71 | func configure<E: Endpoint>(_ request: inout URLRequest, for endpoint: E) throws
| `- error: cannot find type 'URLRequest' in scope
72 |
73 | /// **OPTIONAL** Chance to configure each input encoder
/host/spi-builder-workspace/Sources/Decree/WebService.swift:107:57: error: cannot find type 'URLRequest' in scope
105 |
106 | public var sessionOverride: Session? { return nil }
107 | public func configure<E: Endpoint>(_ request: inout URLRequest, for endpoint: E) throws {}
| `- error: cannot find type 'URLRequest' in scope
108 | public func configure<E: Endpoint>(_ encoder: inout JSONEncoder, for endpoint: E) throws {}
109 | public func configure<E: Endpoint>(_ decoder: inout JSONDecoder, for endpoint: E) throws {}
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:11:67: error: cannot find type 'DispatchQueue' in scope
9 |
10 | extension WebServiceMock {
11 | func handle<E: EmptyEndpoint>(for endpoint: E, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: EmptyResult) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
12 | do {
13 | let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:33:80: error: cannot find type 'DispatchQueue' in scope
31 | }
32 |
33 | func handle<E: InEndpoint>(for endpoint: E, input: E.Input, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: EmptyResult) -> ()) where E.Input: Encodable {
| `- error: cannot find type 'DispatchQueue' in scope
34 | do {
35 | let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:55:65: error: cannot find type 'DispatchQueue' in scope
53 | }
54 |
55 | func handle<E: OutEndpoint>(for endpoint: E, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: Result<E.Output, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
56 | do {
57 | let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:77:73: error: cannot find type 'DispatchQueue' in scope
75 | }
76 |
77 | func handleDownload<E: OutEndpoint>(for endpoint: E, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: Result<URL, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
78 | do {
79 | let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:99:83: error: cannot find type 'DispatchQueue' in scope
97 | }
98 |
99 | func handle<E: InOutEndpoint>(for endpoint: E, input: E.Input, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: Result<E.Output, DecreeError>) -> ()) where E.Input: Encodable {
| `- error: cannot find type 'DispatchQueue' in scope
100 | do {
101 | let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:121:91: error: cannot find type 'DispatchQueue' in scope
119 | }
120 |
121 | func handleDownload<E: InOutEndpoint>(for endpoint: E, input: E.Input, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: Result<URL, DecreeError>) -> ()) where E.Input: Encodable {
| `- error: cannot find type 'DispatchQueue' in scope
122 | do {
123 | let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:18:17: error: cannot find 'DispatchQueue' in scope
16 | try expectation.validate(path: endpoint.path, for: endpoint)
17 | try expectation.validate(endpoint)
18 | DispatchQueue(label: "background").async {
| `- error: cannot find 'DispatchQueue' in scope
19 | callbackQueue.async {
20 | onComplete(expectation.returning)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:40:17: error: cannot find 'DispatchQueue' in scope
38 | try expectation.validate(path: endpoint.path, for: endpoint)
39 | try expectation.validate(endpoint, input: input)
40 | DispatchQueue(label: "background").async {
| `- error: cannot find 'DispatchQueue' in scope
41 | callbackQueue.async {
42 | onComplete(expectation.returning)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:62:17: error: cannot find 'DispatchQueue' in scope
60 | try expectation.validate(path: endpoint.path, for: endpoint)
61 | try expectation.validate(endpoint)
62 | DispatchQueue(label: "background").async {
| `- error: cannot find 'DispatchQueue' in scope
63 | callbackQueue.async {
64 | onComplete(expectation.returning)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:84:17: error: cannot find 'DispatchQueue' in scope
82 | try expectation.validate(path: endpoint.path, for: endpoint)
83 | try expectation.validate(endpoint)
84 | DispatchQueue(label: "background").async {
| `- error: cannot find 'DispatchQueue' in scope
85 | callbackQueue.async {
86 | onComplete(expectation.returning)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:106:17: error: cannot find 'DispatchQueue' in scope
104 | try expectation.validate(path: endpoint.path, for: endpoint)
105 | try expectation.validate(endpoint, input: input)
106 | DispatchQueue(label: "background").async {
| `- error: cannot find 'DispatchQueue' in scope
107 | callbackQueue.async {
108 | onComplete(expectation.returning)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:128:17: error: cannot find 'DispatchQueue' in scope
126 | try expectation.validate(path: endpoint.path, for: endpoint)
127 | try expectation.validate(endpoint, input: input)
128 | DispatchQueue(label: "background").async {
| `- error: cannot find 'DispatchQueue' in scope
129 | callbackQueue.async {
130 | onComplete(expectation.returning)
/host/spi-builder-workspace/Sources/Decree/Basic Types/Session.swift:22:33: error: cannot find type 'URLRequest' in scope
20 | // init(configuration: URLSessionConfiguration, delegate: URLSessionDelegate?, delegateQueue queue: OperationQueue?)
21 |
22 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
| `- error: cannot find type 'URLRequest' in scope
23 | func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
24 | }
/host/spi-builder-workspace/Sources/Decree/Basic Types/Session.swift:23:37: error: cannot find type 'URLRequest' in scope
21 |
22 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
23 | func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
| `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/Decree/WebService.swift:91:44: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 |
90 | /// **OPTIONAL** Chance to validate the URLResponse
91 | func validate<E: Endpoint>(_ response: URLResponse, for endpoint: E) throws
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 |
93 | /// **OPTIONAL** Chance to validate the BasicResponse
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Decree/WebService.swift:99:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 |
98 | /// *OPTIONAL* Chance to automatically handle a response error
99 | func handle<E: Endpoint>(_ error: DecreeError, response: URLResponse, from endpoint: E) -> ErrorHandling
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 | }
101 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Decree/WebService.swift:113:51: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 | public func configure<E: Endpoint>(_ decoder: inout XMLDecoder, for endpoint: E) throws {}
112 | public func configure<E: Endpoint>(_ encoder: inout KeyValueEncoder, for endpoint: E) throws {}
113 | public func validate<E: Endpoint>(_ response: URLResponse, for endpoint: E) throws {}
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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) }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Decree/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
[72/92] Compiling Decree WebService.swift
/host/spi-builder-workspace/Sources/Decree/Private/URLResponse+Logging.swift:13:1: error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
11 | #endif
12 |
13 | extension URLResponse {
| `- error: non-nominal type 'URLResponse' (aka 'AnyObject') cannot be extended
14 | var logDescription: String {
15 | var log = ""
/host/spi-builder-workspace/Sources/Decree/Private/URLResponse+Logging.swift:29:9: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
27 | }
28 |
29 | private extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
30 | var headers: String {
31 | return self.allHeaderFields.map({ key, value in
/host/spi-builder-workspace/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:25:30: error: cannot find type 'URLRequest' in scope
23 | /// - An optional URLResponse (will usually be an HTTPURLResponse)
24 | /// - An optional error
25 | func handle(dataRequest: URLRequest) -> (Data?, URLResponse?, Error?)
| `- error: cannot find type 'URLRequest' in scope
26 |
27 | /// Handle download requests
/host/spi-builder-workspace/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:38:34: error: cannot find type 'URLRequest' in scope
36 | /// - An optional URLResponse (will usually be an HTTPURLResponse)
37 | /// - An optional error
38 | func handle(downloadRequest: URLRequest) -> (URL?, URLResponse?, Error?)
| `- error: cannot find type 'URLRequest' in scope
39 | }
40 |
/host/spi-builder-workspace/Sources/Decree/Private/WebService+MakeRequest.swift:26:87: error: cannot find type 'DispatchQueue' in scope
24 | /// - Parameter callbackQueue: Queue to execute the onComplete callback on. If nil, it will execute on the default queue from URLSession
25 | /// - Parameter onComplete: callback for when the request completes with the data returned
26 | func makeRequest<E: Endpoint>(to endpoint: E, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<Data?, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
27 | let request = DecreeRequest(for: endpoint, of: self, input: input, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: { result in
28 | switch result {
/host/spi-builder-workspace/Sources/Decree/Private/WebService+MakeRequest.swift:48:95: error: cannot find type 'DispatchQueue' in scope
46 | }
47 |
48 | func makeDownloadRequest<E: Endpoint>(to endpoint: E, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<URL, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
49 | let request = DecreeRequest(for: endpoint, of: self, input: input, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: { result in
50 | switch result {
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:44:78: error: cannot find type 'DispatchQueue' in scope
42 | var progressObserver: AnyObject?
43 |
44 | init(for endpoint: E, of service: S, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<Output?, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
45 | self.service = service
46 | self.endpoint = endpoint
/host/spi-builder-workspace/Sources/Decree/Private/WebService+MakeRequest.swift:27:23: error: generic parameter 'E' could not be inferred
25 | /// - Parameter onComplete: callback for when the request completes with the data returned
26 | func makeRequest<E: Endpoint>(to endpoint: E, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<Data?, DecreeError>) -> ()) {
27 | let request = DecreeRequest(for: endpoint, of: self, input: input, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: { result in
| `- error: generic parameter 'E' could not be inferred
28 | switch result {
29 | case .failure(let error):
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:13:21: note: 'E' declared as parameter to type 'DecreeRequest'
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' declared as parameter to type 'DecreeRequest'
14 | enum Output {
15 | case data(Data)
/host/spi-builder-workspace/Sources/Decree/Private/WebService+MakeRequest.swift:27:23: error: generic parameter 'S' could not be inferred
25 | /// - Parameter onComplete: callback for when the request completes with the data returned
26 | func makeRequest<E: Endpoint>(to endpoint: E, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<Data?, DecreeError>) -> ()) {
27 | let request = DecreeRequest(for: endpoint, of: self, input: input, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: { result in
| |- error: generic parameter 'S' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
28 | switch result {
29 | case .failure(let error):
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:13:34: note: 'S' declared as parameter to type 'DecreeRequest'
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'S' declared as parameter to type 'DecreeRequest'
14 | enum Output {
15 | case data(Data)
/host/spi-builder-workspace/Sources/Decree/Private/WebService+MakeRequest.swift:49:23: error: generic parameter 'E' could not be inferred
47 |
48 | func makeDownloadRequest<E: Endpoint>(to endpoint: E, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<URL, DecreeError>) -> ()) {
49 | let request = DecreeRequest(for: endpoint, of: self, input: input, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: { result in
| `- error: generic parameter 'E' could not be inferred
50 | switch result {
51 | case .failure(let error):
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:13:21: note: 'E' declared as parameter to type 'DecreeRequest'
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'E' declared as parameter to type 'DecreeRequest'
14 | enum Output {
15 | case data(Data)
/host/spi-builder-workspace/Sources/Decree/Private/WebService+MakeRequest.swift:49:23: error: generic parameter 'S' could not be inferred
47 |
48 | func makeDownloadRequest<E: Endpoint>(to endpoint: E, input: RequestInput, callbackQueue: DispatchQueue?, onProgress: ((Double) -> ())?, onComplete: @escaping (_ result: Result<URL, DecreeError>) -> ()) {
49 | let request = DecreeRequest(for: endpoint, of: self, input: input, callbackQueue: callbackQueue, onProgress: onProgress, onComplete: { result in
| |- error: generic parameter 'S' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
50 | switch result {
51 | case .failure(let error):
/host/spi-builder-workspace/Sources/Decree/Private/DecreeRequest.swift:13:34: note: 'S' declared as parameter to type 'DecreeRequest'
11 | #endif
12 |
13 | class DecreeRequest<E: Endpoint, S: WebService> {
| `- note: 'S' declared as parameter to type 'DecreeRequest'
14 | enum Output {
15 | case data(Data)
/host/spi-builder-workspace/Sources/Decree/WebService.swift:71:50: error: cannot find type 'URLRequest' in scope
69 |
70 | /// **OPTIONAL** Chance to configure each URLRequest
71 | func configure<E: Endpoint>(_ request: inout URLRequest, for endpoint: E) throws
| `- error: cannot find type 'URLRequest' in scope
72 |
73 | /// **OPTIONAL** Chance to configure each input encoder
/host/spi-builder-workspace/Sources/Decree/WebService.swift:107:57: error: cannot find type 'URLRequest' in scope
105 |
106 | public var sessionOverride: Session? { return nil }
107 | public func configure<E: Endpoint>(_ request: inout URLRequest, for endpoint: E) throws {}
| `- error: cannot find type 'URLRequest' in scope
108 | public func configure<E: Endpoint>(_ encoder: inout JSONEncoder, for endpoint: E) throws {}
109 | public func configure<E: Endpoint>(_ decoder: inout JSONDecoder, for endpoint: E) throws {}
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:11:67: error: cannot find type 'DispatchQueue' in scope
9 |
10 | extension WebServiceMock {
11 | func handle<E: EmptyEndpoint>(for endpoint: E, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: EmptyResult) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
12 | do {
13 | let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:33:80: error: cannot find type 'DispatchQueue' in scope
31 | }
32 |
33 | func handle<E: InEndpoint>(for endpoint: E, input: E.Input, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: EmptyResult) -> ()) where E.Input: Encodable {
| `- error: cannot find type 'DispatchQueue' in scope
34 | do {
35 | let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:55:65: error: cannot find type 'DispatchQueue' in scope
53 | }
54 |
55 | func handle<E: OutEndpoint>(for endpoint: E, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: Result<E.Output, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
56 | do {
57 | let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:77:73: error: cannot find type 'DispatchQueue' in scope
75 | }
76 |
77 | func handleDownload<E: OutEndpoint>(for endpoint: E, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: Result<URL, DecreeError>) -> ()) {
| `- error: cannot find type 'DispatchQueue' in scope
78 | do {
79 | let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:99:83: error: cannot find type 'DispatchQueue' in scope
97 | }
98 |
99 | func handle<E: InOutEndpoint>(for endpoint: E, input: E.Input, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: Result<E.Output, DecreeError>) -> ()) where E.Input: Encodable {
| `- error: cannot find type 'DispatchQueue' in scope
100 | do {
101 | let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:121:91: error: cannot find type 'DispatchQueue' in scope
119 | }
120 |
121 | func handleDownload<E: InOutEndpoint>(for endpoint: E, input: E.Input, callbackQueue: DispatchQueue?, onComplete: @escaping (_ result: Result<URL, DecreeError>) -> ()) where E.Input: Encodable {
| `- error: cannot find type 'DispatchQueue' in scope
122 | do {
123 | let next = try self.nextExpectation(for: endpoint)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:18:17: error: cannot find 'DispatchQueue' in scope
16 | try expectation.validate(path: endpoint.path, for: endpoint)
17 | try expectation.validate(endpoint)
18 | DispatchQueue(label: "background").async {
| `- error: cannot find 'DispatchQueue' in scope
19 | callbackQueue.async {
20 | onComplete(expectation.returning)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:40:17: error: cannot find 'DispatchQueue' in scope
38 | try expectation.validate(path: endpoint.path, for: endpoint)
39 | try expectation.validate(endpoint, input: input)
40 | DispatchQueue(label: "background").async {
| `- error: cannot find 'DispatchQueue' in scope
41 | callbackQueue.async {
42 | onComplete(expectation.returning)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:62:17: error: cannot find 'DispatchQueue' in scope
60 | try expectation.validate(path: endpoint.path, for: endpoint)
61 | try expectation.validate(endpoint)
62 | DispatchQueue(label: "background").async {
| `- error: cannot find 'DispatchQueue' in scope
63 | callbackQueue.async {
64 | onComplete(expectation.returning)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:84:17: error: cannot find 'DispatchQueue' in scope
82 | try expectation.validate(path: endpoint.path, for: endpoint)
83 | try expectation.validate(endpoint)
84 | DispatchQueue(label: "background").async {
| `- error: cannot find 'DispatchQueue' in scope
85 | callbackQueue.async {
86 | onComplete(expectation.returning)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:106:17: error: cannot find 'DispatchQueue' in scope
104 | try expectation.validate(path: endpoint.path, for: endpoint)
105 | try expectation.validate(endpoint, input: input)
106 | DispatchQueue(label: "background").async {
| `- error: cannot find 'DispatchQueue' in scope
107 | callbackQueue.async {
108 | onComplete(expectation.returning)
/host/spi-builder-workspace/Sources/Decree/Private/WebServiceMock+HandleRequest.swift:128:17: error: cannot find 'DispatchQueue' in scope
126 | try expectation.validate(path: endpoint.path, for: endpoint)
127 | try expectation.validate(endpoint, input: input)
128 | DispatchQueue(label: "background").async {
| `- error: cannot find 'DispatchQueue' in scope
129 | callbackQueue.async {
130 | onComplete(expectation.returning)
/host/spi-builder-workspace/Sources/Decree/Basic Types/Session.swift:22:33: error: cannot find type 'URLRequest' in scope
20 | // init(configuration: URLSessionConfiguration, delegate: URLSessionDelegate?, delegateQueue queue: OperationQueue?)
21 |
22 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
| `- error: cannot find type 'URLRequest' in scope
23 | func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
24 | }
/host/spi-builder-workspace/Sources/Decree/Basic Types/Session.swift:23:37: error: cannot find type 'URLRequest' in scope
21 |
22 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
23 | func downloadTask(with request: URLRequest, completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask
| `- error: cannot find type 'URLRequest' in scope
24 | }
25 |
/host/spi-builder-workspace/Sources/Decree/WebService.swift:91:44: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 |
90 | /// **OPTIONAL** Chance to validate the URLResponse
91 | func validate<E: Endpoint>(_ response: URLResponse, for endpoint: E) throws
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 |
93 | /// **OPTIONAL** Chance to validate the BasicResponse
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Decree/WebService.swift:99:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
97 |
98 | /// *OPTIONAL* Chance to automatically handle a response error
99 | func handle<E: Endpoint>(_ error: DecreeError, response: URLResponse, from endpoint: E) -> ErrorHandling
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 | }
101 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Decree/WebService.swift:113:51: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
111 | public func configure<E: Endpoint>(_ decoder: inout XMLDecoder, for endpoint: E) throws {}
112 | public func configure<E: Endpoint>(_ encoder: inout KeyValueEncoder, for endpoint: E) throws {}
113 | public func validate<E: Endpoint>(_ response: URLResponse, for endpoint: E) throws {}
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
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) }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Decree/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
[73/92] Compiling Decree KeyValueEncoder.swift
/host/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:21:18: error: cannot find type 'DispatchSemaphore' in scope
19 |
20 | var pathValidation: PathValidation {get}
21 | var waiting: DispatchSemaphore {get}
| `- error: cannot find type 'DispatchSemaphore' in scope
22 | }
23 |
/host/spi-builder-workspace/Sources/Decree/Mocking/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/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/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/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/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/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/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/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:25:30: error: cannot find type 'URLRequest' in scope
23 | /// - An optional URLResponse (will usually be an HTTPURLResponse)
24 | /// - An optional error
25 | func handle(dataRequest: URLRequest) -> (Data?, URLResponse?, Error?)
| `- error: cannot find type 'URLRequest' in scope
26 |
27 | /// Handle download requests
/host/spi-builder-workspace/Sources/Decree/Mocking/WebService+AllRequestHandling.swift: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/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:38:34: error: cannot find type 'URLRequest' in scope
36 | /// - An optional URLResponse (will usually be an HTTPURLResponse)
37 | /// - An optional error
38 | func handle(downloadRequest: URLRequest) -> (URL?, URLResponse?, Error?)
| `- error: cannot find type 'URLRequest' in scope
39 | }
40 |
/host/spi-builder-workspace/Sources/Decree/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/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/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/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/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/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/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/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
[74/92] Compiling Decree Logger.swift
/host/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:21:18: error: cannot find type 'DispatchSemaphore' in scope
19 |
20 | var pathValidation: PathValidation {get}
21 | var waiting: DispatchSemaphore {get}
| `- error: cannot find type 'DispatchSemaphore' in scope
22 | }
23 |
/host/spi-builder-workspace/Sources/Decree/Mocking/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/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/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/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/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/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/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/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:25:30: error: cannot find type 'URLRequest' in scope
23 | /// - An optional URLResponse (will usually be an HTTPURLResponse)
24 | /// - An optional error
25 | func handle(dataRequest: URLRequest) -> (Data?, URLResponse?, Error?)
| `- error: cannot find type 'URLRequest' in scope
26 |
27 | /// Handle download requests
/host/spi-builder-workspace/Sources/Decree/Mocking/WebService+AllRequestHandling.swift: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/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:38:34: error: cannot find type 'URLRequest' in scope
36 | /// - An optional URLResponse (will usually be an HTTPURLResponse)
37 | /// - An optional error
38 | func handle(downloadRequest: URLRequest) -> (URL?, URLResponse?, Error?)
| `- error: cannot find type 'URLRequest' in scope
39 | }
40 |
/host/spi-builder-workspace/Sources/Decree/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/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/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/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/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/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/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/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
[75/92] Compiling Decree Expectations.swift
/host/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:21:18: error: cannot find type 'DispatchSemaphore' in scope
19 |
20 | var pathValidation: PathValidation {get}
21 | var waiting: DispatchSemaphore {get}
| `- error: cannot find type 'DispatchSemaphore' in scope
22 | }
23 |
/host/spi-builder-workspace/Sources/Decree/Mocking/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/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/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/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/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/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/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/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:25:30: error: cannot find type 'URLRequest' in scope
23 | /// - An optional URLResponse (will usually be an HTTPURLResponse)
24 | /// - An optional error
25 | func handle(dataRequest: URLRequest) -> (Data?, URLResponse?, Error?)
| `- error: cannot find type 'URLRequest' in scope
26 |
27 | /// Handle download requests
/host/spi-builder-workspace/Sources/Decree/Mocking/WebService+AllRequestHandling.swift: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/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:38:34: error: cannot find type 'URLRequest' in scope
36 | /// - An optional URLResponse (will usually be an HTTPURLResponse)
37 | /// - An optional error
38 | func handle(downloadRequest: URLRequest) -> (URL?, URLResponse?, Error?)
| `- error: cannot find type 'URLRequest' in scope
39 | }
40 |
/host/spi-builder-workspace/Sources/Decree/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/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/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/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/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/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/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/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
[76/92] Compiling Decree WebService+AllRequestHandling.swift
/host/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:21:18: error: cannot find type 'DispatchSemaphore' in scope
19 |
20 | var pathValidation: PathValidation {get}
21 | var waiting: DispatchSemaphore {get}
| `- error: cannot find type 'DispatchSemaphore' in scope
22 | }
23 |
/host/spi-builder-workspace/Sources/Decree/Mocking/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/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/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/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/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/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/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/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:25:30: error: cannot find type 'URLRequest' in scope
23 | /// - An optional URLResponse (will usually be an HTTPURLResponse)
24 | /// - An optional error
25 | func handle(dataRequest: URLRequest) -> (Data?, URLResponse?, Error?)
| `- error: cannot find type 'URLRequest' in scope
26 |
27 | /// Handle download requests
/host/spi-builder-workspace/Sources/Decree/Mocking/WebService+AllRequestHandling.swift: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/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:38:34: error: cannot find type 'URLRequest' in scope
36 | /// - An optional URLResponse (will usually be an HTTPURLResponse)
37 | /// - An optional error
38 | func handle(downloadRequest: URLRequest) -> (URL?, URLResponse?, Error?)
| `- error: cannot find type 'URLRequest' in scope
39 | }
40 |
/host/spi-builder-workspace/Sources/Decree/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/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/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/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/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/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/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/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
[77/92] Compiling Decree WebService+Mocking.swift
/host/spi-builder-workspace/Sources/Decree/Mocking/Expectations.swift:21:18: error: cannot find type 'DispatchSemaphore' in scope
19 |
20 | var pathValidation: PathValidation {get}
21 | var waiting: DispatchSemaphore {get}
| `- error: cannot find type 'DispatchSemaphore' in scope
22 | }
23 |
/host/spi-builder-workspace/Sources/Decree/Mocking/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/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/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/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/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/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/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/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:25:30: error: cannot find type 'URLRequest' in scope
23 | /// - An optional URLResponse (will usually be an HTTPURLResponse)
24 | /// - An optional error
25 | func handle(dataRequest: URLRequest) -> (Data?, URLResponse?, Error?)
| `- error: cannot find type 'URLRequest' in scope
26 |
27 | /// Handle download requests
/host/spi-builder-workspace/Sources/Decree/Mocking/WebService+AllRequestHandling.swift: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/Sources/Decree/Mocking/WebService+AllRequestHandling.swift:38:34: error: cannot find type 'URLRequest' in scope
36 | /// - An optional URLResponse (will usually be an HTTPURLResponse)
37 | /// - An optional error
38 | func handle(downloadRequest: URLRequest) -> (URL?, URLResponse?, Error?)
| `- error: cannot find type 'URLRequest' in scope
39 | }
40 |
/host/spi-builder-workspace/Sources/Decree/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/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/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/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/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/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/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/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
[78/92] Compiling Decree ErrorHandling.swift
[79/92] Compiling Decree ErrorResponse.swift
[80/92] Compiling Decree File.swift
[81/92] Compiling Decree InputFormat.swift
[82/92] Compiling Decree Method.swift
[83/92] Compiling Decree FormDataEncoder.swift
/host/spi-builder-workspace/Sources/Decree/Private/HTTPStatus.swift:62:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | case other(Int)
61 |
62 | public init(from response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | self = HTTPStatus(rawValue: response.statusCode)
64 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Decree/Private/HTTPStatus.swift:63:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
61 |
62 | public init(from response: HTTPURLResponse) {
63 | self = HTTPStatus(rawValue: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
64 | }
65 |
/host/spi-builder-workspace/Sources/Decree/Private/NSXMLParser_ErrorCode.swift:13:1: warning: extension declares a conformance of imported type 'ErrorCode' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'FoundationXML' introduce this conformance in the future
11 | #endif
12 |
13 | extension XMLParser.ErrorCode: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'ErrorCode' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'FoundationXML' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
14 | public var description: String {
15 | switch self {
[84/92] Compiling Decree FormURLEncoder.swift
/host/spi-builder-workspace/Sources/Decree/Private/HTTPStatus.swift:62:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | case other(Int)
61 |
62 | public init(from response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | self = HTTPStatus(rawValue: response.statusCode)
64 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Decree/Private/HTTPStatus.swift:63:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
61 |
62 | public init(from response: HTTPURLResponse) {
63 | self = HTTPStatus(rawValue: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
64 | }
65 |
/host/spi-builder-workspace/Sources/Decree/Private/NSXMLParser_ErrorCode.swift:13:1: warning: extension declares a conformance of imported type 'ErrorCode' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'FoundationXML' introduce this conformance in the future
11 | #endif
12 |
13 | extension XMLParser.ErrorCode: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'ErrorCode' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'FoundationXML' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
14 | public var description: String {
15 | switch self {
[85/92] Compiling Decree HTTPStatus.swift
/host/spi-builder-workspace/Sources/Decree/Private/HTTPStatus.swift:62:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | case other(Int)
61 |
62 | public init(from response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | self = HTTPStatus(rawValue: response.statusCode)
64 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Decree/Private/HTTPStatus.swift:63:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
61 |
62 | public init(from response: HTTPURLResponse) {
63 | self = HTTPStatus(rawValue: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
64 | }
65 |
/host/spi-builder-workspace/Sources/Decree/Private/NSXMLParser_ErrorCode.swift:13:1: warning: extension declares a conformance of imported type 'ErrorCode' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'FoundationXML' introduce this conformance in the future
11 | #endif
12 |
13 | extension XMLParser.ErrorCode: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'ErrorCode' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'FoundationXML' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
14 | public var description: String {
15 | switch self {
[86/92] Compiling Decree NSXMLParser_ErrorCode.swift
/host/spi-builder-workspace/Sources/Decree/Private/HTTPStatus.swift:62:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | case other(Int)
61 |
62 | public init(from response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | self = HTTPStatus(rawValue: response.statusCode)
64 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Decree/Private/HTTPStatus.swift:63:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
61 |
62 | public init(from response: HTTPURLResponse) {
63 | self = HTTPStatus(rawValue: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
64 | }
65 |
/host/spi-builder-workspace/Sources/Decree/Private/NSXMLParser_ErrorCode.swift:13:1: warning: extension declares a conformance of imported type 'ErrorCode' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'FoundationXML' introduce this conformance in the future
11 | #endif
12 |
13 | extension XMLParser.ErrorCode: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'ErrorCode' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'FoundationXML' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
14 | public var description: String {
15 | switch self {
[87/92] Compiling Decree ProgressObserver.swift
/host/spi-builder-workspace/Sources/Decree/Private/HTTPStatus.swift:62:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | case other(Int)
61 |
62 | public init(from response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | self = HTTPStatus(rawValue: response.statusCode)
64 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Decree/Private/HTTPStatus.swift:63:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
61 |
62 | public init(from response: HTTPURLResponse) {
63 | self = HTTPStatus(rawValue: response.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
64 | }
65 |
/host/spi-builder-workspace/Sources/Decree/Private/NSXMLParser_ErrorCode.swift:13:1: warning: extension declares a conformance of imported type 'ErrorCode' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'FoundationXML' introduce this conformance in the future
11 | #endif
12 |
13 | extension XMLParser.ErrorCode: CustomStringConvertible {
| |- warning: extension declares a conformance of imported type 'ErrorCode' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'FoundationXML' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
14 | public var description: String {
15 | switch self {
[88/92] Compiling Decree Authorization.swift
[89/92] Compiling Decree AuthorizationRequirement.swift
[90/92] Compiling Decree DecreeError.swift
[91/92] Compiling Decree DecreeErrorDescribable.swift
[92/92] Compiling Decree EmptyResult.swift
BUILD FAILURE 6.1 wasm