Build Information
Failed to build Siesta, reference 1.5.2 (43f340), with Swift 6.3 for Wasm on 11 Apr 2026 23:00:07 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
316 |
317 | @objc(addObserver:owner:)
| `- error: Objective-C interoperability is disabled
318 | public func _objc_addObserver(_ objcObserver: _objc_ResourceObserver, owner: AnyObject) -> Self
319 | { return addObserver(_objc_ResourceObserverGlue(objcObserver: objcObserver), owner: owner) }
/host/spi-builder-workspace/Source/Siesta/Support/Siesta-ObjC.swift:322:108: error: '(Resource, String) -> Void' is not representable in Objective-C, so it cannot be used with '@convention(block)'
320 |
321 | @objc(addObserverWithOwner:callback:)
322 | public func _objc_addObserver(owner: AnyObject, block: @escaping @convention(block) (Resource, String) -> Void) -> Self
| `- error: '(Resource, String) -> Void' is not representable in Objective-C, so it cannot be used with '@convention(block)'
323 | {
324 | return addObserver(owner: owner)
/host/spi-builder-workspace/Source/Siesta/Support/Siesta-ObjC.swift:322:60: error: '@escaping' only applies to function types
320 |
321 | @objc(addObserverWithOwner:callback:)
322 | public func _objc_addObserver(owner: AnyObject, block: @escaping @convention(block) (Resource, String) -> Void) -> Self
| `- error: '@escaping' only applies to function types
323 | {
324 | return addObserver(owner: owner)
/host/spi-builder-workspace/Source/Siesta/Support/Siesta-ObjC.swift:321:6: error: Objective-C interoperability is disabled
319 | { return addObserver(_objc_ResourceObserverGlue(objcObserver: objcObserver), owner: owner) }
320 |
321 | @objc(addObserverWithOwner:callback:)
| `- error: Objective-C interoperability is disabled
322 | public func _objc_addObserver(owner: AnyObject, block: @escaping @convention(block) (Resource, String) -> Void) -> Self
323 | {
/host/spi-builder-workspace/Source/Siesta/Support/Siesta-ObjC.swift:366:69: error: cannot find type 'NSMutableURLRequest' in scope
364 | }
365 |
366 | private static func apply(requestMutation: (@convention(block) (NSMutableURLRequest) -> Void)?, to request: inout URLRequest)
| `- error: cannot find type 'NSMutableURLRequest' in scope
367 | {
368 | let mutableReq = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
/host/spi-builder-workspace/Source/Siesta/Support/Siesta-ObjC.swift:366:119: error: cannot find type 'URLRequest' in scope
364 | }
365 |
366 | private static func apply(requestMutation: (@convention(block) (NSMutableURLRequest) -> Void)?, to request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
367 | {
368 | let mutableReq = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
/host/spi-builder-workspace/Source/Siesta/Support/Siesta-ObjC.swift:376:51: error: cannot find type 'NSMutableURLRequest' in scope
374 | public func _objc_request(
375 | _ method: String,
376 | requestMutation: (@convention(block) (NSMutableURLRequest) -> Void)?)
| `- error: cannot find type 'NSMutableURLRequest' in scope
377 | -> _objc_Request
378 | {
/host/spi-builder-workspace/Source/Siesta/Support/Siesta-ObjC.swift:373:6: error: Objective-C interoperability is disabled
371 | }
372 |
373 | @objc(requestWithMethod:requestMutation:)
| `- error: Objective-C interoperability is disabled
374 | public func _objc_request(
375 | _ method: String,
/host/spi-builder-workspace/Source/Siesta/Support/Siesta-ObjC.swift:386:6: error: Objective-C interoperability is disabled
384 | }
385 |
386 | @objc(requestWithMethod:)
| `- error: Objective-C interoperability is disabled
387 | public func _objc_request(_ method: String)
388 | -> _objc_Request
/host/spi-builder-workspace/Source/Siesta/Support/Siesta-ObjC.swift:399:51: error: cannot find type 'NSMutableURLRequest' in scope
397 | data: Data,
398 | contentType: String,
399 | requestMutation: (@convention(block) (NSMutableURLRequest) -> Void)?)
| `- error: cannot find type 'NSMutableURLRequest' in scope
400 | -> _objc_Request
401 | {
/host/spi-builder-workspace/Source/Siesta/Support/Siesta-ObjC.swift:394:6: error: Objective-C interoperability is disabled
392 | }
393 |
394 | @objc(requestWithMethod:data:contentType:requestMutation:)
| `- error: Objective-C interoperability is disabled
395 | public func _objc_request(
396 | _ method: String,
/host/spi-builder-workspace/Source/Siesta/Support/Siesta-ObjC.swift:409:7: error: Objective-C interoperability is disabled
407 | }
408 |
409 | @objc(requestWithMethod:text:)
| `- error: Objective-C interoperability is disabled
410 | public func _objc_request(
411 | _ method: String,
/host/spi-builder-workspace/Source/Siesta/Support/Siesta-ObjC.swift:425:52: error: cannot find type 'NSMutableURLRequest' in scope
423 | contentType: String,
424 | encoding: UInt = String.Encoding.utf8.rawValue,
425 | requestMutation: (@convention(block) (NSMutableURLRequest) -> Void)?)
| `- error: cannot find type 'NSMutableURLRequest' in scope
426 | -> _objc_Request
427 | {
/host/spi-builder-workspace/Source/Siesta/Support/Siesta-ObjC.swift:419:7: error: Objective-C interoperability is disabled
417 | }
418 |
419 | @objc(requestWithMethod:text:contentType:encoding:requestMutation:)
| `- error: Objective-C interoperability is disabled
420 | public func _objc_request(
421 | _ method: String,
/host/spi-builder-workspace/Source/Siesta/Support/Siesta-ObjC.swift:435:7: error: Objective-C interoperability is disabled
433 | }
434 |
435 | @objc(requestWithMethod:json:)
| `- error: Objective-C interoperability is disabled
436 | public func _objc_request(
437 | _ method: String,
/host/spi-builder-workspace/Source/Siesta/Support/Siesta-ObjC.swift:450:52: error: cannot find type 'NSMutableURLRequest' in scope
448 | json: NSObject?,
449 | contentType: String,
450 | requestMutation: (@convention(block) (NSMutableURLRequest) -> Void)?)
| `- error: cannot find type 'NSMutableURLRequest' in scope
451 | -> _objc_Request
452 | {
/host/spi-builder-workspace/Source/Siesta/Support/Siesta-ObjC.swift:445:7: error: Objective-C interoperability is disabled
443 | }
444 |
445 | @objc(requestWithMethod:json:contentType:requestMutation:)
| `- error: Objective-C interoperability is disabled
446 | public func _objc_request(
447 | _ method: String,
/host/spi-builder-workspace/Source/Siesta/Support/Siesta-ObjC.swift:464:54: error: cannot find type 'NSMutableURLRequest' in scope
462 | _ method: String,
463 | urlEncoded params: [String:String],
464 | requestMutation: (@convention(block) (NSMutableURLRequest) -> Void)?)
| `- error: cannot find type 'NSMutableURLRequest' in scope
465 | -> _objc_Request
466 | {
/host/spi-builder-workspace/Source/Siesta/Support/Siesta-ObjC.swift:460:7: error: Objective-C interoperability is disabled
458 | }
459 |
460 | @objc(requestWithMethod:urlEncoded:requestMutation:)
| `- error: Objective-C interoperability is disabled
461 | public func _objc_request(
462 | _ method: String,
/host/spi-builder-workspace/Source/Siesta/Support/Siesta-ObjC.swift:474:6: error: Objective-C interoperability is disabled
472 | }
473 |
474 | @objc(loadUsingRequest:)
| `- error: Objective-C interoperability is disabled
475 | public func _objc_load(using req: _objc_Request) -> _objc_Request
476 | {
/host/spi-builder-workspace/Source/Siesta/Support/Siesta-ObjC.swift:197:56: error: 'nil' requires a contextual type
195 | {
196 | case .success(let entity):
197 | objcCallback(_objc_Entity(entity), nil)
| `- error: 'nil' requires a contextual type
198 |
199 | case .failure(let error):
/host/spi-builder-workspace/Source/Siesta/Support/Siesta-ObjC.swift:280:52: error: cannot use optional chaining on non-optional value of type '(Resource) -> ()'
278 | {
279 | if let resource = resource
280 | { objcObserver.stoppedObservingResource?(resource) }
| `- error: cannot use optional chaining on non-optional value of type '(Resource) -> ()'
281 | }
282 |
/host/spi-builder-workspace/Source/Siesta/Support/Siesta-ObjC.swift:291:47: error: cannot use optional chaining on non-optional value of type '(Resource, Double) -> ()'
289 |
290 | func resourceRequestProgress(_ resource: Resource, progress: Double)
291 | { objcObserver.resourceRequestProgress?(resource, progress: progress) }
| `- error: cannot use optional chaining on non-optional value of type '(Resource, Double) -> ()'
292 |
293 | var observerIdentity: AnyHashable
/host/spi-builder-workspace/Source/Siesta/Support/Siesta-ObjC.swift:294:35: error: argument type 'any _objc_ResourceObserver' expected to be an instance of a class or class-constrained type
292 |
293 | var observerIdentity: AnyHashable
294 | { return ObjectIdentifier(objcObserver) }
| `- error: argument type 'any _objc_ResourceObserver' expected to be an instance of a class or class-constrained type
295 |
296 | var debugDescription: String
/host/spi-builder-workspace/Source/Siesta/Support/Siesta-ObjC.swift:368:38: error: cannot find type 'NSURLRequest' in scope
366 | private static func apply(requestMutation: (@convention(block) (NSMutableURLRequest) -> Void)?, to request: inout URLRequest)
367 | {
368 | let mutableReq = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
| `- error: cannot find type 'NSURLRequest' in scope
369 | requestMutation?(mutableReq)
370 | request = mutableReq as URLRequest
/host/spi-builder-workspace/Source/Siesta/Support/Siesta-ObjC.swift:368:70: error: cannot find type 'NSMutableURLRequest' in scope
366 | private static func apply(requestMutation: (@convention(block) (NSMutableURLRequest) -> Void)?, to request: inout URLRequest)
367 | {
368 | let mutableReq = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
| `- error: cannot find type 'NSMutableURLRequest' in scope
369 | requestMutation?(mutableReq)
370 | request = mutableReq as URLRequest
/host/spi-builder-workspace/Source/Siesta/Support/Siesta-ObjC.swift:370:33: error: cannot find type 'URLRequest' in scope
368 | let mutableReq = (request as NSURLRequest).mutableCopy() as! NSMutableURLRequest
369 | requestMutation?(mutableReq)
370 | request = mutableReq as URLRequest
| `- error: cannot find type 'URLRequest' in scope
371 | }
372 |
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:222:47: error: cannot find type 'URLRequest' in scope
220 | - SeeAlso: `Resource.request(...)`
221 | */
222 | public typealias RequestMutation = (inout URLRequest) -> Void
| `- error: cannot find type 'URLRequest' in scope
223 |
224 | /**
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:257:44: error: '@escaping' only applies to function types
255 | public func request(
256 | _ method: RequestMethod,
257 | requestMutation adHocMutation: @escaping RequestMutation = { _ in })
| `- error: '@escaping' only applies to function types
258 | -> Request
259 | {
/host/spi-builder-workspace/Source/Siesta/Request/RequestCreation.swift:30:30: error: '@escaping' only applies to function types
28 | data: Data,
29 | contentType: String,
30 | requestMutation: @escaping RequestMutation = { _ in })
| `- error: '@escaping' only applies to function types
31 | -> Request
32 | {
/host/spi-builder-workspace/Source/Siesta/Request/RequestCreation.swift:57:30: error: '@escaping' only applies to function types
55 | contentType: String = "text/plain",
56 | encoding: String.Encoding = String.Encoding.utf8,
57 | requestMutation: @escaping RequestMutation = { _ in })
| `- error: '@escaping' only applies to function types
58 | -> Request
59 | {
/host/spi-builder-workspace/Source/Siesta/Request/RequestCreation.swift:88:30: error: '@escaping' only applies to function types
86 | json: JSONConvertible,
87 | contentType: String = "application/json",
88 | requestMutation: @escaping RequestMutation = { _ in })
| `- error: '@escaping' only applies to function types
89 | -> Request
90 | {
/host/spi-builder-workspace/Source/Siesta/Request/RequestCreation.swift:127:32: error: '@escaping' only applies to function types
125 | _ method: RequestMethod,
126 | urlEncoded params: [String:String],
127 | requestMutation: @escaping RequestMutation = { _ in })
| `- error: '@escaping' only applies to function types
128 | -> Request
129 | {
[37/90] Compiling Siesta ResourceNavigation.swift
/host/spi-builder-workspace/Source/Siesta/Resource/ResourceNavigation.swift:34:6: error: Objective-C interoperability is disabled
32 | - SeeAlso: `relative(_:)`
33 | */
34 | @objc
| `- error: Objective-C interoperability is disabled
35 | public func child(_ subpath: String) -> Resource
36 | {
/host/spi-builder-workspace/Source/Siesta/Resource/ResourceNavigation.swift:52:6: error: Objective-C interoperability is disabled
50 | - `child(_:)`
51 | */
52 | @objc
| `- error: Objective-C interoperability is disabled
53 | public func relative(_ href: String) -> Resource
54 | {
/host/spi-builder-workspace/Source/Siesta/Resource/ResourceNavigation.swift:68:6: error: Objective-C interoperability is disabled
66 | }
67 | */
68 | @objc
| `- error: Objective-C interoperability is disabled
69 | public func optionalRelative(_ href: String?) -> Resource?
70 | {
/host/spi-builder-workspace/Source/Siesta/Resource/ResourceNavigation.swift:99:6: error: Objective-C interoperability is disabled
97 | - SeeAlso: `withParams(_:)`
98 | */
99 | @objc(withParam:value:)
| `- error: Objective-C interoperability is disabled
100 | public func withParam(_ name: String, _ value: String?) -> Resource
101 | {
/host/spi-builder-workspace/Source/Siesta/Resource/ResourceObserver.swift:240:6: error: Objective-C interoperability is disabled
238 | Removes all observers owned by the given object.
239 | */
240 | @objc(removeObserversOwnedBy:)
| `- error: Objective-C interoperability is disabled
241 | public func removeObservers(ownedBy owner: AnyObject?)
242 | {
/host/spi-builder-workspace/Source/Siesta/Resource/ResourceObserver.swift:307:13: error: cannot find 'DispatchQueue' in scope
305 | {
306 | defunctObserverCheckScheduled = true
307 | DispatchQueue.main.async
| `- error: cannot find 'DispatchQueue' in scope
308 | {
309 | self.defunctObserverCheckScheduled = false
/host/spi-builder-workspace/Source/Siesta/Service.swift:28:2: error: Objective-C interoperability is disabled
26 | If you want to feed your service arbitrary URLs with no common root, use `resource(absoluteURL:)`.
27 | */
28 | @objc(BOSService)
| `- error: Objective-C interoperability is disabled
29 | open class Service: NSObject
30 | {
/host/spi-builder-workspace/Source/Siesta/Service.swift:32:6: error: Objective-C interoperability is disabled
30 | {
31 | /// The root URL of the API. If nil, then `resource(_:)` will only accept absolute URLs.
32 | @objc
| `- error: Objective-C interoperability is disabled
33 | public let baseURL: URL?
34 |
/host/spi-builder-workspace/Source/Siesta/Networking.swift:34:24: error: cannot find type 'URLRequest' in scope
32 | */
33 | func startRequest(
34 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
35 | completion: @escaping RequestNetworkingCompletionCallback)
36 | -> RequestNetworking
/host/spi-builder-workspace/Source/Siesta/Service.swift:59:81: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
57 | baseURL: URLConvertible? = nil,
58 | standardTransformers: [StandardTransformer] = [.json, .text, .image],
59 | networking: NetworkingProviderConvertible = URLSessionConfiguration.ephemeral)
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
60 | {
61 | DispatchQueue.mainThreadPrecondition()
/host/spi-builder-workspace/Source/Siesta/Service.swift:97:6: error: Objective-C interoperability is disabled
95 | If you want to pass a relative URL to be resolved against `baseURL`, use `resource("/").relative(relativeURL)`.
96 | */
97 | @objc(resource:)
| `- error: Objective-C interoperability is disabled
98 | public final func resource(_ path: String) -> Resource
99 | {
/host/spi-builder-workspace/Source/Siesta/Service.swift:370:6: error: Objective-C interoperability is disabled
368 | over subsequent resource interactions.
369 | */
370 | @objc
| `- error: Objective-C interoperability is disabled
371 | public final func invalidateConfiguration()
372 | {
/host/spi-builder-workspace/Source/Siesta/Service.swift:416:6: error: Objective-C interoperability is disabled
414 | Applies to resources matching the predicate, or all resources by default.
415 | */
416 | @objc
| `- error: Objective-C interoperability is disabled
417 | public final func wipeResources(matching predicate: (Resource) -> Bool = { _ in true })
418 | {
/host/spi-builder-workspace/Source/Siesta/Service.swift:443:6: error: Objective-C interoperability is disabled
441 | Useful for making shared predicates that you can pass to both `configure(...)` and this method.
442 | */
443 | @objc
| `- error: Objective-C interoperability is disabled
444 | public final func wipeResources(withURLsMatching predicate: (URL) -> Bool)
445 | {
/host/spi-builder-workspace/Source/Siesta/Service.swift:456:6: error: Objective-C interoperability is disabled
454 | in the cache, no matter how many there are.
455 | */
456 | @objc
| `- error: Objective-C interoperability is disabled
457 | public var cachedResourceCountLimit: Int
458 | {
/host/spi-builder-workspace/Source/Siesta/Service.swift:476:6: error: Objective-C interoperability is disabled
474 | call it preemptively before a memory-intensive operation, to prevent memory churn.
475 | */
476 | @objc
| `- error: Objective-C interoperability is disabled
477 | public final func flushUnusedResources()
478 | {
/host/spi-builder-workspace/Source/Siesta/Service.swift:61:9: error: cannot find 'DispatchQueue' in scope
59 | networking: NetworkingProviderConvertible = URLSessionConfiguration.ephemeral)
60 | {
61 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
62 |
63 | self.baseURL = baseURL?.url?.alterPath
/host/spi-builder-workspace/Source/Siesta/Service.swift:133:9: error: cannot find 'DispatchQueue' in scope
131 | public final func resource(absoluteURL urlConvertible: URLConvertible?) -> Resource
132 | {
133 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
134 |
135 | // The remaineder of this method works just fine without this check, but
/host/spi-builder-workspace/Source/Siesta/Service.swift:240:9: error: cannot find 'DispatchQueue' in scope
238 | configurer: @escaping (inout Configuration) -> Void)
239 | {
240 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
241 |
242 | let entry = ConfigurationEntry(
/host/spi-builder-workspace/Source/Siesta/Service.swift:373:9: error: cannot find 'DispatchQueue' in scope
371 | public final func invalidateConfiguration()
372 | {
373 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
374 |
375 | if anyConfigSinceLastInvalidation
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:222:47: error: cannot find type 'URLRequest' in scope
220 | - SeeAlso: `Resource.request(...)`
221 | */
222 | public typealias RequestMutation = (inout URLRequest) -> Void
| `- error: cannot find type 'URLRequest' in scope
223 |
224 | /**
/host/spi-builder-workspace/Source/Siesta/Service.swift:419:9: error: cannot find 'DispatchQueue' in scope
417 | public final func wipeResources(matching predicate: (Resource) -> Bool = { _ in true })
418 | {
419 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
420 |
421 | resourceCache.flushUnused() // Little point in keeping Resource instance if we’re discarding its content
/host/spi-builder-workspace/Source/Siesta/Support/ARC+Siesta.swift:78:30: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
59 | after the referenced object has been deallocated, making it suitable for use as a Set member and a Dictionary key.
60 | */
61 | internal struct WeakRef<T: AnyObject>: Hashable
| `- note: 'T' previously declared here
62 | {
63 | private(set) weak var value: T?
:
76 | { hasher.combine(originalHash) }
77 |
78 | internal static func == <T>(lhs: WeakRef<T>, rhs: WeakRef<T>) -> Bool
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
79 | {
80 | return lhs.originalIdentity == rhs.originalIdentity
[38/90] Compiling Siesta ResourceObserver.swift
/host/spi-builder-workspace/Source/Siesta/Resource/ResourceNavigation.swift:34:6: error: Objective-C interoperability is disabled
32 | - SeeAlso: `relative(_:)`
33 | */
34 | @objc
| `- error: Objective-C interoperability is disabled
35 | public func child(_ subpath: String) -> Resource
36 | {
/host/spi-builder-workspace/Source/Siesta/Resource/ResourceNavigation.swift:52:6: error: Objective-C interoperability is disabled
50 | - `child(_:)`
51 | */
52 | @objc
| `- error: Objective-C interoperability is disabled
53 | public func relative(_ href: String) -> Resource
54 | {
/host/spi-builder-workspace/Source/Siesta/Resource/ResourceNavigation.swift:68:6: error: Objective-C interoperability is disabled
66 | }
67 | */
68 | @objc
| `- error: Objective-C interoperability is disabled
69 | public func optionalRelative(_ href: String?) -> Resource?
70 | {
/host/spi-builder-workspace/Source/Siesta/Resource/ResourceNavigation.swift:99:6: error: Objective-C interoperability is disabled
97 | - SeeAlso: `withParams(_:)`
98 | */
99 | @objc(withParam:value:)
| `- error: Objective-C interoperability is disabled
100 | public func withParam(_ name: String, _ value: String?) -> Resource
101 | {
/host/spi-builder-workspace/Source/Siesta/Resource/ResourceObserver.swift:240:6: error: Objective-C interoperability is disabled
238 | Removes all observers owned by the given object.
239 | */
240 | @objc(removeObserversOwnedBy:)
| `- error: Objective-C interoperability is disabled
241 | public func removeObservers(ownedBy owner: AnyObject?)
242 | {
/host/spi-builder-workspace/Source/Siesta/Resource/ResourceObserver.swift:307:13: error: cannot find 'DispatchQueue' in scope
305 | {
306 | defunctObserverCheckScheduled = true
307 | DispatchQueue.main.async
| `- error: cannot find 'DispatchQueue' in scope
308 | {
309 | self.defunctObserverCheckScheduled = false
/host/spi-builder-workspace/Source/Siesta/Service.swift:28:2: error: Objective-C interoperability is disabled
26 | If you want to feed your service arbitrary URLs with no common root, use `resource(absoluteURL:)`.
27 | */
28 | @objc(BOSService)
| `- error: Objective-C interoperability is disabled
29 | open class Service: NSObject
30 | {
/host/spi-builder-workspace/Source/Siesta/Service.swift:32:6: error: Objective-C interoperability is disabled
30 | {
31 | /// The root URL of the API. If nil, then `resource(_:)` will only accept absolute URLs.
32 | @objc
| `- error: Objective-C interoperability is disabled
33 | public let baseURL: URL?
34 |
/host/spi-builder-workspace/Source/Siesta/Networking.swift:34:24: error: cannot find type 'URLRequest' in scope
32 | */
33 | func startRequest(
34 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
35 | completion: @escaping RequestNetworkingCompletionCallback)
36 | -> RequestNetworking
/host/spi-builder-workspace/Source/Siesta/Service.swift:59:81: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
57 | baseURL: URLConvertible? = nil,
58 | standardTransformers: [StandardTransformer] = [.json, .text, .image],
59 | networking: NetworkingProviderConvertible = URLSessionConfiguration.ephemeral)
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
60 | {
61 | DispatchQueue.mainThreadPrecondition()
/host/spi-builder-workspace/Source/Siesta/Service.swift:97:6: error: Objective-C interoperability is disabled
95 | If you want to pass a relative URL to be resolved against `baseURL`, use `resource("/").relative(relativeURL)`.
96 | */
97 | @objc(resource:)
| `- error: Objective-C interoperability is disabled
98 | public final func resource(_ path: String) -> Resource
99 | {
/host/spi-builder-workspace/Source/Siesta/Service.swift:370:6: error: Objective-C interoperability is disabled
368 | over subsequent resource interactions.
369 | */
370 | @objc
| `- error: Objective-C interoperability is disabled
371 | public final func invalidateConfiguration()
372 | {
/host/spi-builder-workspace/Source/Siesta/Service.swift:416:6: error: Objective-C interoperability is disabled
414 | Applies to resources matching the predicate, or all resources by default.
415 | */
416 | @objc
| `- error: Objective-C interoperability is disabled
417 | public final func wipeResources(matching predicate: (Resource) -> Bool = { _ in true })
418 | {
/host/spi-builder-workspace/Source/Siesta/Service.swift:443:6: error: Objective-C interoperability is disabled
441 | Useful for making shared predicates that you can pass to both `configure(...)` and this method.
442 | */
443 | @objc
| `- error: Objective-C interoperability is disabled
444 | public final func wipeResources(withURLsMatching predicate: (URL) -> Bool)
445 | {
/host/spi-builder-workspace/Source/Siesta/Service.swift:456:6: error: Objective-C interoperability is disabled
454 | in the cache, no matter how many there are.
455 | */
456 | @objc
| `- error: Objective-C interoperability is disabled
457 | public var cachedResourceCountLimit: Int
458 | {
/host/spi-builder-workspace/Source/Siesta/Service.swift:476:6: error: Objective-C interoperability is disabled
474 | call it preemptively before a memory-intensive operation, to prevent memory churn.
475 | */
476 | @objc
| `- error: Objective-C interoperability is disabled
477 | public final func flushUnusedResources()
478 | {
/host/spi-builder-workspace/Source/Siesta/Service.swift:61:9: error: cannot find 'DispatchQueue' in scope
59 | networking: NetworkingProviderConvertible = URLSessionConfiguration.ephemeral)
60 | {
61 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
62 |
63 | self.baseURL = baseURL?.url?.alterPath
/host/spi-builder-workspace/Source/Siesta/Service.swift:133:9: error: cannot find 'DispatchQueue' in scope
131 | public final func resource(absoluteURL urlConvertible: URLConvertible?) -> Resource
132 | {
133 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
134 |
135 | // The remaineder of this method works just fine without this check, but
/host/spi-builder-workspace/Source/Siesta/Service.swift:240:9: error: cannot find 'DispatchQueue' in scope
238 | configurer: @escaping (inout Configuration) -> Void)
239 | {
240 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
241 |
242 | let entry = ConfigurationEntry(
/host/spi-builder-workspace/Source/Siesta/Service.swift:373:9: error: cannot find 'DispatchQueue' in scope
371 | public final func invalidateConfiguration()
372 | {
373 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
374 |
375 | if anyConfigSinceLastInvalidation
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:222:47: error: cannot find type 'URLRequest' in scope
220 | - SeeAlso: `Resource.request(...)`
221 | */
222 | public typealias RequestMutation = (inout URLRequest) -> Void
| `- error: cannot find type 'URLRequest' in scope
223 |
224 | /**
/host/spi-builder-workspace/Source/Siesta/Service.swift:419:9: error: cannot find 'DispatchQueue' in scope
417 | public final func wipeResources(matching predicate: (Resource) -> Bool = { _ in true })
418 | {
419 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
420 |
421 | resourceCache.flushUnused() // Little point in keeping Resource instance if we’re discarding its content
/host/spi-builder-workspace/Source/Siesta/Support/ARC+Siesta.swift:78:30: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
59 | after the referenced object has been deallocated, making it suitable for use as a Set member and a Dictionary key.
60 | */
61 | internal struct WeakRef<T: AnyObject>: Hashable
| `- note: 'T' previously declared here
62 | {
63 | private(set) weak var value: T?
:
76 | { hasher.combine(originalHash) }
77 |
78 | internal static func == <T>(lhs: WeakRef<T>, rhs: WeakRef<T>) -> Bool
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
79 | {
80 | return lhs.originalIdentity == rhs.originalIdentity
[39/90] Compiling Siesta Service.swift
/host/spi-builder-workspace/Source/Siesta/Resource/ResourceNavigation.swift:34:6: error: Objective-C interoperability is disabled
32 | - SeeAlso: `relative(_:)`
33 | */
34 | @objc
| `- error: Objective-C interoperability is disabled
35 | public func child(_ subpath: String) -> Resource
36 | {
/host/spi-builder-workspace/Source/Siesta/Resource/ResourceNavigation.swift:52:6: error: Objective-C interoperability is disabled
50 | - `child(_:)`
51 | */
52 | @objc
| `- error: Objective-C interoperability is disabled
53 | public func relative(_ href: String) -> Resource
54 | {
/host/spi-builder-workspace/Source/Siesta/Resource/ResourceNavigation.swift:68:6: error: Objective-C interoperability is disabled
66 | }
67 | */
68 | @objc
| `- error: Objective-C interoperability is disabled
69 | public func optionalRelative(_ href: String?) -> Resource?
70 | {
/host/spi-builder-workspace/Source/Siesta/Resource/ResourceNavigation.swift:99:6: error: Objective-C interoperability is disabled
97 | - SeeAlso: `withParams(_:)`
98 | */
99 | @objc(withParam:value:)
| `- error: Objective-C interoperability is disabled
100 | public func withParam(_ name: String, _ value: String?) -> Resource
101 | {
/host/spi-builder-workspace/Source/Siesta/Resource/ResourceObserver.swift:240:6: error: Objective-C interoperability is disabled
238 | Removes all observers owned by the given object.
239 | */
240 | @objc(removeObserversOwnedBy:)
| `- error: Objective-C interoperability is disabled
241 | public func removeObservers(ownedBy owner: AnyObject?)
242 | {
/host/spi-builder-workspace/Source/Siesta/Resource/ResourceObserver.swift:307:13: error: cannot find 'DispatchQueue' in scope
305 | {
306 | defunctObserverCheckScheduled = true
307 | DispatchQueue.main.async
| `- error: cannot find 'DispatchQueue' in scope
308 | {
309 | self.defunctObserverCheckScheduled = false
/host/spi-builder-workspace/Source/Siesta/Service.swift:28:2: error: Objective-C interoperability is disabled
26 | If you want to feed your service arbitrary URLs with no common root, use `resource(absoluteURL:)`.
27 | */
28 | @objc(BOSService)
| `- error: Objective-C interoperability is disabled
29 | open class Service: NSObject
30 | {
/host/spi-builder-workspace/Source/Siesta/Service.swift:32:6: error: Objective-C interoperability is disabled
30 | {
31 | /// The root URL of the API. If nil, then `resource(_:)` will only accept absolute URLs.
32 | @objc
| `- error: Objective-C interoperability is disabled
33 | public let baseURL: URL?
34 |
/host/spi-builder-workspace/Source/Siesta/Networking.swift:34:24: error: cannot find type 'URLRequest' in scope
32 | */
33 | func startRequest(
34 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
35 | completion: @escaping RequestNetworkingCompletionCallback)
36 | -> RequestNetworking
/host/spi-builder-workspace/Source/Siesta/Service.swift:59:81: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
57 | baseURL: URLConvertible? = nil,
58 | standardTransformers: [StandardTransformer] = [.json, .text, .image],
59 | networking: NetworkingProviderConvertible = URLSessionConfiguration.ephemeral)
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
60 | {
61 | DispatchQueue.mainThreadPrecondition()
/host/spi-builder-workspace/Source/Siesta/Service.swift:97:6: error: Objective-C interoperability is disabled
95 | If you want to pass a relative URL to be resolved against `baseURL`, use `resource("/").relative(relativeURL)`.
96 | */
97 | @objc(resource:)
| `- error: Objective-C interoperability is disabled
98 | public final func resource(_ path: String) -> Resource
99 | {
/host/spi-builder-workspace/Source/Siesta/Service.swift:370:6: error: Objective-C interoperability is disabled
368 | over subsequent resource interactions.
369 | */
370 | @objc
| `- error: Objective-C interoperability is disabled
371 | public final func invalidateConfiguration()
372 | {
/host/spi-builder-workspace/Source/Siesta/Service.swift:416:6: error: Objective-C interoperability is disabled
414 | Applies to resources matching the predicate, or all resources by default.
415 | */
416 | @objc
| `- error: Objective-C interoperability is disabled
417 | public final func wipeResources(matching predicate: (Resource) -> Bool = { _ in true })
418 | {
/host/spi-builder-workspace/Source/Siesta/Service.swift:443:6: error: Objective-C interoperability is disabled
441 | Useful for making shared predicates that you can pass to both `configure(...)` and this method.
442 | */
443 | @objc
| `- error: Objective-C interoperability is disabled
444 | public final func wipeResources(withURLsMatching predicate: (URL) -> Bool)
445 | {
/host/spi-builder-workspace/Source/Siesta/Service.swift:456:6: error: Objective-C interoperability is disabled
454 | in the cache, no matter how many there are.
455 | */
456 | @objc
| `- error: Objective-C interoperability is disabled
457 | public var cachedResourceCountLimit: Int
458 | {
/host/spi-builder-workspace/Source/Siesta/Service.swift:476:6: error: Objective-C interoperability is disabled
474 | call it preemptively before a memory-intensive operation, to prevent memory churn.
475 | */
476 | @objc
| `- error: Objective-C interoperability is disabled
477 | public final func flushUnusedResources()
478 | {
/host/spi-builder-workspace/Source/Siesta/Service.swift:61:9: error: cannot find 'DispatchQueue' in scope
59 | networking: NetworkingProviderConvertible = URLSessionConfiguration.ephemeral)
60 | {
61 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
62 |
63 | self.baseURL = baseURL?.url?.alterPath
/host/spi-builder-workspace/Source/Siesta/Service.swift:133:9: error: cannot find 'DispatchQueue' in scope
131 | public final func resource(absoluteURL urlConvertible: URLConvertible?) -> Resource
132 | {
133 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
134 |
135 | // The remaineder of this method works just fine without this check, but
/host/spi-builder-workspace/Source/Siesta/Service.swift:240:9: error: cannot find 'DispatchQueue' in scope
238 | configurer: @escaping (inout Configuration) -> Void)
239 | {
240 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
241 |
242 | let entry = ConfigurationEntry(
/host/spi-builder-workspace/Source/Siesta/Service.swift:373:9: error: cannot find 'DispatchQueue' in scope
371 | public final func invalidateConfiguration()
372 | {
373 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
374 |
375 | if anyConfigSinceLastInvalidation
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:222:47: error: cannot find type 'URLRequest' in scope
220 | - SeeAlso: `Resource.request(...)`
221 | */
222 | public typealias RequestMutation = (inout URLRequest) -> Void
| `- error: cannot find type 'URLRequest' in scope
223 |
224 | /**
/host/spi-builder-workspace/Source/Siesta/Service.swift:419:9: error: cannot find 'DispatchQueue' in scope
417 | public final func wipeResources(matching predicate: (Resource) -> Bool = { _ in true })
418 | {
419 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
420 |
421 | resourceCache.flushUnused() // Little point in keeping Resource instance if we’re discarding its content
/host/spi-builder-workspace/Source/Siesta/Support/ARC+Siesta.swift:78:30: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
59 | after the referenced object has been deallocated, making it suitable for use as a Set member and a Dictionary key.
60 | */
61 | internal struct WeakRef<T: AnyObject>: Hashable
| `- note: 'T' previously declared here
62 | {
63 | private(set) weak var value: T?
:
76 | { hasher.combine(originalHash) }
77 |
78 | internal static func == <T>(lhs: WeakRef<T>, rhs: WeakRef<T>) -> Bool
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
79 | {
80 | return lhs.originalIdentity == rhs.originalIdentity
[40/90] Compiling Siesta ARC+Siesta.swift
/host/spi-builder-workspace/Source/Siesta/Resource/ResourceNavigation.swift:34:6: error: Objective-C interoperability is disabled
32 | - SeeAlso: `relative(_:)`
33 | */
34 | @objc
| `- error: Objective-C interoperability is disabled
35 | public func child(_ subpath: String) -> Resource
36 | {
/host/spi-builder-workspace/Source/Siesta/Resource/ResourceNavigation.swift:52:6: error: Objective-C interoperability is disabled
50 | - `child(_:)`
51 | */
52 | @objc
| `- error: Objective-C interoperability is disabled
53 | public func relative(_ href: String) -> Resource
54 | {
/host/spi-builder-workspace/Source/Siesta/Resource/ResourceNavigation.swift:68:6: error: Objective-C interoperability is disabled
66 | }
67 | */
68 | @objc
| `- error: Objective-C interoperability is disabled
69 | public func optionalRelative(_ href: String?) -> Resource?
70 | {
/host/spi-builder-workspace/Source/Siesta/Resource/ResourceNavigation.swift:99:6: error: Objective-C interoperability is disabled
97 | - SeeAlso: `withParams(_:)`
98 | */
99 | @objc(withParam:value:)
| `- error: Objective-C interoperability is disabled
100 | public func withParam(_ name: String, _ value: String?) -> Resource
101 | {
/host/spi-builder-workspace/Source/Siesta/Resource/ResourceObserver.swift:240:6: error: Objective-C interoperability is disabled
238 | Removes all observers owned by the given object.
239 | */
240 | @objc(removeObserversOwnedBy:)
| `- error: Objective-C interoperability is disabled
241 | public func removeObservers(ownedBy owner: AnyObject?)
242 | {
/host/spi-builder-workspace/Source/Siesta/Resource/ResourceObserver.swift:307:13: error: cannot find 'DispatchQueue' in scope
305 | {
306 | defunctObserverCheckScheduled = true
307 | DispatchQueue.main.async
| `- error: cannot find 'DispatchQueue' in scope
308 | {
309 | self.defunctObserverCheckScheduled = false
/host/spi-builder-workspace/Source/Siesta/Service.swift:28:2: error: Objective-C interoperability is disabled
26 | If you want to feed your service arbitrary URLs with no common root, use `resource(absoluteURL:)`.
27 | */
28 | @objc(BOSService)
| `- error: Objective-C interoperability is disabled
29 | open class Service: NSObject
30 | {
/host/spi-builder-workspace/Source/Siesta/Service.swift:32:6: error: Objective-C interoperability is disabled
30 | {
31 | /// The root URL of the API. If nil, then `resource(_:)` will only accept absolute URLs.
32 | @objc
| `- error: Objective-C interoperability is disabled
33 | public let baseURL: URL?
34 |
/host/spi-builder-workspace/Source/Siesta/Networking.swift:34:24: error: cannot find type 'URLRequest' in scope
32 | */
33 | func startRequest(
34 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
35 | completion: @escaping RequestNetworkingCompletionCallback)
36 | -> RequestNetworking
/host/spi-builder-workspace/Source/Siesta/Service.swift:59:81: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
57 | baseURL: URLConvertible? = nil,
58 | standardTransformers: [StandardTransformer] = [.json, .text, .image],
59 | networking: NetworkingProviderConvertible = URLSessionConfiguration.ephemeral)
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
60 | {
61 | DispatchQueue.mainThreadPrecondition()
/host/spi-builder-workspace/Source/Siesta/Service.swift:97:6: error: Objective-C interoperability is disabled
95 | If you want to pass a relative URL to be resolved against `baseURL`, use `resource("/").relative(relativeURL)`.
96 | */
97 | @objc(resource:)
| `- error: Objective-C interoperability is disabled
98 | public final func resource(_ path: String) -> Resource
99 | {
/host/spi-builder-workspace/Source/Siesta/Service.swift:370:6: error: Objective-C interoperability is disabled
368 | over subsequent resource interactions.
369 | */
370 | @objc
| `- error: Objective-C interoperability is disabled
371 | public final func invalidateConfiguration()
372 | {
/host/spi-builder-workspace/Source/Siesta/Service.swift:416:6: error: Objective-C interoperability is disabled
414 | Applies to resources matching the predicate, or all resources by default.
415 | */
416 | @objc
| `- error: Objective-C interoperability is disabled
417 | public final func wipeResources(matching predicate: (Resource) -> Bool = { _ in true })
418 | {
/host/spi-builder-workspace/Source/Siesta/Service.swift:443:6: error: Objective-C interoperability is disabled
441 | Useful for making shared predicates that you can pass to both `configure(...)` and this method.
442 | */
443 | @objc
| `- error: Objective-C interoperability is disabled
444 | public final func wipeResources(withURLsMatching predicate: (URL) -> Bool)
445 | {
/host/spi-builder-workspace/Source/Siesta/Service.swift:456:6: error: Objective-C interoperability is disabled
454 | in the cache, no matter how many there are.
455 | */
456 | @objc
| `- error: Objective-C interoperability is disabled
457 | public var cachedResourceCountLimit: Int
458 | {
/host/spi-builder-workspace/Source/Siesta/Service.swift:476:6: error: Objective-C interoperability is disabled
474 | call it preemptively before a memory-intensive operation, to prevent memory churn.
475 | */
476 | @objc
| `- error: Objective-C interoperability is disabled
477 | public final func flushUnusedResources()
478 | {
/host/spi-builder-workspace/Source/Siesta/Service.swift:61:9: error: cannot find 'DispatchQueue' in scope
59 | networking: NetworkingProviderConvertible = URLSessionConfiguration.ephemeral)
60 | {
61 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
62 |
63 | self.baseURL = baseURL?.url?.alterPath
/host/spi-builder-workspace/Source/Siesta/Service.swift:133:9: error: cannot find 'DispatchQueue' in scope
131 | public final func resource(absoluteURL urlConvertible: URLConvertible?) -> Resource
132 | {
133 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
134 |
135 | // The remaineder of this method works just fine without this check, but
/host/spi-builder-workspace/Source/Siesta/Service.swift:240:9: error: cannot find 'DispatchQueue' in scope
238 | configurer: @escaping (inout Configuration) -> Void)
239 | {
240 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
241 |
242 | let entry = ConfigurationEntry(
/host/spi-builder-workspace/Source/Siesta/Service.swift:373:9: error: cannot find 'DispatchQueue' in scope
371 | public final func invalidateConfiguration()
372 | {
373 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
374 |
375 | if anyConfigSinceLastInvalidation
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:222:47: error: cannot find type 'URLRequest' in scope
220 | - SeeAlso: `Resource.request(...)`
221 | */
222 | public typealias RequestMutation = (inout URLRequest) -> Void
| `- error: cannot find type 'URLRequest' in scope
223 |
224 | /**
/host/spi-builder-workspace/Source/Siesta/Service.swift:419:9: error: cannot find 'DispatchQueue' in scope
417 | public final func wipeResources(matching predicate: (Resource) -> Bool = { _ in true })
418 | {
419 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
420 |
421 | resourceCache.flushUnused() // Little point in keeping Resource instance if we’re discarding its content
/host/spi-builder-workspace/Source/Siesta/Support/ARC+Siesta.swift:78:30: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
59 | after the referenced object has been deallocated, making it suitable for use as a Set member and a Dictionary key.
60 | */
61 | internal struct WeakRef<T: AnyObject>: Hashable
| `- note: 'T' previously declared here
62 | {
63 | private(set) weak var value: T?
:
76 | { hasher.combine(originalHash) }
77 |
78 | internal static func == <T>(lhs: WeakRef<T>, rhs: WeakRef<T>) -> Bool
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
79 | {
80 | return lhs.originalIdentity == rhs.originalIdentity
[41/90] Compiling Siesta Collection+Siesta.swift
/host/spi-builder-workspace/Source/Siesta/Resource/ResourceNavigation.swift:34:6: error: Objective-C interoperability is disabled
32 | - SeeAlso: `relative(_:)`
33 | */
34 | @objc
| `- error: Objective-C interoperability is disabled
35 | public func child(_ subpath: String) -> Resource
36 | {
/host/spi-builder-workspace/Source/Siesta/Resource/ResourceNavigation.swift:52:6: error: Objective-C interoperability is disabled
50 | - `child(_:)`
51 | */
52 | @objc
| `- error: Objective-C interoperability is disabled
53 | public func relative(_ href: String) -> Resource
54 | {
/host/spi-builder-workspace/Source/Siesta/Resource/ResourceNavigation.swift:68:6: error: Objective-C interoperability is disabled
66 | }
67 | */
68 | @objc
| `- error: Objective-C interoperability is disabled
69 | public func optionalRelative(_ href: String?) -> Resource?
70 | {
/host/spi-builder-workspace/Source/Siesta/Resource/ResourceNavigation.swift:99:6: error: Objective-C interoperability is disabled
97 | - SeeAlso: `withParams(_:)`
98 | */
99 | @objc(withParam:value:)
| `- error: Objective-C interoperability is disabled
100 | public func withParam(_ name: String, _ value: String?) -> Resource
101 | {
/host/spi-builder-workspace/Source/Siesta/Resource/ResourceObserver.swift:240:6: error: Objective-C interoperability is disabled
238 | Removes all observers owned by the given object.
239 | */
240 | @objc(removeObserversOwnedBy:)
| `- error: Objective-C interoperability is disabled
241 | public func removeObservers(ownedBy owner: AnyObject?)
242 | {
/host/spi-builder-workspace/Source/Siesta/Resource/ResourceObserver.swift:307:13: error: cannot find 'DispatchQueue' in scope
305 | {
306 | defunctObserverCheckScheduled = true
307 | DispatchQueue.main.async
| `- error: cannot find 'DispatchQueue' in scope
308 | {
309 | self.defunctObserverCheckScheduled = false
/host/spi-builder-workspace/Source/Siesta/Service.swift:28:2: error: Objective-C interoperability is disabled
26 | If you want to feed your service arbitrary URLs with no common root, use `resource(absoluteURL:)`.
27 | */
28 | @objc(BOSService)
| `- error: Objective-C interoperability is disabled
29 | open class Service: NSObject
30 | {
/host/spi-builder-workspace/Source/Siesta/Service.swift:32:6: error: Objective-C interoperability is disabled
30 | {
31 | /// The root URL of the API. If nil, then `resource(_:)` will only accept absolute URLs.
32 | @objc
| `- error: Objective-C interoperability is disabled
33 | public let baseURL: URL?
34 |
/host/spi-builder-workspace/Source/Siesta/Networking.swift:34:24: error: cannot find type 'URLRequest' in scope
32 | */
33 | func startRequest(
34 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
35 | completion: @escaping RequestNetworkingCompletionCallback)
36 | -> RequestNetworking
/host/spi-builder-workspace/Source/Siesta/Service.swift:59:81: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
57 | baseURL: URLConvertible? = nil,
58 | standardTransformers: [StandardTransformer] = [.json, .text, .image],
59 | networking: NetworkingProviderConvertible = URLSessionConfiguration.ephemeral)
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
60 | {
61 | DispatchQueue.mainThreadPrecondition()
/host/spi-builder-workspace/Source/Siesta/Service.swift:97:6: error: Objective-C interoperability is disabled
95 | If you want to pass a relative URL to be resolved against `baseURL`, use `resource("/").relative(relativeURL)`.
96 | */
97 | @objc(resource:)
| `- error: Objective-C interoperability is disabled
98 | public final func resource(_ path: String) -> Resource
99 | {
/host/spi-builder-workspace/Source/Siesta/Service.swift:370:6: error: Objective-C interoperability is disabled
368 | over subsequent resource interactions.
369 | */
370 | @objc
| `- error: Objective-C interoperability is disabled
371 | public final func invalidateConfiguration()
372 | {
/host/spi-builder-workspace/Source/Siesta/Service.swift:416:6: error: Objective-C interoperability is disabled
414 | Applies to resources matching the predicate, or all resources by default.
415 | */
416 | @objc
| `- error: Objective-C interoperability is disabled
417 | public final func wipeResources(matching predicate: (Resource) -> Bool = { _ in true })
418 | {
/host/spi-builder-workspace/Source/Siesta/Service.swift:443:6: error: Objective-C interoperability is disabled
441 | Useful for making shared predicates that you can pass to both `configure(...)` and this method.
442 | */
443 | @objc
| `- error: Objective-C interoperability is disabled
444 | public final func wipeResources(withURLsMatching predicate: (URL) -> Bool)
445 | {
/host/spi-builder-workspace/Source/Siesta/Service.swift:456:6: error: Objective-C interoperability is disabled
454 | in the cache, no matter how many there are.
455 | */
456 | @objc
| `- error: Objective-C interoperability is disabled
457 | public var cachedResourceCountLimit: Int
458 | {
/host/spi-builder-workspace/Source/Siesta/Service.swift:476:6: error: Objective-C interoperability is disabled
474 | call it preemptively before a memory-intensive operation, to prevent memory churn.
475 | */
476 | @objc
| `- error: Objective-C interoperability is disabled
477 | public final func flushUnusedResources()
478 | {
/host/spi-builder-workspace/Source/Siesta/Service.swift:61:9: error: cannot find 'DispatchQueue' in scope
59 | networking: NetworkingProviderConvertible = URLSessionConfiguration.ephemeral)
60 | {
61 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
62 |
63 | self.baseURL = baseURL?.url?.alterPath
/host/spi-builder-workspace/Source/Siesta/Service.swift:133:9: error: cannot find 'DispatchQueue' in scope
131 | public final func resource(absoluteURL urlConvertible: URLConvertible?) -> Resource
132 | {
133 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
134 |
135 | // The remaineder of this method works just fine without this check, but
/host/spi-builder-workspace/Source/Siesta/Service.swift:240:9: error: cannot find 'DispatchQueue' in scope
238 | configurer: @escaping (inout Configuration) -> Void)
239 | {
240 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
241 |
242 | let entry = ConfigurationEntry(
/host/spi-builder-workspace/Source/Siesta/Service.swift:373:9: error: cannot find 'DispatchQueue' in scope
371 | public final func invalidateConfiguration()
372 | {
373 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
374 |
375 | if anyConfigSinceLastInvalidation
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:222:47: error: cannot find type 'URLRequest' in scope
220 | - SeeAlso: `Resource.request(...)`
221 | */
222 | public typealias RequestMutation = (inout URLRequest) -> Void
| `- error: cannot find type 'URLRequest' in scope
223 |
224 | /**
/host/spi-builder-workspace/Source/Siesta/Service.swift:419:9: error: cannot find 'DispatchQueue' in scope
417 | public final func wipeResources(matching predicate: (Resource) -> Bool = { _ in true })
418 | {
419 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
420 |
421 | resourceCache.flushUnused() // Little point in keeping Resource instance if we’re discarding its content
/host/spi-builder-workspace/Source/Siesta/Support/ARC+Siesta.swift:78:30: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
59 | after the referenced object has been deallocated, making it suitable for use as a Set member and a Dictionary key.
60 | */
61 | internal struct WeakRef<T: AnyObject>: Hashable
| `- note: 'T' previously declared here
62 | {
63 | private(set) weak var value: T?
:
76 | { hasher.combine(originalHash) }
77 |
78 | internal static func == <T>(lhs: WeakRef<T>, rhs: WeakRef<T>) -> Bool
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
79 | {
80 | return lhs.originalIdentity == rhs.originalIdentity
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Alamofire.swift:25:8: error: no such module 'Dispatch'
23 | //
24 |
25 | import Dispatch
| `- error: no such module 'Dispatch'
26 | import Foundation
27 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Alamofire.swift:25:8: error: no such module 'Dispatch'
23 | //
24 |
25 | import Dispatch
| `- error: no such module 'Dispatch'
26 | import Foundation
27 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Alamofire.swift:25:8: error: no such module 'Dispatch'
23 | //
24 |
25 | import Dispatch
| `- error: no such module 'Dispatch'
26 | import Foundation
27 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Alamofire.swift:25:8: error: no such module 'Dispatch'
23 | //
24 |
25 | import Dispatch
| `- error: no such module 'Dispatch'
26 | import Foundation
27 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Alamofire.swift:25:8: error: no such module 'Dispatch'
23 | //
24 |
25 | import Dispatch
| `- error: no such module 'Dispatch'
26 | import Foundation
27 | #if canImport(FoundationNetworking)
[47/90] Compiling Siesta PipelineConfiguration.swift
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Alamofire.swift:25:8: error: no such module 'Dispatch'
23 | //
24 |
25 | import Dispatch
| `- error: no such module 'Dispatch'
26 | import Foundation
27 | #if canImport(FoundationNetworking)
[48/90] Compiling Siesta PipelineProcessing.swift
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Alamofire.swift:25:8: error: no such module 'Dispatch'
23 | //
24 |
25 | import Dispatch
| `- error: no such module 'Dispatch'
26 | import Foundation
27 | #if canImport(FoundationNetworking)
[49/90] Compiling Siesta ResponseTransformer.swift
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Alamofire.swift:25:8: error: no such module 'Dispatch'
23 | //
24 |
25 | import Dispatch
| `- error: no such module 'Dispatch'
26 | import Foundation
27 | #if canImport(FoundationNetworking)
[50/90] Compiling Siesta StandardTransformers.swift
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Alamofire.swift:25:8: error: no such module 'Dispatch'
23 | //
24 |
25 | import Dispatch
| `- error: no such module 'Dispatch'
26 | import Foundation
27 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Alamofire.swift:25:8: error: no such module 'Dispatch'
23 | //
24 |
25 | import Dispatch
| `- error: no such module 'Dispatch'
26 | import Foundation
27 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Alamofire.swift:25:8: error: no such module 'Dispatch'
23 | //
24 |
25 | import Dispatch
| `- error: no such module 'Dispatch'
26 | import Foundation
27 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Alamofire.swift:25:8: error: no such module 'Dispatch'
23 | //
24 |
25 | import Dispatch
| `- error: no such module 'Dispatch'
26 | import Foundation
27 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Alamofire.swift:25:8: error: no such module 'Dispatch'
23 | //
24 |
25 | import Dispatch
| `- error: no such module 'Dispatch'
26 | import Foundation
27 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Alamofire.swift:25:8: error: no such module 'Dispatch'
23 | //
24 |
25 | import Dispatch
| `- error: no such module 'Dispatch'
26 | import Foundation
27 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Alamofire.swift:25:8: error: no such module 'Dispatch'
23 | //
24 |
25 | import Dispatch
| `- error: no such module 'Dispatch'
26 | import Foundation
27 | #if canImport(FoundationNetworking)
[57/90] Compiling Siesta Networking.swift
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Alamofire.swift:25:8: error: no such module 'Dispatch'
23 | //
24 |
25 | import Dispatch
| `- error: no such module 'Dispatch'
26 | import Foundation
27 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Source/Siesta/Networking.swift:34:24: error: cannot find type 'URLRequest' in scope
32 | */
33 | func startRequest(
34 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
35 | completion: @escaping RequestNetworkingCompletionCallback)
36 | -> RequestNetworking
/host/spi-builder-workspace/Source/Siesta/Networking.swift:91:57: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 |
90 | /// Used by a `NetworkingProvider` implementation to pass the result of a network request back to Siesta.
91 | public typealias RequestNetworkingCompletionCallback = (HTTPURLResponse?, Data?, Error?) -> Void
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 |
93 | /**
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/Source/Siesta/Pipeline/PipelineProcessing.swift:117:17: error: cannot find 'DispatchQueue' in scope
115 | }
116 |
117 | DispatchQueue.main.async
| `- error: cannot find 'DispatchQueue' in scope
118 | {
119 | completionHandler.broadcastResponse(ResponseInfo(response: response))
/host/spi-builder-workspace/Source/Siesta/EntityCache.swift:110:43: error: cannot find type 'DispatchQueue' in scope
108 | }
109 |
110 | internal var defaultEntityCacheWorkQueue: DispatchQueue =
| `- error: cannot find type 'DispatchQueue' in scope
111 | DispatchQueue.global(qos: DispatchQoS.QoSClass.userInitiated)
112 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineProcessing.swift:191:9: error: cannot find 'DispatchQueue' in scope
189 | init?(cache: Cache, resource: Resource)
190 | {
191 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
192 |
193 | guard let key = cache.key(for: resource) else
/host/spi-builder-workspace/Source/Siesta/EntityCache.swift:107:20: error: cannot find type 'DispatchQueue' in scope
105 | Returns the GCD queue on which this cache implementation will do its work.
106 | */
107 | var workQueue: DispatchQueue { get }
| `- error: cannot find type 'DispatchQueue' in scope
108 | }
109 |
/host/spi-builder-workspace/Source/Siesta/EntityCache.swift:116:27: error: cannot find type 'DispatchQueue' in scope
114 | {
115 | /// Returns a concurrent queue with priority `QOS_CLASS_USER_INITIATED`.
116 | public var workQueue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
117 | { return defaultEntityCacheWorkQueue }
118 | }
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:279:26: error: cannot find 'CFStringConvertEncodingToNSStringEncoding' in scope
277 | {
278 | let charsetName = $0.charset ?? "ISO-8859-1"
279 | let encodingID = CFStringConvertEncodingToNSStringEncoding(
| `- error: cannot find 'CFStringConvertEncodingToNSStringEncoding' in scope
280 | CFStringConvertIANACharSetNameToEncoding(charsetName as CFString))
281 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:280:13: error: cannot find 'CFStringConvertIANACharSetNameToEncoding' in scope
278 | let charsetName = $0.charset ?? "ISO-8859-1"
279 | let encodingID = CFStringConvertEncodingToNSStringEncoding(
280 | CFStringConvertIANACharSetNameToEncoding(charsetName as CFString))
| `- error: cannot find 'CFStringConvertIANACharSetNameToEncoding' in scope
281 |
282 | guard encodingID != UInt(kCFStringEncodingInvalidId) else
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:282:34: error: cannot find 'kCFStringEncodingInvalidId' in scope
280 | CFStringConvertIANACharSetNameToEncoding(charsetName as CFString))
281 |
282 | guard encodingID != UInt(kCFStringEncodingInvalidId) else
| `- error: cannot find 'kCFStringEncodingInvalidId' in scope
283 | { throw RequestError.Cause.InvalidTextEncoding(encodingName: charsetName) }
284 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:280:69: error: cannot find type 'CFString' in scope
278 | let charsetName = $0.charset ?? "ISO-8859-1"
279 | let encodingID = CFStringConvertEncodingToNSStringEncoding(
280 | CFStringConvertIANACharSetNameToEncoding(charsetName as CFString))
| `- error: cannot find type 'CFString' in scope
281 |
282 | guard encodingID != UInt(kCFStringEncodingInvalidId) else
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:312:27: error: cannot find 'Image' in scope
310 | return ResponseContentTransformer<Data, Image>(transformErrors: transformErrors)
311 | {
312 | guard let image = Image(data: $0.content) else
| `- error: cannot find 'Image' in scope
313 | { throw RequestError.Cause.UnparsableImage() }
314 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:310:45: error: cannot find type 'Image' in scope
308 | public func ImageResponseTransformer(_ transformErrors: Bool = false) -> ResponseTransformer
309 | {
310 | return ResponseContentTransformer<Data, Image>(transformErrors: transformErrors)
| `- error: cannot find type 'Image' in scope
311 | {
312 | guard let image = Image(data: $0.content) else
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:311:9: error: cannot infer type of closure parameter '$0' without a type annotation
309 | {
310 | return ResponseContentTransformer<Data, Image>(transformErrors: transformErrors)
311 | {
| `- error: cannot infer type of closure parameter '$0' without a type annotation
312 | guard let image = Image(data: $0.content) else
313 | { throw RequestError.Cause.UnparsableImage() }
/host/spi-builder-workspace/Source/Siesta/Networking.swift:34:24: error: cannot find type 'URLRequest' in scope
32 | */
33 | func startRequest(
34 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
35 | completion: @escaping RequestNetworkingCompletionCallback)
36 | -> RequestNetworking
/host/spi-builder-workspace/Source/Siesta/Networking.swift:91:57: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 |
90 | /// Used by a `NetworkingProvider` implementation to pass the result of a network request back to Siesta.
91 | public typealias RequestNetworkingCompletionCallback = (HTTPURLResponse?, Data?, Error?) -> Void
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 |
93 | /**
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/Source/Siesta/Pipeline/PipelineProcessing.swift:117:17: error: cannot find 'DispatchQueue' in scope
115 | }
116 |
117 | DispatchQueue.main.async
| `- error: cannot find 'DispatchQueue' in scope
118 | {
119 | completionHandler.broadcastResponse(ResponseInfo(response: response))
/host/spi-builder-workspace/Source/Siesta/EntityCache.swift:110:43: error: cannot find type 'DispatchQueue' in scope
108 | }
109 |
110 | internal var defaultEntityCacheWorkQueue: DispatchQueue =
| `- error: cannot find type 'DispatchQueue' in scope
111 | DispatchQueue.global(qos: DispatchQoS.QoSClass.userInitiated)
112 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineProcessing.swift:191:9: error: cannot find 'DispatchQueue' in scope
189 | init?(cache: Cache, resource: Resource)
190 | {
191 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
192 |
193 | guard let key = cache.key(for: resource) else
/host/spi-builder-workspace/Source/Siesta/EntityCache.swift:107:20: error: cannot find type 'DispatchQueue' in scope
105 | Returns the GCD queue on which this cache implementation will do its work.
106 | */
107 | var workQueue: DispatchQueue { get }
| `- error: cannot find type 'DispatchQueue' in scope
108 | }
109 |
/host/spi-builder-workspace/Source/Siesta/EntityCache.swift:116:27: error: cannot find type 'DispatchQueue' in scope
114 | {
115 | /// Returns a concurrent queue with priority `QOS_CLASS_USER_INITIATED`.
116 | public var workQueue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
117 | { return defaultEntityCacheWorkQueue }
118 | }
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:279:26: error: cannot find 'CFStringConvertEncodingToNSStringEncoding' in scope
277 | {
278 | let charsetName = $0.charset ?? "ISO-8859-1"
279 | let encodingID = CFStringConvertEncodingToNSStringEncoding(
| `- error: cannot find 'CFStringConvertEncodingToNSStringEncoding' in scope
280 | CFStringConvertIANACharSetNameToEncoding(charsetName as CFString))
281 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:280:13: error: cannot find 'CFStringConvertIANACharSetNameToEncoding' in scope
278 | let charsetName = $0.charset ?? "ISO-8859-1"
279 | let encodingID = CFStringConvertEncodingToNSStringEncoding(
280 | CFStringConvertIANACharSetNameToEncoding(charsetName as CFString))
| `- error: cannot find 'CFStringConvertIANACharSetNameToEncoding' in scope
281 |
282 | guard encodingID != UInt(kCFStringEncodingInvalidId) else
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:282:34: error: cannot find 'kCFStringEncodingInvalidId' in scope
280 | CFStringConvertIANACharSetNameToEncoding(charsetName as CFString))
281 |
282 | guard encodingID != UInt(kCFStringEncodingInvalidId) else
| `- error: cannot find 'kCFStringEncodingInvalidId' in scope
283 | { throw RequestError.Cause.InvalidTextEncoding(encodingName: charsetName) }
284 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:280:69: error: cannot find type 'CFString' in scope
278 | let charsetName = $0.charset ?? "ISO-8859-1"
279 | let encodingID = CFStringConvertEncodingToNSStringEncoding(
280 | CFStringConvertIANACharSetNameToEncoding(charsetName as CFString))
| `- error: cannot find type 'CFString' in scope
281 |
282 | guard encodingID != UInt(kCFStringEncodingInvalidId) else
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:312:27: error: cannot find 'Image' in scope
310 | return ResponseContentTransformer<Data, Image>(transformErrors: transformErrors)
311 | {
312 | guard let image = Image(data: $0.content) else
| `- error: cannot find 'Image' in scope
313 | { throw RequestError.Cause.UnparsableImage() }
314 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:310:45: error: cannot find type 'Image' in scope
308 | public func ImageResponseTransformer(_ transformErrors: Bool = false) -> ResponseTransformer
309 | {
310 | return ResponseContentTransformer<Data, Image>(transformErrors: transformErrors)
| `- error: cannot find type 'Image' in scope
311 | {
312 | guard let image = Image(data: $0.content) else
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:311:9: error: cannot infer type of closure parameter '$0' without a type annotation
309 | {
310 | return ResponseContentTransformer<Data, Image>(transformErrors: transformErrors)
311 | {
| `- error: cannot infer type of closure parameter '$0' without a type annotation
312 | guard let image = Image(data: $0.content) else
313 | { throw RequestError.Cause.UnparsableImage() }
/host/spi-builder-workspace/Source/Siesta/Networking.swift:34:24: error: cannot find type 'URLRequest' in scope
32 | */
33 | func startRequest(
34 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
35 | completion: @escaping RequestNetworkingCompletionCallback)
36 | -> RequestNetworking
/host/spi-builder-workspace/Source/Siesta/Networking.swift:91:57: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 |
90 | /// Used by a `NetworkingProvider` implementation to pass the result of a network request back to Siesta.
91 | public typealias RequestNetworkingCompletionCallback = (HTTPURLResponse?, Data?, Error?) -> Void
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 |
93 | /**
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/Source/Siesta/Pipeline/PipelineProcessing.swift:117:17: error: cannot find 'DispatchQueue' in scope
115 | }
116 |
117 | DispatchQueue.main.async
| `- error: cannot find 'DispatchQueue' in scope
118 | {
119 | completionHandler.broadcastResponse(ResponseInfo(response: response))
/host/spi-builder-workspace/Source/Siesta/EntityCache.swift:110:43: error: cannot find type 'DispatchQueue' in scope
108 | }
109 |
110 | internal var defaultEntityCacheWorkQueue: DispatchQueue =
| `- error: cannot find type 'DispatchQueue' in scope
111 | DispatchQueue.global(qos: DispatchQoS.QoSClass.userInitiated)
112 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineProcessing.swift:191:9: error: cannot find 'DispatchQueue' in scope
189 | init?(cache: Cache, resource: Resource)
190 | {
191 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
192 |
193 | guard let key = cache.key(for: resource) else
/host/spi-builder-workspace/Source/Siesta/EntityCache.swift:107:20: error: cannot find type 'DispatchQueue' in scope
105 | Returns the GCD queue on which this cache implementation will do its work.
106 | */
107 | var workQueue: DispatchQueue { get }
| `- error: cannot find type 'DispatchQueue' in scope
108 | }
109 |
/host/spi-builder-workspace/Source/Siesta/EntityCache.swift:116:27: error: cannot find type 'DispatchQueue' in scope
114 | {
115 | /// Returns a concurrent queue with priority `QOS_CLASS_USER_INITIATED`.
116 | public var workQueue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
117 | { return defaultEntityCacheWorkQueue }
118 | }
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:279:26: error: cannot find 'CFStringConvertEncodingToNSStringEncoding' in scope
277 | {
278 | let charsetName = $0.charset ?? "ISO-8859-1"
279 | let encodingID = CFStringConvertEncodingToNSStringEncoding(
| `- error: cannot find 'CFStringConvertEncodingToNSStringEncoding' in scope
280 | CFStringConvertIANACharSetNameToEncoding(charsetName as CFString))
281 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:280:13: error: cannot find 'CFStringConvertIANACharSetNameToEncoding' in scope
278 | let charsetName = $0.charset ?? "ISO-8859-1"
279 | let encodingID = CFStringConvertEncodingToNSStringEncoding(
280 | CFStringConvertIANACharSetNameToEncoding(charsetName as CFString))
| `- error: cannot find 'CFStringConvertIANACharSetNameToEncoding' in scope
281 |
282 | guard encodingID != UInt(kCFStringEncodingInvalidId) else
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:282:34: error: cannot find 'kCFStringEncodingInvalidId' in scope
280 | CFStringConvertIANACharSetNameToEncoding(charsetName as CFString))
281 |
282 | guard encodingID != UInt(kCFStringEncodingInvalidId) else
| `- error: cannot find 'kCFStringEncodingInvalidId' in scope
283 | { throw RequestError.Cause.InvalidTextEncoding(encodingName: charsetName) }
284 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:280:69: error: cannot find type 'CFString' in scope
278 | let charsetName = $0.charset ?? "ISO-8859-1"
279 | let encodingID = CFStringConvertEncodingToNSStringEncoding(
280 | CFStringConvertIANACharSetNameToEncoding(charsetName as CFString))
| `- error: cannot find type 'CFString' in scope
281 |
282 | guard encodingID != UInt(kCFStringEncodingInvalidId) else
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:312:27: error: cannot find 'Image' in scope
310 | return ResponseContentTransformer<Data, Image>(transformErrors: transformErrors)
311 | {
312 | guard let image = Image(data: $0.content) else
| `- error: cannot find 'Image' in scope
313 | { throw RequestError.Cause.UnparsableImage() }
314 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:310:45: error: cannot find type 'Image' in scope
308 | public func ImageResponseTransformer(_ transformErrors: Bool = false) -> ResponseTransformer
309 | {
310 | return ResponseContentTransformer<Data, Image>(transformErrors: transformErrors)
| `- error: cannot find type 'Image' in scope
311 | {
312 | guard let image = Image(data: $0.content) else
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:311:9: error: cannot infer type of closure parameter '$0' without a type annotation
309 | {
310 | return ResponseContentTransformer<Data, Image>(transformErrors: transformErrors)
311 | {
| `- error: cannot infer type of closure parameter '$0' without a type annotation
312 | guard let image = Image(data: $0.content) else
313 | { throw RequestError.Cause.UnparsableImage() }
/host/spi-builder-workspace/Source/Siesta/Networking.swift:34:24: error: cannot find type 'URLRequest' in scope
32 | */
33 | func startRequest(
34 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
35 | completion: @escaping RequestNetworkingCompletionCallback)
36 | -> RequestNetworking
/host/spi-builder-workspace/Source/Siesta/Networking.swift:91:57: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 |
90 | /// Used by a `NetworkingProvider` implementation to pass the result of a network request back to Siesta.
91 | public typealias RequestNetworkingCompletionCallback = (HTTPURLResponse?, Data?, Error?) -> Void
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 |
93 | /**
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/Source/Siesta/Pipeline/PipelineProcessing.swift:117:17: error: cannot find 'DispatchQueue' in scope
115 | }
116 |
117 | DispatchQueue.main.async
| `- error: cannot find 'DispatchQueue' in scope
118 | {
119 | completionHandler.broadcastResponse(ResponseInfo(response: response))
/host/spi-builder-workspace/Source/Siesta/EntityCache.swift:110:43: error: cannot find type 'DispatchQueue' in scope
108 | }
109 |
110 | internal var defaultEntityCacheWorkQueue: DispatchQueue =
| `- error: cannot find type 'DispatchQueue' in scope
111 | DispatchQueue.global(qos: DispatchQoS.QoSClass.userInitiated)
112 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineProcessing.swift:191:9: error: cannot find 'DispatchQueue' in scope
189 | init?(cache: Cache, resource: Resource)
190 | {
191 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
192 |
193 | guard let key = cache.key(for: resource) else
/host/spi-builder-workspace/Source/Siesta/EntityCache.swift:107:20: error: cannot find type 'DispatchQueue' in scope
105 | Returns the GCD queue on which this cache implementation will do its work.
106 | */
107 | var workQueue: DispatchQueue { get }
| `- error: cannot find type 'DispatchQueue' in scope
108 | }
109 |
/host/spi-builder-workspace/Source/Siesta/EntityCache.swift:116:27: error: cannot find type 'DispatchQueue' in scope
114 | {
115 | /// Returns a concurrent queue with priority `QOS_CLASS_USER_INITIATED`.
116 | public var workQueue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
117 | { return defaultEntityCacheWorkQueue }
118 | }
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:279:26: error: cannot find 'CFStringConvertEncodingToNSStringEncoding' in scope
277 | {
278 | let charsetName = $0.charset ?? "ISO-8859-1"
279 | let encodingID = CFStringConvertEncodingToNSStringEncoding(
| `- error: cannot find 'CFStringConvertEncodingToNSStringEncoding' in scope
280 | CFStringConvertIANACharSetNameToEncoding(charsetName as CFString))
281 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:280:13: error: cannot find 'CFStringConvertIANACharSetNameToEncoding' in scope
278 | let charsetName = $0.charset ?? "ISO-8859-1"
279 | let encodingID = CFStringConvertEncodingToNSStringEncoding(
280 | CFStringConvertIANACharSetNameToEncoding(charsetName as CFString))
| `- error: cannot find 'CFStringConvertIANACharSetNameToEncoding' in scope
281 |
282 | guard encodingID != UInt(kCFStringEncodingInvalidId) else
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:282:34: error: cannot find 'kCFStringEncodingInvalidId' in scope
280 | CFStringConvertIANACharSetNameToEncoding(charsetName as CFString))
281 |
282 | guard encodingID != UInt(kCFStringEncodingInvalidId) else
| `- error: cannot find 'kCFStringEncodingInvalidId' in scope
283 | { throw RequestError.Cause.InvalidTextEncoding(encodingName: charsetName) }
284 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:280:69: error: cannot find type 'CFString' in scope
278 | let charsetName = $0.charset ?? "ISO-8859-1"
279 | let encodingID = CFStringConvertEncodingToNSStringEncoding(
280 | CFStringConvertIANACharSetNameToEncoding(charsetName as CFString))
| `- error: cannot find type 'CFString' in scope
281 |
282 | guard encodingID != UInt(kCFStringEncodingInvalidId) else
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:312:27: error: cannot find 'Image' in scope
310 | return ResponseContentTransformer<Data, Image>(transformErrors: transformErrors)
311 | {
312 | guard let image = Image(data: $0.content) else
| `- error: cannot find 'Image' in scope
313 | { throw RequestError.Cause.UnparsableImage() }
314 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:310:45: error: cannot find type 'Image' in scope
308 | public func ImageResponseTransformer(_ transformErrors: Bool = false) -> ResponseTransformer
309 | {
310 | return ResponseContentTransformer<Data, Image>(transformErrors: transformErrors)
| `- error: cannot find type 'Image' in scope
311 | {
312 | guard let image = Image(data: $0.content) else
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:311:9: error: cannot infer type of closure parameter '$0' without a type annotation
309 | {
310 | return ResponseContentTransformer<Data, Image>(transformErrors: transformErrors)
311 | {
| `- error: cannot infer type of closure parameter '$0' without a type annotation
312 | guard let image = Image(data: $0.content) else
313 | { throw RequestError.Cause.UnparsableImage() }
/host/spi-builder-workspace/Source/Siesta/Networking.swift:34:24: error: cannot find type 'URLRequest' in scope
32 | */
33 | func startRequest(
34 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
35 | completion: @escaping RequestNetworkingCompletionCallback)
36 | -> RequestNetworking
/host/spi-builder-workspace/Source/Siesta/Networking.swift:91:57: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
89 |
90 | /// Used by a `NetworkingProvider` implementation to pass the result of a network request back to Siesta.
91 | public typealias RequestNetworkingCompletionCallback = (HTTPURLResponse?, Data?, Error?) -> Void
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
92 |
93 | /**
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/Source/Siesta/Pipeline/PipelineProcessing.swift:117:17: error: cannot find 'DispatchQueue' in scope
115 | }
116 |
117 | DispatchQueue.main.async
| `- error: cannot find 'DispatchQueue' in scope
118 | {
119 | completionHandler.broadcastResponse(ResponseInfo(response: response))
/host/spi-builder-workspace/Source/Siesta/EntityCache.swift:110:43: error: cannot find type 'DispatchQueue' in scope
108 | }
109 |
110 | internal var defaultEntityCacheWorkQueue: DispatchQueue =
| `- error: cannot find type 'DispatchQueue' in scope
111 | DispatchQueue.global(qos: DispatchQoS.QoSClass.userInitiated)
112 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/PipelineProcessing.swift:191:9: error: cannot find 'DispatchQueue' in scope
189 | init?(cache: Cache, resource: Resource)
190 | {
191 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
192 |
193 | guard let key = cache.key(for: resource) else
/host/spi-builder-workspace/Source/Siesta/EntityCache.swift:107:20: error: cannot find type 'DispatchQueue' in scope
105 | Returns the GCD queue on which this cache implementation will do its work.
106 | */
107 | var workQueue: DispatchQueue { get }
| `- error: cannot find type 'DispatchQueue' in scope
108 | }
109 |
/host/spi-builder-workspace/Source/Siesta/EntityCache.swift:116:27: error: cannot find type 'DispatchQueue' in scope
114 | {
115 | /// Returns a concurrent queue with priority `QOS_CLASS_USER_INITIATED`.
116 | public var workQueue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
117 | { return defaultEntityCacheWorkQueue }
118 | }
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:279:26: error: cannot find 'CFStringConvertEncodingToNSStringEncoding' in scope
277 | {
278 | let charsetName = $0.charset ?? "ISO-8859-1"
279 | let encodingID = CFStringConvertEncodingToNSStringEncoding(
| `- error: cannot find 'CFStringConvertEncodingToNSStringEncoding' in scope
280 | CFStringConvertIANACharSetNameToEncoding(charsetName as CFString))
281 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:280:13: error: cannot find 'CFStringConvertIANACharSetNameToEncoding' in scope
278 | let charsetName = $0.charset ?? "ISO-8859-1"
279 | let encodingID = CFStringConvertEncodingToNSStringEncoding(
280 | CFStringConvertIANACharSetNameToEncoding(charsetName as CFString))
| `- error: cannot find 'CFStringConvertIANACharSetNameToEncoding' in scope
281 |
282 | guard encodingID != UInt(kCFStringEncodingInvalidId) else
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:282:34: error: cannot find 'kCFStringEncodingInvalidId' in scope
280 | CFStringConvertIANACharSetNameToEncoding(charsetName as CFString))
281 |
282 | guard encodingID != UInt(kCFStringEncodingInvalidId) else
| `- error: cannot find 'kCFStringEncodingInvalidId' in scope
283 | { throw RequestError.Cause.InvalidTextEncoding(encodingName: charsetName) }
284 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:280:69: error: cannot find type 'CFString' in scope
278 | let charsetName = $0.charset ?? "ISO-8859-1"
279 | let encodingID = CFStringConvertEncodingToNSStringEncoding(
280 | CFStringConvertIANACharSetNameToEncoding(charsetName as CFString))
| `- error: cannot find type 'CFString' in scope
281 |
282 | guard encodingID != UInt(kCFStringEncodingInvalidId) else
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:312:27: error: cannot find 'Image' in scope
310 | return ResponseContentTransformer<Data, Image>(transformErrors: transformErrors)
311 | {
312 | guard let image = Image(data: $0.content) else
| `- error: cannot find 'Image' in scope
313 | { throw RequestError.Cause.UnparsableImage() }
314 |
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:310:45: error: cannot find type 'Image' in scope
308 | public func ImageResponseTransformer(_ transformErrors: Bool = false) -> ResponseTransformer
309 | {
310 | return ResponseContentTransformer<Data, Image>(transformErrors: transformErrors)
| `- error: cannot find type 'Image' in scope
311 | {
312 | guard let image = Image(data: $0.content) else
/host/spi-builder-workspace/Source/Siesta/Pipeline/ResponseTransformer.swift:311:9: error: cannot infer type of closure parameter '$0' without a type annotation
309 | {
310 | return ResponseContentTransformer<Data, Image>(transformErrors: transformErrors)
311 | {
| `- error: cannot infer type of closure parameter '$0' without a type annotation
312 | guard let image = Image(data: $0.content) else
313 | { throw RequestError.Cause.UnparsableImage() }
[63/90] Compiling Siesta RequestCallbacks.swift
/host/spi-builder-workspace/Source/Siesta/Request/RequestCallbacks.swift:59:9: error: cannot find 'DispatchQueue' in scope
57 | mutating func addCallback(_ callback: @escaping (CallbackArguments) -> Void)
58 | {
59 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
60 |
61 | if let completedValue = completedValue
/host/spi-builder-workspace/Source/Siesta/Request/RequestCallbacks.swift:66:13: error: cannot find 'DispatchQueue' in scope
64 | // caller can finish their business first.
65 |
66 | DispatchQueue.main.async
| `- error: cannot find 'DispatchQueue' in scope
67 | { callback(completedValue) }
68 | }
/host/spi-builder-workspace/Source/Siesta/Request/RequestCallbacks.swift:77:9: error: cannot find 'DispatchQueue' in scope
75 | func notify(_ arguments: CallbackArguments)
76 | {
77 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
78 |
79 | // Note that callbacks will be [] after notifyOfCompletion() called, so this becomes a noop.
/host/spi-builder-workspace/Source/Siesta/Request/RequestCallbacks.swift:97:9: error: cannot find 'DispatchQueue' in scope
95 |
96 | let snapshot = self
97 | DispatchQueue.main.async
| `- error: cannot find 'DispatchQueue' in scope
98 | { snapshot.notify(arguments) }
99 |
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:222:47: error: cannot find type 'URLRequest' in scope
220 | - SeeAlso: `Resource.request(...)`
221 | */
222 | public typealias RequestMutation = (inout URLRequest) -> Void
| `- error: cannot find type 'URLRequest' in scope
223 |
224 | /**
/host/spi-builder-workspace/Source/Siesta/Request/RequestCreation.swift:30:30: error: '@escaping' only applies to function types
28 | data: Data,
29 | contentType: String,
30 | requestMutation: @escaping RequestMutation = { _ in })
| `- error: '@escaping' only applies to function types
31 | -> Request
32 | {
/host/spi-builder-workspace/Source/Siesta/Request/RequestCreation.swift:57:30: error: '@escaping' only applies to function types
55 | contentType: String = "text/plain",
56 | encoding: String.Encoding = String.Encoding.utf8,
57 | requestMutation: @escaping RequestMutation = { _ in })
| `- error: '@escaping' only applies to function types
58 | -> Request
59 | {
/host/spi-builder-workspace/Source/Siesta/Request/RequestCreation.swift:88:30: error: '@escaping' only applies to function types
86 | json: JSONConvertible,
87 | contentType: String = "application/json",
88 | requestMutation: @escaping RequestMutation = { _ in })
| `- error: '@escaping' only applies to function types
89 | -> Request
90 | {
/host/spi-builder-workspace/Source/Siesta/Request/RequestCreation.swift:127:32: error: '@escaping' only applies to function types
125 | _ method: RequestMethod,
126 | urlEncoded params: [String:String],
127 | requestMutation: @escaping RequestMutation = { _ in })
| `- error: '@escaping' only applies to function types
128 | -> Request
129 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:257:44: error: '@escaping' only applies to function types
255 | public func request(
256 | _ method: RequestMethod,
257 | requestMutation adHocMutation: @escaping RequestMutation = { _ in })
| `- error: '@escaping' only applies to function types
258 | -> Request
259 | {
/host/spi-builder-workspace/Source/Siesta/Request/RequestCreation.swift:62:19: error: cannot find 'CFStringConvertEncodingToIANACharSetName' in scope
60 | guard let rawBody = text.data(using: encoding),
61 | let encodingName =
62 | CFStringConvertEncodingToIANACharSetName(
| `- error: cannot find 'CFStringConvertEncodingToIANACharSetName' in scope
63 | CFStringConvertNSStringEncodingToEncoding(
64 | encoding.rawValue))
/host/spi-builder-workspace/Source/Siesta/Request/RequestCreation.swift:63:23: error: cannot find 'CFStringConvertNSStringEncodingToEncoding' in scope
61 | let encodingName =
62 | CFStringConvertEncodingToIANACharSetName(
63 | CFStringConvertNSStringEncodingToEncoding(
| `- error: cannot find 'CFStringConvertNSStringEncodingToEncoding' in scope
64 | encoding.rawValue))
65 | else
/host/spi-builder-workspace/Source/Siesta/RequestError.swift:61:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 | */
60 | public init(
61 | response: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | content: Any?,
63 | cause: Error?,
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/Source/Siesta/RequestError.swift:66:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
64 | userMessage: String? = nil)
65 | {
66 | self.httpStatusCode = response?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
67 | self.cause = cause
68 |
/host/spi-builder-workspace/Source/Siesta/RequestError.swift:77:50: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
75 | { self.userMessage = message }
76 | else if let code = self.httpStatusCode
77 | { self.userMessage = HTTPURLResponse.localizedString(forStatusCode: code).capitalized }
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
78 | else
79 | { self.userMessage = NSLocalizedString("Request failed", comment: "userMessage") } // Is this reachable?
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:26:2: error: Objective-C interoperability is disabled
24 | questions changes.
25 | */
26 | @objc(BOSResource)
| `- error: Objective-C interoperability is disabled
27 | public final class Resource: NSObject
28 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:32:6: error: Objective-C interoperability is disabled
30 |
31 | /// The API to which this resource belongs. Provides configuration defaults and instance uniqueness.
32 | @objc
| `- error: Objective-C interoperability is disabled
33 | public let service: Service
34 |
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:36:6: error: Objective-C interoperability is disabled
34 |
35 | /// The canoncial URL of this resource.
36 | @objc
| `- error: Objective-C interoperability is disabled
37 | public let url: URL
38 |
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:71:46: error: cannot find type 'URLRequest' in scope
69 | }
70 |
71 | internal func configuration(for request: URLRequest) -> Configuration
| `- error: cannot find type 'URLRequest' in scope
72 | {
73 | return configuration(for:
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:124:6: error: Objective-C interoperability is disabled
122 |
123 | /// The time of the most recent update to either `latestData` or `latestError`.
124 | @objc
| `- error: Objective-C interoperability is disabled
125 | public var timestamp: TimeInterval
126 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:141:6: error: Objective-C interoperability is disabled
139 | /// True if any load requests (i.e. from calls to `load(...)` and `loadIfNeeded()`)
140 | /// for this resource are in progress.
141 | @objc
| `- error: Objective-C interoperability is disabled
142 | public var isLoading: Bool
143 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:150:6: error: Objective-C interoperability is disabled
148 |
149 | /// True if any requests for this resource are in progress.
150 | @objc
| `- error: Objective-C interoperability is disabled
151 | public var isRequesting: Bool
152 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:312:6: error: Objective-C interoperability is disabled
310 | - the timestamp on `latestError` is more recent than `retryTime` seconds ago.
311 | */
312 | @objc
| `- error: Objective-C interoperability is disabled
313 | public var isUpToDate: Bool
314 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:489:6: error: Objective-C interoperability is disabled
487 | If this resource has no observers, cancels all `loadRequests`.
488 | */
489 | @objc
| `- error: Objective-C interoperability is disabled
490 | public func cancelLoadIfUnobserved()
491 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:511:6: error: Objective-C interoperability is disabled
509 | The `callback` is called after the given delay, regardless of whether the request was cancelled.
510 | */
511 | @objc
| `- error: Objective-C interoperability is disabled
512 | public func cancelLoadIfUnobserved(afterDelay delay: TimeInterval, then callback: @escaping () -> Void = {})
513 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:633:6: error: Objective-C interoperability is disabled
631 | If this resource has no content, this method sets the content type to `application/binary`.
632 | */
633 | @objc
| `- error: Objective-C interoperability is disabled
634 | public func overrideLocalContent(with content: Any)
635 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:653:6: error: Objective-C interoperability is disabled
651 | - SeeAlso: `wipe()`
652 | */
653 | @objc
| `- error: Objective-C interoperability is disabled
654 | public func invalidate()
655 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:673:6: error: Objective-C interoperability is disabled
671 | - SeeAlso: `invalidate()`
672 | */
673 | @objc
| `- error: Objective-C interoperability is disabled
674 | public func wipe()
675 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:56:9: error: cannot find 'DispatchQueue' in scope
54 | public func configuration(for method: RequestMethod) -> Configuration
55 | {
56 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
57 |
58 | if permanentFailure != nil // Resources with invalid URLs aren’t configurable
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:127:9: error: cannot find 'DispatchQueue' in scope
125 | public var timestamp: TimeInterval
126 | {
127 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
128 |
129 | return max(
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:144:9: error: cannot find 'DispatchQueue' in scope
142 | public var isLoading: Bool
143 | {
144 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
145 |
146 | return !loadRequests.isEmpty
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:153:9: error: cannot find 'DispatchQueue' in scope
151 | public var isRequesting: Bool
152 | {
153 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
154 |
155 | return !allRequests.isEmpty
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:168:9: error: cannot find 'DispatchQueue' in scope
166 | internal init(service: Service, url: URL)
167 | {
168 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
169 |
170 | self.service = service
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:179:9: error: cannot find 'DispatchQueue' in scope
177 | internal init(service: Service, invalidURLSource: URLConvertible?)
178 | {
179 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
180 |
181 | self.service = service
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:260:9: error: cannot find 'DispatchQueue' in scope
258 | -> Request
259 | {
260 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
261 |
262 | if let permanentFailure = permanentFailure
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:269:37: error: cannot find 'URLRequest' in scope
267 | let delegate = NetworkRequestDelegate(resource: self)
268 | {
269 | var underlyingRequest = URLRequest(url: self.url)
| `- error: cannot find 'URLRequest' in scope
270 | underlyingRequest.httpMethod = method.rawValue.uppercased()
271 | let config = self.configuration(for: method)
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:29:62: error: cannot find type 'URLRequest' in scope
27 | // MARK: Managing request
28 |
29 | init(resource: Resource, requestBuilder: @escaping () -> URLRequest)
| `- error: cannot find type 'URLRequest' in scope
30 | {
31 | self.resource = resource
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:29:46: error: '@escaping' only applies to function types
27 | // MARK: Managing request
28 |
29 | init(resource: Resource, requestBuilder: @escaping () -> URLRequest)
| `- error: '@escaping' only applies to function types
30 | {
31 | self.resource = resource
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:365:9: error: cannot find 'DispatchQueue' in scope
363 | public func loadIfNeeded() -> Request?
364 | {
365 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
366 |
367 | if let loadReq = loadRequests.first
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:442:28: error: cannot infer contextual base in reference to member 'get'
440 | public func load() -> Request
441 | {
442 | let req = request(.get)
| `- error: cannot infer contextual base in reference to member 'get'
443 | {
444 | underlyingRequest in
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:471:9: error: cannot find 'DispatchQueue' in scope
469 | public func load(using req: Request) -> Request
470 | {
471 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
472 |
473 | trackRequest(req, in: &loadRequests)
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:492:9: error: cannot find 'DispatchQueue' in scope
490 | public func cancelLoadIfUnobserved()
491 | {
492 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
493 |
494 | guard !beingObserved else
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:514:9: error: cannot find 'DispatchQueue' in scope
512 | public func cancelLoadIfUnobserved(afterDelay delay: TimeInterval, then callback: @escaping () -> Void = {})
513 | {
514 | DispatchQueue.main.asyncAfter(deadline: .now() + delay)
| `- error: cannot find 'DispatchQueue' in scope
515 | {
516 | self.cancelLoadIfUnobserved()
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:514:50: error: cannot call value of non-function type 'Date'
512 | public func cancelLoadIfUnobserved(afterDelay delay: TimeInterval, then callback: @escaping () -> Void = {})
513 | {
514 | DispatchQueue.main.asyncAfter(deadline: .now() + delay)
| `- error: cannot call value of non-function type 'Date'
515 | {
516 | self.cancelLoadIfUnobserved()
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:537:9: error: cannot find 'DispatchQueue' in scope
535 | private func receiveNewData(_ entity: Entity<Any>, source: ResourceEvent.NewDataSource)
536 | {
537 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
538 |
539 | SiestaLog.log(.stateChanges, [self, "received new data from", source, ":", entity])
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:656:9: error: cannot find 'DispatchQueue' in scope
654 | public func invalidate()
655 | {
656 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
657 |
658 | invalidated = true
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:676:9: error: cannot find 'DispatchQueue' in scope
674 | public func wipe()
675 | {
676 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
677 |
678 | SiestaLog.log(.stateChanges, [self, "wiped"])
[64/90] Compiling Siesta RequestChaining.swift
/host/spi-builder-workspace/Source/Siesta/Request/RequestCallbacks.swift:59:9: error: cannot find 'DispatchQueue' in scope
57 | mutating func addCallback(_ callback: @escaping (CallbackArguments) -> Void)
58 | {
59 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
60 |
61 | if let completedValue = completedValue
/host/spi-builder-workspace/Source/Siesta/Request/RequestCallbacks.swift:66:13: error: cannot find 'DispatchQueue' in scope
64 | // caller can finish their business first.
65 |
66 | DispatchQueue.main.async
| `- error: cannot find 'DispatchQueue' in scope
67 | { callback(completedValue) }
68 | }
/host/spi-builder-workspace/Source/Siesta/Request/RequestCallbacks.swift:77:9: error: cannot find 'DispatchQueue' in scope
75 | func notify(_ arguments: CallbackArguments)
76 | {
77 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
78 |
79 | // Note that callbacks will be [] after notifyOfCompletion() called, so this becomes a noop.
/host/spi-builder-workspace/Source/Siesta/Request/RequestCallbacks.swift:97:9: error: cannot find 'DispatchQueue' in scope
95 |
96 | let snapshot = self
97 | DispatchQueue.main.async
| `- error: cannot find 'DispatchQueue' in scope
98 | { snapshot.notify(arguments) }
99 |
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:222:47: error: cannot find type 'URLRequest' in scope
220 | - SeeAlso: `Resource.request(...)`
221 | */
222 | public typealias RequestMutation = (inout URLRequest) -> Void
| `- error: cannot find type 'URLRequest' in scope
223 |
224 | /**
/host/spi-builder-workspace/Source/Siesta/Request/RequestCreation.swift:30:30: error: '@escaping' only applies to function types
28 | data: Data,
29 | contentType: String,
30 | requestMutation: @escaping RequestMutation = { _ in })
| `- error: '@escaping' only applies to function types
31 | -> Request
32 | {
/host/spi-builder-workspace/Source/Siesta/Request/RequestCreation.swift:57:30: error: '@escaping' only applies to function types
55 | contentType: String = "text/plain",
56 | encoding: String.Encoding = String.Encoding.utf8,
57 | requestMutation: @escaping RequestMutation = { _ in })
| `- error: '@escaping' only applies to function types
58 | -> Request
59 | {
/host/spi-builder-workspace/Source/Siesta/Request/RequestCreation.swift:88:30: error: '@escaping' only applies to function types
86 | json: JSONConvertible,
87 | contentType: String = "application/json",
88 | requestMutation: @escaping RequestMutation = { _ in })
| `- error: '@escaping' only applies to function types
89 | -> Request
90 | {
/host/spi-builder-workspace/Source/Siesta/Request/RequestCreation.swift:127:32: error: '@escaping' only applies to function types
125 | _ method: RequestMethod,
126 | urlEncoded params: [String:String],
127 | requestMutation: @escaping RequestMutation = { _ in })
| `- error: '@escaping' only applies to function types
128 | -> Request
129 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:257:44: error: '@escaping' only applies to function types
255 | public func request(
256 | _ method: RequestMethod,
257 | requestMutation adHocMutation: @escaping RequestMutation = { _ in })
| `- error: '@escaping' only applies to function types
258 | -> Request
259 | {
/host/spi-builder-workspace/Source/Siesta/Request/RequestCreation.swift:62:19: error: cannot find 'CFStringConvertEncodingToIANACharSetName' in scope
60 | guard let rawBody = text.data(using: encoding),
61 | let encodingName =
62 | CFStringConvertEncodingToIANACharSetName(
| `- error: cannot find 'CFStringConvertEncodingToIANACharSetName' in scope
63 | CFStringConvertNSStringEncodingToEncoding(
64 | encoding.rawValue))
/host/spi-builder-workspace/Source/Siesta/Request/RequestCreation.swift:63:23: error: cannot find 'CFStringConvertNSStringEncodingToEncoding' in scope
61 | let encodingName =
62 | CFStringConvertEncodingToIANACharSetName(
63 | CFStringConvertNSStringEncodingToEncoding(
| `- error: cannot find 'CFStringConvertNSStringEncodingToEncoding' in scope
64 | encoding.rawValue))
65 | else
/host/spi-builder-workspace/Source/Siesta/RequestError.swift:61:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 | */
60 | public init(
61 | response: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | content: Any?,
63 | cause: Error?,
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/Source/Siesta/RequestError.swift:66:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
64 | userMessage: String? = nil)
65 | {
66 | self.httpStatusCode = response?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
67 | self.cause = cause
68 |
/host/spi-builder-workspace/Source/Siesta/RequestError.swift:77:50: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
75 | { self.userMessage = message }
76 | else if let code = self.httpStatusCode
77 | { self.userMessage = HTTPURLResponse.localizedString(forStatusCode: code).capitalized }
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
78 | else
79 | { self.userMessage = NSLocalizedString("Request failed", comment: "userMessage") } // Is this reachable?
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:26:2: error: Objective-C interoperability is disabled
24 | questions changes.
25 | */
26 | @objc(BOSResource)
| `- error: Objective-C interoperability is disabled
27 | public final class Resource: NSObject
28 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:32:6: error: Objective-C interoperability is disabled
30 |
31 | /// The API to which this resource belongs. Provides configuration defaults and instance uniqueness.
32 | @objc
| `- error: Objective-C interoperability is disabled
33 | public let service: Service
34 |
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:36:6: error: Objective-C interoperability is disabled
34 |
35 | /// The canoncial URL of this resource.
36 | @objc
| `- error: Objective-C interoperability is disabled
37 | public let url: URL
38 |
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:71:46: error: cannot find type 'URLRequest' in scope
69 | }
70 |
71 | internal func configuration(for request: URLRequest) -> Configuration
| `- error: cannot find type 'URLRequest' in scope
72 | {
73 | return configuration(for:
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:124:6: error: Objective-C interoperability is disabled
122 |
123 | /// The time of the most recent update to either `latestData` or `latestError`.
124 | @objc
| `- error: Objective-C interoperability is disabled
125 | public var timestamp: TimeInterval
126 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:141:6: error: Objective-C interoperability is disabled
139 | /// True if any load requests (i.e. from calls to `load(...)` and `loadIfNeeded()`)
140 | /// for this resource are in progress.
141 | @objc
| `- error: Objective-C interoperability is disabled
142 | public var isLoading: Bool
143 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:150:6: error: Objective-C interoperability is disabled
148 |
149 | /// True if any requests for this resource are in progress.
150 | @objc
| `- error: Objective-C interoperability is disabled
151 | public var isRequesting: Bool
152 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:312:6: error: Objective-C interoperability is disabled
310 | - the timestamp on `latestError` is more recent than `retryTime` seconds ago.
311 | */
312 | @objc
| `- error: Objective-C interoperability is disabled
313 | public var isUpToDate: Bool
314 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:489:6: error: Objective-C interoperability is disabled
487 | If this resource has no observers, cancels all `loadRequests`.
488 | */
489 | @objc
| `- error: Objective-C interoperability is disabled
490 | public func cancelLoadIfUnobserved()
491 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:511:6: error: Objective-C interoperability is disabled
509 | The `callback` is called after the given delay, regardless of whether the request was cancelled.
510 | */
511 | @objc
| `- error: Objective-C interoperability is disabled
512 | public func cancelLoadIfUnobserved(afterDelay delay: TimeInterval, then callback: @escaping () -> Void = {})
513 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:633:6: error: Objective-C interoperability is disabled
631 | If this resource has no content, this method sets the content type to `application/binary`.
632 | */
633 | @objc
| `- error: Objective-C interoperability is disabled
634 | public func overrideLocalContent(with content: Any)
635 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:653:6: error: Objective-C interoperability is disabled
651 | - SeeAlso: `wipe()`
652 | */
653 | @objc
| `- error: Objective-C interoperability is disabled
654 | public func invalidate()
655 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:673:6: error: Objective-C interoperability is disabled
671 | - SeeAlso: `invalidate()`
672 | */
673 | @objc
| `- error: Objective-C interoperability is disabled
674 | public func wipe()
675 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:56:9: error: cannot find 'DispatchQueue' in scope
54 | public func configuration(for method: RequestMethod) -> Configuration
55 | {
56 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
57 |
58 | if permanentFailure != nil // Resources with invalid URLs aren’t configurable
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:127:9: error: cannot find 'DispatchQueue' in scope
125 | public var timestamp: TimeInterval
126 | {
127 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
128 |
129 | return max(
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:144:9: error: cannot find 'DispatchQueue' in scope
142 | public var isLoading: Bool
143 | {
144 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
145 |
146 | return !loadRequests.isEmpty
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:153:9: error: cannot find 'DispatchQueue' in scope
151 | public var isRequesting: Bool
152 | {
153 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
154 |
155 | return !allRequests.isEmpty
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:168:9: error: cannot find 'DispatchQueue' in scope
166 | internal init(service: Service, url: URL)
167 | {
168 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
169 |
170 | self.service = service
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:179:9: error: cannot find 'DispatchQueue' in scope
177 | internal init(service: Service, invalidURLSource: URLConvertible?)
178 | {
179 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
180 |
181 | self.service = service
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:260:9: error: cannot find 'DispatchQueue' in scope
258 | -> Request
259 | {
260 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
261 |
262 | if let permanentFailure = permanentFailure
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:269:37: error: cannot find 'URLRequest' in scope
267 | let delegate = NetworkRequestDelegate(resource: self)
268 | {
269 | var underlyingRequest = URLRequest(url: self.url)
| `- error: cannot find 'URLRequest' in scope
270 | underlyingRequest.httpMethod = method.rawValue.uppercased()
271 | let config = self.configuration(for: method)
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:29:62: error: cannot find type 'URLRequest' in scope
27 | // MARK: Managing request
28 |
29 | init(resource: Resource, requestBuilder: @escaping () -> URLRequest)
| `- error: cannot find type 'URLRequest' in scope
30 | {
31 | self.resource = resource
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:29:46: error: '@escaping' only applies to function types
27 | // MARK: Managing request
28 |
29 | init(resource: Resource, requestBuilder: @escaping () -> URLRequest)
| `- error: '@escaping' only applies to function types
30 | {
31 | self.resource = resource
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:365:9: error: cannot find 'DispatchQueue' in scope
363 | public func loadIfNeeded() -> Request?
364 | {
365 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
366 |
367 | if let loadReq = loadRequests.first
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:442:28: error: cannot infer contextual base in reference to member 'get'
440 | public func load() -> Request
441 | {
442 | let req = request(.get)
| `- error: cannot infer contextual base in reference to member 'get'
443 | {
444 | underlyingRequest in
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:471:9: error: cannot find 'DispatchQueue' in scope
469 | public func load(using req: Request) -> Request
470 | {
471 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
472 |
473 | trackRequest(req, in: &loadRequests)
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:492:9: error: cannot find 'DispatchQueue' in scope
490 | public func cancelLoadIfUnobserved()
491 | {
492 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
493 |
494 | guard !beingObserved else
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:514:9: error: cannot find 'DispatchQueue' in scope
512 | public func cancelLoadIfUnobserved(afterDelay delay: TimeInterval, then callback: @escaping () -> Void = {})
513 | {
514 | DispatchQueue.main.asyncAfter(deadline: .now() + delay)
| `- error: cannot find 'DispatchQueue' in scope
515 | {
516 | self.cancelLoadIfUnobserved()
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:514:50: error: cannot call value of non-function type 'Date'
512 | public func cancelLoadIfUnobserved(afterDelay delay: TimeInterval, then callback: @escaping () -> Void = {})
513 | {
514 | DispatchQueue.main.asyncAfter(deadline: .now() + delay)
| `- error: cannot call value of non-function type 'Date'
515 | {
516 | self.cancelLoadIfUnobserved()
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:537:9: error: cannot find 'DispatchQueue' in scope
535 | private func receiveNewData(_ entity: Entity<Any>, source: ResourceEvent.NewDataSource)
536 | {
537 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
538 |
539 | SiestaLog.log(.stateChanges, [self, "received new data from", source, ":", entity])
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:656:9: error: cannot find 'DispatchQueue' in scope
654 | public func invalidate()
655 | {
656 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
657 |
658 | invalidated = true
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:676:9: error: cannot find 'DispatchQueue' in scope
674 | public func wipe()
675 | {
676 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
677 |
678 | SiestaLog.log(.stateChanges, [self, "wiped"])
[65/90] Compiling Siesta RequestCreation.swift
/host/spi-builder-workspace/Source/Siesta/Request/RequestCallbacks.swift:59:9: error: cannot find 'DispatchQueue' in scope
57 | mutating func addCallback(_ callback: @escaping (CallbackArguments) -> Void)
58 | {
59 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
60 |
61 | if let completedValue = completedValue
/host/spi-builder-workspace/Source/Siesta/Request/RequestCallbacks.swift:66:13: error: cannot find 'DispatchQueue' in scope
64 | // caller can finish their business first.
65 |
66 | DispatchQueue.main.async
| `- error: cannot find 'DispatchQueue' in scope
67 | { callback(completedValue) }
68 | }
/host/spi-builder-workspace/Source/Siesta/Request/RequestCallbacks.swift:77:9: error: cannot find 'DispatchQueue' in scope
75 | func notify(_ arguments: CallbackArguments)
76 | {
77 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
78 |
79 | // Note that callbacks will be [] after notifyOfCompletion() called, so this becomes a noop.
/host/spi-builder-workspace/Source/Siesta/Request/RequestCallbacks.swift:97:9: error: cannot find 'DispatchQueue' in scope
95 |
96 | let snapshot = self
97 | DispatchQueue.main.async
| `- error: cannot find 'DispatchQueue' in scope
98 | { snapshot.notify(arguments) }
99 |
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:222:47: error: cannot find type 'URLRequest' in scope
220 | - SeeAlso: `Resource.request(...)`
221 | */
222 | public typealias RequestMutation = (inout URLRequest) -> Void
| `- error: cannot find type 'URLRequest' in scope
223 |
224 | /**
/host/spi-builder-workspace/Source/Siesta/Request/RequestCreation.swift:30:30: error: '@escaping' only applies to function types
28 | data: Data,
29 | contentType: String,
30 | requestMutation: @escaping RequestMutation = { _ in })
| `- error: '@escaping' only applies to function types
31 | -> Request
32 | {
/host/spi-builder-workspace/Source/Siesta/Request/RequestCreation.swift:57:30: error: '@escaping' only applies to function types
55 | contentType: String = "text/plain",
56 | encoding: String.Encoding = String.Encoding.utf8,
57 | requestMutation: @escaping RequestMutation = { _ in })
| `- error: '@escaping' only applies to function types
58 | -> Request
59 | {
/host/spi-builder-workspace/Source/Siesta/Request/RequestCreation.swift:88:30: error: '@escaping' only applies to function types
86 | json: JSONConvertible,
87 | contentType: String = "application/json",
88 | requestMutation: @escaping RequestMutation = { _ in })
| `- error: '@escaping' only applies to function types
89 | -> Request
90 | {
/host/spi-builder-workspace/Source/Siesta/Request/RequestCreation.swift:127:32: error: '@escaping' only applies to function types
125 | _ method: RequestMethod,
126 | urlEncoded params: [String:String],
127 | requestMutation: @escaping RequestMutation = { _ in })
| `- error: '@escaping' only applies to function types
128 | -> Request
129 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:257:44: error: '@escaping' only applies to function types
255 | public func request(
256 | _ method: RequestMethod,
257 | requestMutation adHocMutation: @escaping RequestMutation = { _ in })
| `- error: '@escaping' only applies to function types
258 | -> Request
259 | {
/host/spi-builder-workspace/Source/Siesta/Request/RequestCreation.swift:62:19: error: cannot find 'CFStringConvertEncodingToIANACharSetName' in scope
60 | guard let rawBody = text.data(using: encoding),
61 | let encodingName =
62 | CFStringConvertEncodingToIANACharSetName(
| `- error: cannot find 'CFStringConvertEncodingToIANACharSetName' in scope
63 | CFStringConvertNSStringEncodingToEncoding(
64 | encoding.rawValue))
/host/spi-builder-workspace/Source/Siesta/Request/RequestCreation.swift:63:23: error: cannot find 'CFStringConvertNSStringEncodingToEncoding' in scope
61 | let encodingName =
62 | CFStringConvertEncodingToIANACharSetName(
63 | CFStringConvertNSStringEncodingToEncoding(
| `- error: cannot find 'CFStringConvertNSStringEncodingToEncoding' in scope
64 | encoding.rawValue))
65 | else
/host/spi-builder-workspace/Source/Siesta/RequestError.swift:61:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 | */
60 | public init(
61 | response: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | content: Any?,
63 | cause: Error?,
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/Source/Siesta/RequestError.swift:66:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
64 | userMessage: String? = nil)
65 | {
66 | self.httpStatusCode = response?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
67 | self.cause = cause
68 |
/host/spi-builder-workspace/Source/Siesta/RequestError.swift:77:50: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
75 | { self.userMessage = message }
76 | else if let code = self.httpStatusCode
77 | { self.userMessage = HTTPURLResponse.localizedString(forStatusCode: code).capitalized }
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
78 | else
79 | { self.userMessage = NSLocalizedString("Request failed", comment: "userMessage") } // Is this reachable?
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:26:2: error: Objective-C interoperability is disabled
24 | questions changes.
25 | */
26 | @objc(BOSResource)
| `- error: Objective-C interoperability is disabled
27 | public final class Resource: NSObject
28 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:32:6: error: Objective-C interoperability is disabled
30 |
31 | /// The API to which this resource belongs. Provides configuration defaults and instance uniqueness.
32 | @objc
| `- error: Objective-C interoperability is disabled
33 | public let service: Service
34 |
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:36:6: error: Objective-C interoperability is disabled
34 |
35 | /// The canoncial URL of this resource.
36 | @objc
| `- error: Objective-C interoperability is disabled
37 | public let url: URL
38 |
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:71:46: error: cannot find type 'URLRequest' in scope
69 | }
70 |
71 | internal func configuration(for request: URLRequest) -> Configuration
| `- error: cannot find type 'URLRequest' in scope
72 | {
73 | return configuration(for:
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:124:6: error: Objective-C interoperability is disabled
122 |
123 | /// The time of the most recent update to either `latestData` or `latestError`.
124 | @objc
| `- error: Objective-C interoperability is disabled
125 | public var timestamp: TimeInterval
126 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:141:6: error: Objective-C interoperability is disabled
139 | /// True if any load requests (i.e. from calls to `load(...)` and `loadIfNeeded()`)
140 | /// for this resource are in progress.
141 | @objc
| `- error: Objective-C interoperability is disabled
142 | public var isLoading: Bool
143 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:150:6: error: Objective-C interoperability is disabled
148 |
149 | /// True if any requests for this resource are in progress.
150 | @objc
| `- error: Objective-C interoperability is disabled
151 | public var isRequesting: Bool
152 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:312:6: error: Objective-C interoperability is disabled
310 | - the timestamp on `latestError` is more recent than `retryTime` seconds ago.
311 | */
312 | @objc
| `- error: Objective-C interoperability is disabled
313 | public var isUpToDate: Bool
314 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:489:6: error: Objective-C interoperability is disabled
487 | If this resource has no observers, cancels all `loadRequests`.
488 | */
489 | @objc
| `- error: Objective-C interoperability is disabled
490 | public func cancelLoadIfUnobserved()
491 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:511:6: error: Objective-C interoperability is disabled
509 | The `callback` is called after the given delay, regardless of whether the request was cancelled.
510 | */
511 | @objc
| `- error: Objective-C interoperability is disabled
512 | public func cancelLoadIfUnobserved(afterDelay delay: TimeInterval, then callback: @escaping () -> Void = {})
513 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:633:6: error: Objective-C interoperability is disabled
631 | If this resource has no content, this method sets the content type to `application/binary`.
632 | */
633 | @objc
| `- error: Objective-C interoperability is disabled
634 | public func overrideLocalContent(with content: Any)
635 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:653:6: error: Objective-C interoperability is disabled
651 | - SeeAlso: `wipe()`
652 | */
653 | @objc
| `- error: Objective-C interoperability is disabled
654 | public func invalidate()
655 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:673:6: error: Objective-C interoperability is disabled
671 | - SeeAlso: `invalidate()`
672 | */
673 | @objc
| `- error: Objective-C interoperability is disabled
674 | public func wipe()
675 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:56:9: error: cannot find 'DispatchQueue' in scope
54 | public func configuration(for method: RequestMethod) -> Configuration
55 | {
56 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
57 |
58 | if permanentFailure != nil // Resources with invalid URLs aren’t configurable
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:127:9: error: cannot find 'DispatchQueue' in scope
125 | public var timestamp: TimeInterval
126 | {
127 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
128 |
129 | return max(
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:144:9: error: cannot find 'DispatchQueue' in scope
142 | public var isLoading: Bool
143 | {
144 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
145 |
146 | return !loadRequests.isEmpty
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:153:9: error: cannot find 'DispatchQueue' in scope
151 | public var isRequesting: Bool
152 | {
153 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
154 |
155 | return !allRequests.isEmpty
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:168:9: error: cannot find 'DispatchQueue' in scope
166 | internal init(service: Service, url: URL)
167 | {
168 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
169 |
170 | self.service = service
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:179:9: error: cannot find 'DispatchQueue' in scope
177 | internal init(service: Service, invalidURLSource: URLConvertible?)
178 | {
179 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
180 |
181 | self.service = service
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:260:9: error: cannot find 'DispatchQueue' in scope
258 | -> Request
259 | {
260 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
261 |
262 | if let permanentFailure = permanentFailure
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:269:37: error: cannot find 'URLRequest' in scope
267 | let delegate = NetworkRequestDelegate(resource: self)
268 | {
269 | var underlyingRequest = URLRequest(url: self.url)
| `- error: cannot find 'URLRequest' in scope
270 | underlyingRequest.httpMethod = method.rawValue.uppercased()
271 | let config = self.configuration(for: method)
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:29:62: error: cannot find type 'URLRequest' in scope
27 | // MARK: Managing request
28 |
29 | init(resource: Resource, requestBuilder: @escaping () -> URLRequest)
| `- error: cannot find type 'URLRequest' in scope
30 | {
31 | self.resource = resource
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:29:46: error: '@escaping' only applies to function types
27 | // MARK: Managing request
28 |
29 | init(resource: Resource, requestBuilder: @escaping () -> URLRequest)
| `- error: '@escaping' only applies to function types
30 | {
31 | self.resource = resource
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:365:9: error: cannot find 'DispatchQueue' in scope
363 | public func loadIfNeeded() -> Request?
364 | {
365 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
366 |
367 | if let loadReq = loadRequests.first
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:442:28: error: cannot infer contextual base in reference to member 'get'
440 | public func load() -> Request
441 | {
442 | let req = request(.get)
| `- error: cannot infer contextual base in reference to member 'get'
443 | {
444 | underlyingRequest in
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:471:9: error: cannot find 'DispatchQueue' in scope
469 | public func load(using req: Request) -> Request
470 | {
471 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
472 |
473 | trackRequest(req, in: &loadRequests)
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:492:9: error: cannot find 'DispatchQueue' in scope
490 | public func cancelLoadIfUnobserved()
491 | {
492 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
493 |
494 | guard !beingObserved else
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:514:9: error: cannot find 'DispatchQueue' in scope
512 | public func cancelLoadIfUnobserved(afterDelay delay: TimeInterval, then callback: @escaping () -> Void = {})
513 | {
514 | DispatchQueue.main.asyncAfter(deadline: .now() + delay)
| `- error: cannot find 'DispatchQueue' in scope
515 | {
516 | self.cancelLoadIfUnobserved()
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:514:50: error: cannot call value of non-function type 'Date'
512 | public func cancelLoadIfUnobserved(afterDelay delay: TimeInterval, then callback: @escaping () -> Void = {})
513 | {
514 | DispatchQueue.main.asyncAfter(deadline: .now() + delay)
| `- error: cannot call value of non-function type 'Date'
515 | {
516 | self.cancelLoadIfUnobserved()
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:537:9: error: cannot find 'DispatchQueue' in scope
535 | private func receiveNewData(_ entity: Entity<Any>, source: ResourceEvent.NewDataSource)
536 | {
537 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
538 |
539 | SiestaLog.log(.stateChanges, [self, "received new data from", source, ":", entity])
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:656:9: error: cannot find 'DispatchQueue' in scope
654 | public func invalidate()
655 | {
656 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
657 |
658 | invalidated = true
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:676:9: error: cannot find 'DispatchQueue' in scope
674 | public func wipe()
675 | {
676 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
677 |
678 | SiestaLog.log(.stateChanges, [self, "wiped"])
[66/90] Compiling Siesta RequestError.swift
/host/spi-builder-workspace/Source/Siesta/Request/RequestCallbacks.swift:59:9: error: cannot find 'DispatchQueue' in scope
57 | mutating func addCallback(_ callback: @escaping (CallbackArguments) -> Void)
58 | {
59 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
60 |
61 | if let completedValue = completedValue
/host/spi-builder-workspace/Source/Siesta/Request/RequestCallbacks.swift:66:13: error: cannot find 'DispatchQueue' in scope
64 | // caller can finish their business first.
65 |
66 | DispatchQueue.main.async
| `- error: cannot find 'DispatchQueue' in scope
67 | { callback(completedValue) }
68 | }
/host/spi-builder-workspace/Source/Siesta/Request/RequestCallbacks.swift:77:9: error: cannot find 'DispatchQueue' in scope
75 | func notify(_ arguments: CallbackArguments)
76 | {
77 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
78 |
79 | // Note that callbacks will be [] after notifyOfCompletion() called, so this becomes a noop.
/host/spi-builder-workspace/Source/Siesta/Request/RequestCallbacks.swift:97:9: error: cannot find 'DispatchQueue' in scope
95 |
96 | let snapshot = self
97 | DispatchQueue.main.async
| `- error: cannot find 'DispatchQueue' in scope
98 | { snapshot.notify(arguments) }
99 |
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:222:47: error: cannot find type 'URLRequest' in scope
220 | - SeeAlso: `Resource.request(...)`
221 | */
222 | public typealias RequestMutation = (inout URLRequest) -> Void
| `- error: cannot find type 'URLRequest' in scope
223 |
224 | /**
/host/spi-builder-workspace/Source/Siesta/Request/RequestCreation.swift:30:30: error: '@escaping' only applies to function types
28 | data: Data,
29 | contentType: String,
30 | requestMutation: @escaping RequestMutation = { _ in })
| `- error: '@escaping' only applies to function types
31 | -> Request
32 | {
/host/spi-builder-workspace/Source/Siesta/Request/RequestCreation.swift:57:30: error: '@escaping' only applies to function types
55 | contentType: String = "text/plain",
56 | encoding: String.Encoding = String.Encoding.utf8,
57 | requestMutation: @escaping RequestMutation = { _ in })
| `- error: '@escaping' only applies to function types
58 | -> Request
59 | {
/host/spi-builder-workspace/Source/Siesta/Request/RequestCreation.swift:88:30: error: '@escaping' only applies to function types
86 | json: JSONConvertible,
87 | contentType: String = "application/json",
88 | requestMutation: @escaping RequestMutation = { _ in })
| `- error: '@escaping' only applies to function types
89 | -> Request
90 | {
/host/spi-builder-workspace/Source/Siesta/Request/RequestCreation.swift:127:32: error: '@escaping' only applies to function types
125 | _ method: RequestMethod,
126 | urlEncoded params: [String:String],
127 | requestMutation: @escaping RequestMutation = { _ in })
| `- error: '@escaping' only applies to function types
128 | -> Request
129 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:257:44: error: '@escaping' only applies to function types
255 | public func request(
256 | _ method: RequestMethod,
257 | requestMutation adHocMutation: @escaping RequestMutation = { _ in })
| `- error: '@escaping' only applies to function types
258 | -> Request
259 | {
/host/spi-builder-workspace/Source/Siesta/Request/RequestCreation.swift:62:19: error: cannot find 'CFStringConvertEncodingToIANACharSetName' in scope
60 | guard let rawBody = text.data(using: encoding),
61 | let encodingName =
62 | CFStringConvertEncodingToIANACharSetName(
| `- error: cannot find 'CFStringConvertEncodingToIANACharSetName' in scope
63 | CFStringConvertNSStringEncodingToEncoding(
64 | encoding.rawValue))
/host/spi-builder-workspace/Source/Siesta/Request/RequestCreation.swift:63:23: error: cannot find 'CFStringConvertNSStringEncodingToEncoding' in scope
61 | let encodingName =
62 | CFStringConvertEncodingToIANACharSetName(
63 | CFStringConvertNSStringEncodingToEncoding(
| `- error: cannot find 'CFStringConvertNSStringEncodingToEncoding' in scope
64 | encoding.rawValue))
65 | else
/host/spi-builder-workspace/Source/Siesta/RequestError.swift:61:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 | */
60 | public init(
61 | response: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | content: Any?,
63 | cause: Error?,
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/Source/Siesta/RequestError.swift:66:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
64 | userMessage: String? = nil)
65 | {
66 | self.httpStatusCode = response?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
67 | self.cause = cause
68 |
/host/spi-builder-workspace/Source/Siesta/RequestError.swift:77:50: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
75 | { self.userMessage = message }
76 | else if let code = self.httpStatusCode
77 | { self.userMessage = HTTPURLResponse.localizedString(forStatusCode: code).capitalized }
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
78 | else
79 | { self.userMessage = NSLocalizedString("Request failed", comment: "userMessage") } // Is this reachable?
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:26:2: error: Objective-C interoperability is disabled
24 | questions changes.
25 | */
26 | @objc(BOSResource)
| `- error: Objective-C interoperability is disabled
27 | public final class Resource: NSObject
28 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:32:6: error: Objective-C interoperability is disabled
30 |
31 | /// The API to which this resource belongs. Provides configuration defaults and instance uniqueness.
32 | @objc
| `- error: Objective-C interoperability is disabled
33 | public let service: Service
34 |
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:36:6: error: Objective-C interoperability is disabled
34 |
35 | /// The canoncial URL of this resource.
36 | @objc
| `- error: Objective-C interoperability is disabled
37 | public let url: URL
38 |
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:71:46: error: cannot find type 'URLRequest' in scope
69 | }
70 |
71 | internal func configuration(for request: URLRequest) -> Configuration
| `- error: cannot find type 'URLRequest' in scope
72 | {
73 | return configuration(for:
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:124:6: error: Objective-C interoperability is disabled
122 |
123 | /// The time of the most recent update to either `latestData` or `latestError`.
124 | @objc
| `- error: Objective-C interoperability is disabled
125 | public var timestamp: TimeInterval
126 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:141:6: error: Objective-C interoperability is disabled
139 | /// True if any load requests (i.e. from calls to `load(...)` and `loadIfNeeded()`)
140 | /// for this resource are in progress.
141 | @objc
| `- error: Objective-C interoperability is disabled
142 | public var isLoading: Bool
143 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:150:6: error: Objective-C interoperability is disabled
148 |
149 | /// True if any requests for this resource are in progress.
150 | @objc
| `- error: Objective-C interoperability is disabled
151 | public var isRequesting: Bool
152 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:312:6: error: Objective-C interoperability is disabled
310 | - the timestamp on `latestError` is more recent than `retryTime` seconds ago.
311 | */
312 | @objc
| `- error: Objective-C interoperability is disabled
313 | public var isUpToDate: Bool
314 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:489:6: error: Objective-C interoperability is disabled
487 | If this resource has no observers, cancels all `loadRequests`.
488 | */
489 | @objc
| `- error: Objective-C interoperability is disabled
490 | public func cancelLoadIfUnobserved()
491 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:511:6: error: Objective-C interoperability is disabled
509 | The `callback` is called after the given delay, regardless of whether the request was cancelled.
510 | */
511 | @objc
| `- error: Objective-C interoperability is disabled
512 | public func cancelLoadIfUnobserved(afterDelay delay: TimeInterval, then callback: @escaping () -> Void = {})
513 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:633:6: error: Objective-C interoperability is disabled
631 | If this resource has no content, this method sets the content type to `application/binary`.
632 | */
633 | @objc
| `- error: Objective-C interoperability is disabled
634 | public func overrideLocalContent(with content: Any)
635 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:653:6: error: Objective-C interoperability is disabled
651 | - SeeAlso: `wipe()`
652 | */
653 | @objc
| `- error: Objective-C interoperability is disabled
654 | public func invalidate()
655 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:673:6: error: Objective-C interoperability is disabled
671 | - SeeAlso: `invalidate()`
672 | */
673 | @objc
| `- error: Objective-C interoperability is disabled
674 | public func wipe()
675 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:56:9: error: cannot find 'DispatchQueue' in scope
54 | public func configuration(for method: RequestMethod) -> Configuration
55 | {
56 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
57 |
58 | if permanentFailure != nil // Resources with invalid URLs aren’t configurable
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:127:9: error: cannot find 'DispatchQueue' in scope
125 | public var timestamp: TimeInterval
126 | {
127 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
128 |
129 | return max(
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:144:9: error: cannot find 'DispatchQueue' in scope
142 | public var isLoading: Bool
143 | {
144 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
145 |
146 | return !loadRequests.isEmpty
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:153:9: error: cannot find 'DispatchQueue' in scope
151 | public var isRequesting: Bool
152 | {
153 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
154 |
155 | return !allRequests.isEmpty
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:168:9: error: cannot find 'DispatchQueue' in scope
166 | internal init(service: Service, url: URL)
167 | {
168 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
169 |
170 | self.service = service
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:179:9: error: cannot find 'DispatchQueue' in scope
177 | internal init(service: Service, invalidURLSource: URLConvertible?)
178 | {
179 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
180 |
181 | self.service = service
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:260:9: error: cannot find 'DispatchQueue' in scope
258 | -> Request
259 | {
260 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
261 |
262 | if let permanentFailure = permanentFailure
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:269:37: error: cannot find 'URLRequest' in scope
267 | let delegate = NetworkRequestDelegate(resource: self)
268 | {
269 | var underlyingRequest = URLRequest(url: self.url)
| `- error: cannot find 'URLRequest' in scope
270 | underlyingRequest.httpMethod = method.rawValue.uppercased()
271 | let config = self.configuration(for: method)
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:29:62: error: cannot find type 'URLRequest' in scope
27 | // MARK: Managing request
28 |
29 | init(resource: Resource, requestBuilder: @escaping () -> URLRequest)
| `- error: cannot find type 'URLRequest' in scope
30 | {
31 | self.resource = resource
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:29:46: error: '@escaping' only applies to function types
27 | // MARK: Managing request
28 |
29 | init(resource: Resource, requestBuilder: @escaping () -> URLRequest)
| `- error: '@escaping' only applies to function types
30 | {
31 | self.resource = resource
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:365:9: error: cannot find 'DispatchQueue' in scope
363 | public func loadIfNeeded() -> Request?
364 | {
365 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
366 |
367 | if let loadReq = loadRequests.first
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:442:28: error: cannot infer contextual base in reference to member 'get'
440 | public func load() -> Request
441 | {
442 | let req = request(.get)
| `- error: cannot infer contextual base in reference to member 'get'
443 | {
444 | underlyingRequest in
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:471:9: error: cannot find 'DispatchQueue' in scope
469 | public func load(using req: Request) -> Request
470 | {
471 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
472 |
473 | trackRequest(req, in: &loadRequests)
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:492:9: error: cannot find 'DispatchQueue' in scope
490 | public func cancelLoadIfUnobserved()
491 | {
492 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
493 |
494 | guard !beingObserved else
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:514:9: error: cannot find 'DispatchQueue' in scope
512 | public func cancelLoadIfUnobserved(afterDelay delay: TimeInterval, then callback: @escaping () -> Void = {})
513 | {
514 | DispatchQueue.main.asyncAfter(deadline: .now() + delay)
| `- error: cannot find 'DispatchQueue' in scope
515 | {
516 | self.cancelLoadIfUnobserved()
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:514:50: error: cannot call value of non-function type 'Date'
512 | public func cancelLoadIfUnobserved(afterDelay delay: TimeInterval, then callback: @escaping () -> Void = {})
513 | {
514 | DispatchQueue.main.asyncAfter(deadline: .now() + delay)
| `- error: cannot call value of non-function type 'Date'
515 | {
516 | self.cancelLoadIfUnobserved()
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:537:9: error: cannot find 'DispatchQueue' in scope
535 | private func receiveNewData(_ entity: Entity<Any>, source: ResourceEvent.NewDataSource)
536 | {
537 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
538 |
539 | SiestaLog.log(.stateChanges, [self, "received new data from", source, ":", entity])
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:656:9: error: cannot find 'DispatchQueue' in scope
654 | public func invalidate()
655 | {
656 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
657 |
658 | invalidated = true
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:676:9: error: cannot find 'DispatchQueue' in scope
674 | public func wipe()
675 | {
676 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
677 |
678 | SiestaLog.log(.stateChanges, [self, "wiped"])
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Alamofire.swift:25:8: error: no such module 'Dispatch'
23 | //
24 |
25 | import Dispatch
| `- error: no such module 'Dispatch'
26 | import Foundation
27 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Alamofire.swift:25:8: error: no such module 'Dispatch'
23 | //
24 |
25 | import Dispatch
| `- error: no such module 'Dispatch'
26 | import Foundation
27 | #if canImport(FoundationNetworking)
[69/90] Compiling Siesta Resource.swift
/host/spi-builder-workspace/Source/Siesta/Request/RequestCallbacks.swift:59:9: error: cannot find 'DispatchQueue' in scope
57 | mutating func addCallback(_ callback: @escaping (CallbackArguments) -> Void)
58 | {
59 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
60 |
61 | if let completedValue = completedValue
/host/spi-builder-workspace/Source/Siesta/Request/RequestCallbacks.swift:66:13: error: cannot find 'DispatchQueue' in scope
64 | // caller can finish their business first.
65 |
66 | DispatchQueue.main.async
| `- error: cannot find 'DispatchQueue' in scope
67 | { callback(completedValue) }
68 | }
/host/spi-builder-workspace/Source/Siesta/Request/RequestCallbacks.swift:77:9: error: cannot find 'DispatchQueue' in scope
75 | func notify(_ arguments: CallbackArguments)
76 | {
77 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
78 |
79 | // Note that callbacks will be [] after notifyOfCompletion() called, so this becomes a noop.
/host/spi-builder-workspace/Source/Siesta/Request/RequestCallbacks.swift:97:9: error: cannot find 'DispatchQueue' in scope
95 |
96 | let snapshot = self
97 | DispatchQueue.main.async
| `- error: cannot find 'DispatchQueue' in scope
98 | { snapshot.notify(arguments) }
99 |
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:222:47: error: cannot find type 'URLRequest' in scope
220 | - SeeAlso: `Resource.request(...)`
221 | */
222 | public typealias RequestMutation = (inout URLRequest) -> Void
| `- error: cannot find type 'URLRequest' in scope
223 |
224 | /**
/host/spi-builder-workspace/Source/Siesta/Request/RequestCreation.swift:30:30: error: '@escaping' only applies to function types
28 | data: Data,
29 | contentType: String,
30 | requestMutation: @escaping RequestMutation = { _ in })
| `- error: '@escaping' only applies to function types
31 | -> Request
32 | {
/host/spi-builder-workspace/Source/Siesta/Request/RequestCreation.swift:57:30: error: '@escaping' only applies to function types
55 | contentType: String = "text/plain",
56 | encoding: String.Encoding = String.Encoding.utf8,
57 | requestMutation: @escaping RequestMutation = { _ in })
| `- error: '@escaping' only applies to function types
58 | -> Request
59 | {
/host/spi-builder-workspace/Source/Siesta/Request/RequestCreation.swift:88:30: error: '@escaping' only applies to function types
86 | json: JSONConvertible,
87 | contentType: String = "application/json",
88 | requestMutation: @escaping RequestMutation = { _ in })
| `- error: '@escaping' only applies to function types
89 | -> Request
90 | {
/host/spi-builder-workspace/Source/Siesta/Request/RequestCreation.swift:127:32: error: '@escaping' only applies to function types
125 | _ method: RequestMethod,
126 | urlEncoded params: [String:String],
127 | requestMutation: @escaping RequestMutation = { _ in })
| `- error: '@escaping' only applies to function types
128 | -> Request
129 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:257:44: error: '@escaping' only applies to function types
255 | public func request(
256 | _ method: RequestMethod,
257 | requestMutation adHocMutation: @escaping RequestMutation = { _ in })
| `- error: '@escaping' only applies to function types
258 | -> Request
259 | {
/host/spi-builder-workspace/Source/Siesta/Request/RequestCreation.swift:62:19: error: cannot find 'CFStringConvertEncodingToIANACharSetName' in scope
60 | guard let rawBody = text.data(using: encoding),
61 | let encodingName =
62 | CFStringConvertEncodingToIANACharSetName(
| `- error: cannot find 'CFStringConvertEncodingToIANACharSetName' in scope
63 | CFStringConvertNSStringEncodingToEncoding(
64 | encoding.rawValue))
/host/spi-builder-workspace/Source/Siesta/Request/RequestCreation.swift:63:23: error: cannot find 'CFStringConvertNSStringEncodingToEncoding' in scope
61 | let encodingName =
62 | CFStringConvertEncodingToIANACharSetName(
63 | CFStringConvertNSStringEncodingToEncoding(
| `- error: cannot find 'CFStringConvertNSStringEncodingToEncoding' in scope
64 | encoding.rawValue))
65 | else
/host/spi-builder-workspace/Source/Siesta/RequestError.swift:61:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 | */
60 | public init(
61 | response: HTTPURLResponse?,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | content: Any?,
63 | cause: Error?,
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/Source/Siesta/RequestError.swift:66:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
64 | userMessage: String? = nil)
65 | {
66 | self.httpStatusCode = response?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
67 | self.cause = cause
68 |
/host/spi-builder-workspace/Source/Siesta/RequestError.swift:77:50: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
75 | { self.userMessage = message }
76 | else if let code = self.httpStatusCode
77 | { self.userMessage = HTTPURLResponse.localizedString(forStatusCode: code).capitalized }
| `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
78 | else
79 | { self.userMessage = NSLocalizedString("Request failed", comment: "userMessage") } // Is this reachable?
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:26:2: error: Objective-C interoperability is disabled
24 | questions changes.
25 | */
26 | @objc(BOSResource)
| `- error: Objective-C interoperability is disabled
27 | public final class Resource: NSObject
28 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:32:6: error: Objective-C interoperability is disabled
30 |
31 | /// The API to which this resource belongs. Provides configuration defaults and instance uniqueness.
32 | @objc
| `- error: Objective-C interoperability is disabled
33 | public let service: Service
34 |
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:36:6: error: Objective-C interoperability is disabled
34 |
35 | /// The canoncial URL of this resource.
36 | @objc
| `- error: Objective-C interoperability is disabled
37 | public let url: URL
38 |
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:71:46: error: cannot find type 'URLRequest' in scope
69 | }
70 |
71 | internal func configuration(for request: URLRequest) -> Configuration
| `- error: cannot find type 'URLRequest' in scope
72 | {
73 | return configuration(for:
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:124:6: error: Objective-C interoperability is disabled
122 |
123 | /// The time of the most recent update to either `latestData` or `latestError`.
124 | @objc
| `- error: Objective-C interoperability is disabled
125 | public var timestamp: TimeInterval
126 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:141:6: error: Objective-C interoperability is disabled
139 | /// True if any load requests (i.e. from calls to `load(...)` and `loadIfNeeded()`)
140 | /// for this resource are in progress.
141 | @objc
| `- error: Objective-C interoperability is disabled
142 | public var isLoading: Bool
143 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:150:6: error: Objective-C interoperability is disabled
148 |
149 | /// True if any requests for this resource are in progress.
150 | @objc
| `- error: Objective-C interoperability is disabled
151 | public var isRequesting: Bool
152 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:312:6: error: Objective-C interoperability is disabled
310 | - the timestamp on `latestError` is more recent than `retryTime` seconds ago.
311 | */
312 | @objc
| `- error: Objective-C interoperability is disabled
313 | public var isUpToDate: Bool
314 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:489:6: error: Objective-C interoperability is disabled
487 | If this resource has no observers, cancels all `loadRequests`.
488 | */
489 | @objc
| `- error: Objective-C interoperability is disabled
490 | public func cancelLoadIfUnobserved()
491 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:511:6: error: Objective-C interoperability is disabled
509 | The `callback` is called after the given delay, regardless of whether the request was cancelled.
510 | */
511 | @objc
| `- error: Objective-C interoperability is disabled
512 | public func cancelLoadIfUnobserved(afterDelay delay: TimeInterval, then callback: @escaping () -> Void = {})
513 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:633:6: error: Objective-C interoperability is disabled
631 | If this resource has no content, this method sets the content type to `application/binary`.
632 | */
633 | @objc
| `- error: Objective-C interoperability is disabled
634 | public func overrideLocalContent(with content: Any)
635 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:653:6: error: Objective-C interoperability is disabled
651 | - SeeAlso: `wipe()`
652 | */
653 | @objc
| `- error: Objective-C interoperability is disabled
654 | public func invalidate()
655 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:673:6: error: Objective-C interoperability is disabled
671 | - SeeAlso: `invalidate()`
672 | */
673 | @objc
| `- error: Objective-C interoperability is disabled
674 | public func wipe()
675 | {
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:56:9: error: cannot find 'DispatchQueue' in scope
54 | public func configuration(for method: RequestMethod) -> Configuration
55 | {
56 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
57 |
58 | if permanentFailure != nil // Resources with invalid URLs aren’t configurable
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:127:9: error: cannot find 'DispatchQueue' in scope
125 | public var timestamp: TimeInterval
126 | {
127 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
128 |
129 | return max(
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:144:9: error: cannot find 'DispatchQueue' in scope
142 | public var isLoading: Bool
143 | {
144 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
145 |
146 | return !loadRequests.isEmpty
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:153:9: error: cannot find 'DispatchQueue' in scope
151 | public var isRequesting: Bool
152 | {
153 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
154 |
155 | return !allRequests.isEmpty
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:168:9: error: cannot find 'DispatchQueue' in scope
166 | internal init(service: Service, url: URL)
167 | {
168 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
169 |
170 | self.service = service
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:179:9: error: cannot find 'DispatchQueue' in scope
177 | internal init(service: Service, invalidURLSource: URLConvertible?)
178 | {
179 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
180 |
181 | self.service = service
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:260:9: error: cannot find 'DispatchQueue' in scope
258 | -> Request
259 | {
260 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
261 |
262 | if let permanentFailure = permanentFailure
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:269:37: error: cannot find 'URLRequest' in scope
267 | let delegate = NetworkRequestDelegate(resource: self)
268 | {
269 | var underlyingRequest = URLRequest(url: self.url)
| `- error: cannot find 'URLRequest' in scope
270 | underlyingRequest.httpMethod = method.rawValue.uppercased()
271 | let config = self.configuration(for: method)
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:29:62: error: cannot find type 'URLRequest' in scope
27 | // MARK: Managing request
28 |
29 | init(resource: Resource, requestBuilder: @escaping () -> URLRequest)
| `- error: cannot find type 'URLRequest' in scope
30 | {
31 | self.resource = resource
/host/spi-builder-workspace/Source/Siesta/Request/NetworkRequest.swift:29:46: error: '@escaping' only applies to function types
27 | // MARK: Managing request
28 |
29 | init(resource: Resource, requestBuilder: @escaping () -> URLRequest)
| `- error: '@escaping' only applies to function types
30 | {
31 | self.resource = resource
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:365:9: error: cannot find 'DispatchQueue' in scope
363 | public func loadIfNeeded() -> Request?
364 | {
365 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
366 |
367 | if let loadReq = loadRequests.first
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:442:28: error: cannot infer contextual base in reference to member 'get'
440 | public func load() -> Request
441 | {
442 | let req = request(.get)
| `- error: cannot infer contextual base in reference to member 'get'
443 | {
444 | underlyingRequest in
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:471:9: error: cannot find 'DispatchQueue' in scope
469 | public func load(using req: Request) -> Request
470 | {
471 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
472 |
473 | trackRequest(req, in: &loadRequests)
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:492:9: error: cannot find 'DispatchQueue' in scope
490 | public func cancelLoadIfUnobserved()
491 | {
492 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
493 |
494 | guard !beingObserved else
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:514:9: error: cannot find 'DispatchQueue' in scope
512 | public func cancelLoadIfUnobserved(afterDelay delay: TimeInterval, then callback: @escaping () -> Void = {})
513 | {
514 | DispatchQueue.main.asyncAfter(deadline: .now() + delay)
| `- error: cannot find 'DispatchQueue' in scope
515 | {
516 | self.cancelLoadIfUnobserved()
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:514:50: error: cannot call value of non-function type 'Date'
512 | public func cancelLoadIfUnobserved(afterDelay delay: TimeInterval, then callback: @escaping () -> Void = {})
513 | {
514 | DispatchQueue.main.asyncAfter(deadline: .now() + delay)
| `- error: cannot call value of non-function type 'Date'
515 | {
516 | self.cancelLoadIfUnobserved()
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:537:9: error: cannot find 'DispatchQueue' in scope
535 | private func receiveNewData(_ entity: Entity<Any>, source: ResourceEvent.NewDataSource)
536 | {
537 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
538 |
539 | SiestaLog.log(.stateChanges, [self, "received new data from", source, ":", entity])
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:656:9: error: cannot find 'DispatchQueue' in scope
654 | public func invalidate()
655 | {
656 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
657 |
658 | invalidated = true
/host/spi-builder-workspace/Source/Siesta/Resource/Resource.swift:676:9: error: cannot find 'DispatchQueue' in scope
674 | public func wipe()
675 | {
676 | DispatchQueue.mainThreadPrecondition()
| `- error: cannot find 'DispatchQueue' in scope
677 |
678 | SiestaLog.log(.stateChanges, [self, "wiped"])
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Alamofire.swift:25:8: error: no such module 'Dispatch'
23 | //
24 |
25 | import Dispatch
| `- error: no such module 'Dispatch'
26 | import Foundation
27 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Alamofire.swift:25:8: error: no such module 'Dispatch'
23 | //
24 |
25 | import Dispatch
| `- error: no such module 'Dispatch'
26 | import Foundation
27 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Alamofire.swift:25:8: error: no such module 'Dispatch'
23 | //
24 |
25 | import Dispatch
| `- error: no such module 'Dispatch'
26 | import Foundation
27 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Alamofire.swift:25:8: error: no such module 'Dispatch'
23 | //
24 |
25 | import Dispatch
| `- error: no such module 'Dispatch'
26 | import Foundation
27 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Alamofire.swift:25:8: error: no such module 'Dispatch'
23 | //
24 |
25 | import Dispatch
| `- error: no such module 'Dispatch'
26 | import Foundation
27 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Alamofire.swift:25:8: error: no such module 'Dispatch'
23 | //
24 |
25 | import Dispatch
| `- error: no such module 'Dispatch'
26 | import Foundation
27 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Alamofire.swift:25:8: error: no such module 'Dispatch'
23 | //
24 |
25 | import Dispatch
| `- error: no such module 'Dispatch'
26 | import Foundation
27 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Alamofire.swift:25:8: error: no such module 'Dispatch'
23 | //
24 |
25 | import Dispatch
| `- error: no such module 'Dispatch'
26 | import Foundation
27 | #if canImport(FoundationNetworking)
[78/90] Compiling Alamofire StringEncoding+Alamofire.swift
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Alamofire.swift:25:8: error: no such module 'Dispatch'
23 | //
24 |
25 | import Dispatch
| `- error: no such module 'Dispatch'
26 | import Foundation
27 | #if canImport(FoundationNetworking)
[79/90] Compiling Alamofire URLRequest+Alamofire.swift
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Alamofire.swift:25:8: error: no such module 'Dispatch'
23 | //
24 |
25 | import Dispatch
| `- error: no such module 'Dispatch'
26 | import Foundation
27 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Alamofire.swift:25:8: error: no such module 'Dispatch'
23 | //
24 |
25 | import Dispatch
| `- error: no such module 'Dispatch'
26 | import Foundation
27 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Alamofire.swift:25:8: error: no such module 'Dispatch'
23 | //
24 |
25 | import Dispatch
| `- error: no such module 'Dispatch'
26 | import Foundation
27 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Alamofire.swift:25:8: error: no such module 'Dispatch'
23 | //
24 |
25 | import Dispatch
| `- error: no such module 'Dispatch'
26 | import Foundation
27 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Alamofire.swift:25:8: error: no such module 'Dispatch'
23 | //
24 |
25 | import Dispatch
| `- error: no such module 'Dispatch'
26 | import Foundation
27 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Alamofire.swift:25:8: error: no such module 'Dispatch'
23 | //
24 |
25 | import Dispatch
| `- error: no such module 'Dispatch'
26 | import Foundation
27 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/Alamofire.swift:25:8: error: no such module 'Dispatch'
23 | //
24 |
25 | import Dispatch
| `- error: no such module 'Dispatch'
26 | import Foundation
27 | #if canImport(FoundationNetworking)
BUILD FAILURE 6.3 wasm