Build Information
Failed to build PovioKit, reference develop (8ae4ae
), with Swift 6.1 for Wasm on 17 Jun 2025 13:10:27 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[22/93] Compiling PovioKitCore UIImage+PovioKit.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[23/93] Compiling PovioKitCore UIResponder+PovioKit.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[24/93] Compiling PovioKitCore UIWindow+PovioKit.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[25/93] Compiling PovioKitCore Logger.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[26/93] Compiling PovioKitAsync AsyncThrottleSequence.swift
/host/spi-builder-workspace/Sources/Async/AsyncThrottleSequence.swift:95:9: warning: type 'AsyncThrottleSequence<BaseSequence, C>.Element' (aka 'BaseSequence.Element') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
93 | public class Iterator: AsyncIteratorProtocol {
94 | var baseIterator: BaseSequence.AsyncIterator
95 | var taskInExecution: Task<Element?, Error>?
| `- warning: type 'AsyncThrottleSequence<BaseSequence, C>.Element' (aka 'BaseSequence.Element') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
96 | let clock: C
97 | let delayBetweenTasks: C.Duration
/host/spi-builder-workspace/Sources/Async/AsyncThrottleSequence.swift:121:32: warning: type 'BaseSequence.Element' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
119 | /// - Returns: The next element in the sequence, or `nil` if there are no more elements.
120 | public func next() async throws -> Element? {
121 | let task = lock.withLock {
| `- warning: type 'BaseSequence.Element' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
122 | taskInExecution?.cancel()
123 | taskInExecution = nil
/host/spi-builder-workspace/Sources/Async/AsyncThrottleSequence.swift:122:26: warning: type 'BaseSequence.Element' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
120 | public func next() async throws -> Element? {
121 | let task = lock.withLock {
122 | taskInExecution?.cancel()
| `- warning: type 'BaseSequence.Element' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
123 | taskInExecution = nil
124 | let task = Task {
/host/spi-builder-workspace/Sources/Async/AsyncThrottleSequence.swift:124:20: warning: type 'BaseSequence.Element' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
122 | taskInExecution?.cancel()
123 | taskInExecution = nil
124 | let task = Task {
| `- warning: type 'BaseSequence.Element' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
125 | try await Task.sleep(
126 | until: clock.now.advanced(by: delayBetweenTasks),
/host/spi-builder-workspace/Sources/Async/AsyncThrottleSequence.swift:124:20: warning: type 'BaseSequence.Element' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
122 | taskInExecution?.cancel()
123 | taskInExecution = nil
124 | let task = Task {
| `- warning: type 'BaseSequence.Element' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
125 | try await Task.sleep(
126 | until: clock.now.advanced(by: delayBetweenTasks),
/host/spi-builder-workspace/Sources/Async/AsyncThrottleSequence.swift:137:31: warning: type 'BaseSequence.Element' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
135 | }
136 | do {
137 | return try await task.value
| `- warning: type 'BaseSequence.Element' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
138 | } catch {
139 | if error is CancellationError {
/host/spi-builder-workspace/Sources/Async/AsyncThrottleSequence.swift:124:25: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
122 | taskInExecution?.cancel()
123 | taskInExecution = nil
124 | let task = Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
125 | try await Task.sleep(
126 | until: clock.now.advanced(by: delayBetweenTasks),
| `- note: closure captures 'self' which is accessible to code in the current task
127 | clock: clock
128 | )
[27/94] Compiling PovioKitPromise Race.swift
/host/spi-builder-workspace/Sources/PromiseKit/Race.swift:17:21: error: cannot find type 'DispatchQueue' in scope
15 | /// - Returns: The result of the first fullfiled promise in the collection wrapped in a promise.
16 | public func race<T, C: Collection>(
17 | on dispatchQueue: DispatchQueue = .main,
| `- error: cannot find type 'DispatchQueue' in scope
18 | promises: C
19 | ) -> Promise<T> where C.Element == Promise<T> {
/host/spi-builder-workspace/Sources/PromiseKit/Race.swift:25:19: error: cannot find 'DispatchQueue' in scope
23 |
24 | return .init { seal in
25 | let barrier = DispatchQueue(label: "com.poviokit.promisekit.barrier", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
26 | for promise in promises {
27 | promise.finally { result in
/host/spi-builder-workspace/Sources/PromiseKit/Race.swift:25:88: error: cannot infer contextual base in reference to member 'concurrent'
23 |
24 | return .init { seal in
25 | let barrier = DispatchQueue(label: "com.poviokit.promisekit.barrier", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
26 | for promise in promises {
27 | promise.finally { result in
[28/95] Compiling PovioKitPromise Sequence.swift
/host/spi-builder-workspace/Sources/PromiseKit/Sequence.swift:27:21: error: cannot find type 'DispatchQueue' in scope
25 | spawnTask next: @escaping (Int) -> Promise<T>?,
26 | retryCount: Int = 2,
27 | on dispatchQueue: DispatchQueue? = .main
| `- error: cannot find type 'DispatchQueue' in scope
28 | ) -> Promise<()> {
29 | .init { seal in
/host/spi-builder-workspace/Sources/PromiseKit/Sequence.swift:81:21: error: cannot find type 'DispatchQueue' in scope
79 | promises: C,
80 | retryCount: Int = 2,
81 | on dispatchQueue: DispatchQueue? = .main
| `- error: cannot find type 'DispatchQueue' in scope
82 | ) -> Promise<()> where C.Element == Thunk<Promise<T>>, C.Index == Int {
83 | func next(_ idx: Int) -> Promise<T>? {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:58:60: error: cannot find type 'DispatchQueue' in scope
56 | }
57 |
58 | public func resolve(with value: Value, on dispatchQueue: DispatchQueue? = .main) {
| `- error: cannot find type 'DispatchQueue' in scope
59 | setResult(.success(value), on: dispatchQueue)
60 | }
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:893:34: error: cannot find type 'DispatchQueue' in scope
891 | public extension Promise where Value == Void {
892 | static func value() -> Promise<Value> { value(()) }
893 | func resolve(on dispatchQueue: DispatchQueue? = .main) { resolve(with: (), on: dispatchQueue) }
| `- error: cannot find type 'DispatchQueue' in scope
894 | }
895 |
/host/spi-builder-workspace/Sources/PromiseKit/Sequence.swift:29:11: error: contextual closure type '() throws -> ()' expects 0 arguments, but 1 was used in closure body
27 | on dispatchQueue: DispatchQueue? = .main
28 | ) -> Promise<()> {
29 | .init { seal in
| `- error: contextual closure type '() throws -> ()' expects 0 arguments, but 1 was used in closure body
30 | var taskCount = 0
31 | var currentRetryCount = 0
/host/spi-builder-workspace/Sources/PromiseKit/Sequence.swift:87:18: error: extra arguments at positions #1, #2, #3 in call
85 | return promises[idx]()
86 | }
87 | return sequence(spawnTask: next, retryCount: retryCount, on: dispatchQueue)
| `- error: extra arguments at positions #1, #2, #3 in call
88 | }
89 |
Swift.sequence:1:24: note: 'sequence(first:next:)' declared here
1 | @inlinable public func sequence<T>(first: T, next: @escaping (T) -> T?) -> UnfoldFirstSequence<T>
| `- note: 'sequence(first:next:)' declared here
/host/spi-builder-workspace/Sources/PromiseKit/Sequence.swift:87:18: error: missing arguments for parameters 'first', 'next' in call
85 | return promises[idx]()
86 | }
87 | return sequence(spawnTask: next, retryCount: retryCount, on: dispatchQueue)
| `- error: missing arguments for parameters 'first', 'next' in call
88 | }
89 |
Swift.sequence:1:24: note: 'sequence(first:next:)' declared here
1 | @inlinable public func sequence<T>(first: T, next: @escaping (T) -> T?) -> UnfoldFirstSequence<T>
| `- note: 'sequence(first:next:)' declared here
/host/spi-builder-workspace/Sources/PromiseKit/Sequence.swift:87:10: error: cannot convert return expression of type 'UnfoldSequence<T, (T?, Bool)>' to return type 'Promise<()>'
85 | return promises[idx]()
86 | }
87 | return sequence(spawnTask: next, retryCount: retryCount, on: dispatchQueue)
| `- error: cannot convert return expression of type 'UnfoldSequence<T, (T?, Bool)>' to return type 'Promise<()>'
88 | }
89 |
[29/95] Compiling PovioKitPromise Wrap.swift
/host/spi-builder-workspace/Sources/PromiseKit/Wrap.swift:11:36: error: cannot find type 'DispatchQueue' in scope
9 | import Foundation
10 |
11 | public func wrap(on dispatchQueue: DispatchQueue = .main, _ f: (@escaping () -> Void) -> Void) -> Promise<()> {
| `- error: cannot find type 'DispatchQueue' in scope
12 | Promise { seal in
13 | f { seal.resolve(on: dispatchQueue) }
/host/spi-builder-workspace/Sources/PromiseKit/Wrap.swift:17:49: error: cannot find type 'DispatchQueue' in scope
15 | }
16 |
17 | public func wrap<A, E: Error>(on dispatchQueue: DispatchQueue = .main, _ f: (@escaping (Result<A, E>) -> Void) -> Void) -> Promise<A> {
| `- error: cannot find type 'DispatchQueue' in scope
18 | Promise { seal in
19 | f {
/host/spi-builder-workspace/Sources/PromiseKit/Wrap.swift:30:49: error: cannot find type 'DispatchQueue' in scope
28 | }
29 |
30 | public func wrap<A, E: Error>(on dispatchQueue: DispatchQueue = .main, _ f: (@escaping (A?, E?) -> Void) -> Void) -> Promise<A> {
| `- error: cannot find type 'DispatchQueue' in scope
31 | Promise { seal in
32 | f {
/host/spi-builder-workspace/Sources/PromiseKit/Wrap.swift:45:49: error: cannot find type 'DispatchQueue' in scope
43 | }
44 |
45 | public func wrap<A, E: Error>(on dispatchQueue: DispatchQueue = .main, _ f: (@escaping (A) -> Void) -> Void, _ g: (@escaping (E) -> Void) -> Void) -> Promise<A> {
| `- error: cannot find type 'DispatchQueue' in scope
46 | Promise { seal in
47 | f { seal.resolve(with: $0, on: dispatchQueue) }
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:58:60: error: cannot find type 'DispatchQueue' in scope
56 | }
57 |
58 | public func resolve(with value: Value, on dispatchQueue: DispatchQueue? = .main) {
| `- error: cannot find type 'DispatchQueue' in scope
59 | setResult(.success(value), on: dispatchQueue)
60 | }
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:893:34: error: cannot find type 'DispatchQueue' in scope
891 | public extension Promise where Value == Void {
892 | static func value() -> Promise<Value> { value(()) }
893 | func resolve(on dispatchQueue: DispatchQueue? = .main) { resolve(with: (), on: dispatchQueue) }
| `- error: cannot find type 'DispatchQueue' in scope
894 | }
895 |
/host/spi-builder-workspace/Sources/PromiseKit/Wrap.swift:12:13: error: contextual closure type '() throws -> ()' expects 0 arguments, but 1 was used in closure body
10 |
11 | public func wrap(on dispatchQueue: DispatchQueue = .main, _ f: (@escaping () -> Void) -> Void) -> Promise<()> {
12 | Promise { seal in
| `- error: contextual closure type '() throws -> ()' expects 0 arguments, but 1 was used in closure body
13 | f { seal.resolve(on: dispatchQueue) }
14 | }
/host/spi-builder-workspace/Sources/PromiseKit/Wrap.swift:18:13: error: contextual closure type '() throws -> A' expects 0 arguments, but 1 was used in closure body
16 |
17 | public func wrap<A, E: Error>(on dispatchQueue: DispatchQueue = .main, _ f: (@escaping (Result<A, E>) -> Void) -> Void) -> Promise<A> {
18 | Promise { seal in
| `- error: contextual closure type '() throws -> A' expects 0 arguments, but 1 was used in closure body
19 | f {
20 | switch $0 {
/host/spi-builder-workspace/Sources/PromiseKit/Wrap.swift:31:13: error: contextual closure type '() throws -> A' expects 0 arguments, but 1 was used in closure body
29 |
30 | public func wrap<A, E: Error>(on dispatchQueue: DispatchQueue = .main, _ f: (@escaping (A?, E?) -> Void) -> Void) -> Promise<A> {
31 | Promise { seal in
| `- error: contextual closure type '() throws -> A' expects 0 arguments, but 1 was used in closure body
32 | f {
33 | switch ($0, $1) {
/host/spi-builder-workspace/Sources/PromiseKit/Wrap.swift:46:13: error: contextual closure type '() throws -> A' expects 0 arguments, but 1 was used in closure body
44 |
45 | public func wrap<A, E: Error>(on dispatchQueue: DispatchQueue = .main, _ f: (@escaping (A) -> Void) -> Void, _ g: (@escaping (E) -> Void) -> Void) -> Promise<A> {
46 | Promise { seal in
| `- error: contextual closure type '() throws -> A' expects 0 arguments, but 1 was used in closure body
47 | f { seal.resolve(with: $0, on: dispatchQueue) }
48 | g { seal.reject(with: $0, on: dispatchQueue) }
[30/95] Compiling Alamofire NetworkReachabilityManager.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)
[31/95] Compiling Alamofire RedirectHandler.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)
[32/95] Compiling Alamofire RequestCompression.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)
[33/95] Compiling Alamofire RequestInterceptor.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)
[34/95] Compiling Alamofire ResponseSerialization.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)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[36/100] Emitting module PovioKitCore
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[37/100] Compiling PovioKitCore Result+PovioKit.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[38/100] Compiling PovioKitCore String+PovioKit.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[39/100] Compiling PovioKitCore URL+PovioKit.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[40/100] Compiling PovioKitCore MKAnnotationView+PovioKit.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[41/100] Compiling PovioKitCore DispatchTimeInterval+PovioKit.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[42/100] Compiling PovioKitCore Double+PovioKit.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[43/100] Compiling PovioKitCore Encodable+PovioKit.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[44/100] Compiling PovioKitCore Optional+PovioKit.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[45/100] Compiling PovioKitCore Data+PovioKit.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[46/100] Compiling PovioKitCore Date+PovioKit.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[47/100] Compiling PovioKitCore DateFormatter+PovioKit.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[48/100] Compiling PovioKitCore DecodableDictionary+PovioKit.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[49/100] Compiling PovioKitCore AppInfo.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[50/100] Compiling PovioKitCore NSView+PovioKit.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[51/100] Compiling PovioKitCore NSWindow+PovioKit.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[52/100] Compiling PovioKitCore Collection+PovioKit.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:58:60: error: cannot find type 'DispatchQueue' in scope
56 | }
57 |
58 | public func resolve(with value: Value, on dispatchQueue: DispatchQueue? = .main) {
| `- error: cannot find type 'DispatchQueue' in scope
59 | setResult(.success(value), on: dispatchQueue)
60 | }
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:62:59: error: cannot find type 'DispatchQueue' in scope
60 | }
61 |
62 | public func reject(with error: Error, on dispatchQueue: DispatchQueue? = .main) {
| `- error: cannot find type 'DispatchQueue' in scope
63 | setResult(.failure(error), on: dispatchQueue)
64 | }
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:102:62: error: cannot find type 'DispatchQueue' in scope
100 | }
101 |
102 | public func cascade(to promise: Promise, on dispatchQueue: DispatchQueue? = .main) {
| `- error: cannot find type 'DispatchQueue' in scope
103 | self.then { promise.resolve(with: $0, on: dispatchQueue) }
104 | self.catch { promise.reject(with: $0, on: dispatchQueue) }
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:182:15: error: cannot find type 'DispatchTimeInterval' in scope
180 | /// Sleep promise execution for given `duration` interval and return new promise with existing value.
181 | func sleep(
182 | duration: DispatchTimeInterval,
| `- error: cannot find type 'DispatchTimeInterval' in scope
183 | on dispatchQueue: DispatchQueue = .main
184 | ) -> Promise<Value> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:183:23: error: cannot find type 'DispatchQueue' in scope
181 | func sleep(
182 | duration: DispatchTimeInterval,
183 | on dispatchQueue: DispatchQueue = .main
| `- error: cannot find type 'DispatchQueue' in scope
184 | ) -> Promise<Value> {
185 | Promise { seal in
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:214:23: error: cannot find type 'DispatchQueue' in scope
212 | /// If any of the two promises at any point fail, their composition fails as well.
213 | func flatMap<U>(
214 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
215 | with transform: @escaping (Value) throws -> Promise<U>
216 | ) -> Promise<U> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:253:23: error: cannot find type 'DispatchQueue' in scope
251 | /// of the recovering promise.
252 | func flatMapError(
253 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
254 | with transform: @escaping (Error) throws -> Promise<Value>
255 | ) -> Promise<Value> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:281:23: error: cannot find type 'DispatchQueue' in scope
279 | /// - Returns: A `Promise` containing either the transformed value or an error.
280 | func flatMapResult<U, E: Error>(
281 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
282 | with transform: @escaping (Value) throws -> Result<U, E>
283 | ) -> Promise<U> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:305:23: error: cannot find type 'DispatchQueue' in scope
303 | /// as the new success value if this instance represents a success.
304 | func map<U>(
305 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
306 | with transform: @escaping (Value) throws -> U
307 | ) -> Promise<U> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:328:23: error: cannot find type 'DispatchQueue' in scope
326 | /// as the new error value if this instance represents a failure.
327 | func mapError(
328 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
329 | with transform: @escaping (Error) throws -> Error
330 | ) -> Promise<Value> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:348:23: error: cannot find type 'DispatchQueue' in scope
346 | /// then the new Promise fails.
347 | func compactMap<U>(
348 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
349 | or error: @autoclosure @escaping () -> Error = NSError(domain: "com.poviokit.promisekit", code: 100, userInfo: ["description": "`nil` value found after transformation!"]),
350 | with transform: @escaping (Value) throws -> U?
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:371:23: error: cannot find type 'DispatchQueue' in scope
369 | func fold<U>(
370 | _ promises: [Promise<U>],
371 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
372 | with combiningFunction: @escaping (Value, U) -> Promise<Value>
373 | ) -> Promise<Value> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:391:23: error: cannot find type 'DispatchQueue' in scope
389 | _ initialValue: Value,
390 | _ promises: [Promise<U>],
391 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
392 | _ nextPartialResult: @escaping (Value, U) -> Value
393 | ) -> Promise<Value> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:409:23: error: cannot find type 'DispatchQueue' in scope
407 | func and<U>(
408 | _ other: Promise<U>,
409 | on dispatchQueue: DispatchQueue? = .main
| `- error: cannot find type 'DispatchQueue' in scope
410 | ) -> Promise<(Value, U)> {
411 | all(on: dispatchQueue, self, other)
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:421:23: error: cannot find type 'DispatchQueue' in scope
419 | func and<U>(
420 | _ value: U,
421 | on dispatchQueue: DispatchQueue? = .main
| `- error: cannot find type 'DispatchQueue' in scope
422 | ) -> Promise<(Value, U)> {
423 | map(on: dispatchQueue) { ($0, value) }
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:435:23: error: cannot find type 'DispatchQueue' in scope
433 | func or<U>(
434 | _ other: Promise<U>,
435 | on dispatchQueue: DispatchQueue? = .main
| `- error: cannot find type 'DispatchQueue' in scope
436 | ) -> Promise<Either<Value, U>> {
437 | any(on: dispatchQueue, self, other)
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:452:23: error: cannot find type 'DispatchQueue' in scope
450 | func or<U>(
451 | _ value: U,
452 | on dispatchQueue: DispatchQueue? = .main
| `- error: cannot find type 'DispatchQueue' in scope
453 | ) -> Promise<Either<Value, U>> {
454 | map(on: dispatchQueue, with: Either.left)
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:467:23: error: cannot find type 'DispatchQueue' in scope
465 | /// otherwise a rejected promise with the given error.
466 | func ensure(
467 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
468 | predicate: @escaping (Value) -> Bool,
469 | otherwise error: @autoclosure @escaping () -> Error = NSError(domain: "com.poviokit.promisekit", code: 100, userInfo: ["description": "Validation failed"])
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:493:23: error: cannot find type 'DispatchQueue' in scope
491 | /// - Parameter false: The false branch of non-determinism.
492 | func flatMapIf<U>(
493 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
494 | `true`: @escaping @autoclosure () -> Promise<U>,
495 | `false`: @escaping @autoclosure () -> Promise<U>
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:516:23: error: cannot find type 'DispatchQueue' in scope
514 | /// - Parameter false: The false branch of non-determinism.
515 | func mapIf<U>(
516 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
517 | `true`: @escaping @autoclosure () -> U,
518 | `false`: @escaping @autoclosure () -> U
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:530:23: error: cannot find type 'DispatchQueue' in scope
528 | public extension Promise {
529 | func flatMapIf<U>(
530 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
531 | transform: @escaping (Value) -> Bool,
532 | `true`: @escaping @autoclosure () -> Promise<U>,
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:540:23: error: cannot find type 'DispatchQueue' in scope
538 |
539 | func mapIf<U>(
540 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
541 | transform: @escaping (Value) -> Bool,
542 | `true`: @escaping @autoclosure () -> U,
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:566:23: error: cannot find type 'DispatchQueue' in scope
564 | /// sequence.
565 | func mapValues<U>(
566 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
567 | _ transform: @escaping (Value.Element) throws -> U
568 | ) -> Promise<[U]> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:591:23: error: cannot find type 'DispatchQueue' in scope
589 | /// with each element of the sequence.
590 | func compactMapValues<U>(
591 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
592 | _ transform: @escaping (Value.Element) throws -> U?
593 | ) -> Promise<[U]> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:618:23: error: cannot find type 'DispatchQueue' in scope
616 | /// mapping elements of this sequence.
617 | func flatMapValues<U>(
618 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
619 | _ transform: @escaping (Value.Element) throws -> Promise<U>
620 | ) -> Promise<[U]> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:640:23: error: cannot find type 'DispatchQueue' in scope
638 | /// - Returns: An Promise containing an array of the elements that `isIncluded` allowed.
639 | func filterValues(
640 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
641 | _ isIncluded: @escaping (Value.Element) throws -> Bool
642 | ) -> Promise<[Value.Element]> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:670:23: error: cannot find type 'DispatchQueue' in scope
668 | /// the result is `initialResult`.
669 | func reduceValues<A>(
670 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
671 | _ initialResult: A,
672 | _ nextPartialResult: @escaping (A, Value.Element) throws -> A
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:687:23: error: cannot find type 'DispatchQueue' in scope
685 | /// - Returns: A Promise containing sorted array of the sequence's elements.
686 | func sortedValues(
687 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
688 | by comparator: @escaping (Value.Element, Value.Element) throws -> Bool
689 | ) -> Promise<[Value.Element]> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:715:23: error: cannot find type 'DispatchQueue' in scope
713 | /// - Returns: A Promise containing the resulting flattened array.
714 | func flatMapValues<U>(
715 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
716 | _ transform: @escaping (Value.Element) throws -> [U]
717 | ) -> Promise<[U]> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:809:23: error: cannot find type 'DispatchQueue' in scope
807 | type: D.Type,
808 | decoder: JSONDecoder,
809 | on dispatchQueue: DispatchQueue? = .main
| `- error: cannot find type 'DispatchQueue' in scope
810 | ) -> Promise<D> {
811 | map(on: dispatchQueue) {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:819:23: error: cannot find type 'DispatchQueue' in scope
817 | public extension Promise where Value: Sequence, Value.Element == Int {
818 | func reduceValues(
819 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
820 | _ nextPartialResult: @escaping (Value.Element, Value.Element) throws -> Value.Element
821 | ) -> Promise<Value.Element> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:830:23: error: cannot find type 'DispatchQueue' in scope
828 | public extension Promise where Value: Sequence, Value.Element == Double {
829 | func reduceValues(
830 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
831 | _ nextPartialResult: @escaping (Value.Element, Value.Element) throws -> Value.Element
832 | ) -> Promise<Value.Element> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:841:23: error: cannot find type 'DispatchQueue' in scope
839 | public extension Promise where Value: Sequence, Value.Element == Float {
840 | func reduceValues(
841 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
842 | _ nextPartialResult: @escaping (Value.Element, Value.Element) throws -> Value.Element
843 | ) -> Promise<Value.Element> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:852:23: error: cannot find type 'DispatchQueue' in scope
850 | public extension Promise where Value: Sequence, Value.Element == String {
851 | func reduceValues(
852 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
853 | _ nextPartialResult: @escaping (Value.Element, Value.Element) throws -> Value.Element
854 | ) -> Promise<Value.Element> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:893:34: error: cannot find type 'DispatchQueue' in scope
891 | public extension Promise where Value == Void {
892 | static func value() -> Promise<Value> { value(()) }
893 | func resolve(on dispatchQueue: DispatchQueue? = .main) { resolve(with: (), on: dispatchQueue) }
| `- error: cannot find type 'DispatchQueue' in scope
894 | }
895 |
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:896:37: error: cannot find type 'DispatchQueue' in scope
894 | }
895 |
896 | extension Optional where Wrapped == DispatchQueue {
| `- error: cannot find type 'DispatchQueue' in scope
897 | @inline(__always)
898 | func async(execute work: @escaping () -> Void) {
/host/spi-builder-workspace/Sources/PromiseKit/Future.swift:25:61: error: cannot find type 'DispatchQueue' in scope
23 | }
24 |
25 | func setResult(_ result: FutureResult?, on dispatchQueue: DispatchQueue? = nil) {
| `- error: cannot find type 'DispatchQueue' in scope
26 | lock.withLock {
27 | guard self.internalResult == nil else { return }
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:18:16: error: cannot infer contextual base in reference to member 'success'
16 | public init(fulfill value: Value) {
17 | super.init()
18 | setResult(.success(value))
| `- error: cannot infer contextual base in reference to member 'success'
19 | }
20 |
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:23:16: error: cannot infer contextual base in reference to member 'failure'
21 | public init(reject error: Error) {
22 | super.init()
23 | setResult(.failure(error))
| `- error: cannot infer contextual base in reference to member 'failure'
24 | }
25 |
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:34:30: error: cannot convert value of type 'Value' to expected argument type 'Result<Value, any Error>'
32 | do {
33 | self.init()
34 | self.resolve(with: try future())
| `- error: cannot convert value of type 'Value' to expected argument type 'Result<Value, any Error>'
35 | } catch {
36 | self.reject(with: error)
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:44:26: error: cannot convert value of type 'Value' to expected argument type 'Result<Value, any Error>'
42 | switch result {
43 | case .success(let value):
44 | self.resolve(with: value)
| `- error: cannot convert value of type 'Value' to expected argument type 'Result<Value, any Error>'
45 | case .failure(let error):
46 | self.reject(with: error)
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:59:16: error: cannot infer contextual base in reference to member 'success'
57 |
58 | public func resolve(with value: Value, on dispatchQueue: DispatchQueue? = .main) {
59 | setResult(.success(value), on: dispatchQueue)
| `- error: cannot infer contextual base in reference to member 'success'
60 | }
61 |
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:63:16: error: cannot infer contextual base in reference to member 'failure'
61 |
62 | public func reject(with error: Error, on dispatchQueue: DispatchQueue? = .main) {
63 | setResult(.failure(error), on: dispatchQueue)
| `- error: cannot infer contextual base in reference to member 'failure'
64 | }
65 |
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:69:21: error: cannot convert value of type 'Value' to expected argument type 'Result<Value, any Error>'
67 | switch result {
68 | case .success(let value):
69 | resolve(with: value)
| `- error: cannot convert value of type 'Value' to expected argument type 'Result<Value, any Error>'
70 | case .failure(let error):
71 | reject(with: error)
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:76:37: error: cannot convert value of type 'Value' to expected argument type 'Result<Value, any Error>'
74 |
75 | public func observe(promise other: Promise) {
76 | other.then { self.resolve(with: $0) }
| `- error: cannot convert value of type 'Value' to expected argument type 'Result<Value, any Error>'
77 | other.catch { self.reject(with: $0) }
78 | }
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:103:47: error: extra argument 'on' in call
101 |
102 | public func cascade(to promise: Promise, on dispatchQueue: DispatchQueue? = .main) {
103 | self.then { promise.resolve(with: $0, on: dispatchQueue) }
| `- error: extra argument 'on' in call
104 | self.catch { promise.reject(with: $0, on: dispatchQueue) }
105 | }
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:103:39: error: cannot convert value of type 'Value' to expected argument type 'Result<Value, any Error>'
101 |
102 | public func cascade(to promise: Promise, on dispatchQueue: DispatchQueue? = .main) {
103 | self.then { promise.resolve(with: $0, on: dispatchQueue) }
| `- error: cannot convert value of type 'Value' to expected argument type 'Result<Value, any Error>'
104 | self.catch { promise.reject(with: $0, on: dispatchQueue) }
105 | }
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:185:15: error: contextual closure type '() throws -> Value' expects 0 arguments, but 1 was used in closure body
183 | on dispatchQueue: DispatchQueue = .main
184 | ) -> Promise<Value> {
185 | Promise { seal in
| `- error: contextual closure type '() throws -> Value' expects 0 arguments, but 1 was used in closure body
186 | self.finally {
187 | switch $0 {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:217:18: error: contextual closure type '() throws -> U' expects 0 arguments, but 1 was used in closure body
215 | with transform: @escaping (Value) throws -> Promise<U>
216 | ) -> Promise<U> {
217 | Promise<U> { seal in
| `- error: contextual closure type '() throws -> U' expects 0 arguments, but 1 was used in closure body
218 | self.finally {
219 | switch $0 {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:256:15: error: contextual closure type '() throws -> Value' expects 0 arguments, but 1 was used in closure body
254 | with transform: @escaping (Error) throws -> Promise<Value>
255 | ) -> Promise<Value> {
256 | Promise { seal in
| `- error: contextual closure type '() throws -> Value' expects 0 arguments, but 1 was used in closure body
257 | self.finally {
258 | switch $0 {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:310:17: error: cannot infer contextual base in reference to member 'value'
308 | flatMap(on: dispatchQueue) {
309 | do {
310 | return .value(try transform($0))
| `- error: cannot infer contextual base in reference to member 'value'
311 | } catch {
312 | return .error(error)
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:396:45: error: cannot infer contextual base in reference to member 'value'
394 | Promise
395 | .value(initialValue)
396 | .fold(promises, on: dispatchQueue) { .value(nextPartialResult($0, $1)) }
| `- error: cannot infer contextual base in reference to member 'value'
397 | }
398 |
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:19:21: error: cannot find type 'DispatchQueue' in scope
17 | /// then the new Promise fails as well.
18 | public func all<T, C: Collection>(
19 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
20 | promises: C
21 | ) -> Promise<[T]> where C.Element == Promise<T> {
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:57:21: error: cannot find type 'DispatchQueue' in scope
55 | /// then the new Promise fails as well.
56 | public func all<T, U>(
57 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
58 | _ p1: Promise<T>,
59 | _ p2: Promise<U>
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:74:21: error: cannot find type 'DispatchQueue' in scope
72 | /// then the new Promise fails as well.
73 | public func all<T, U, V>(
74 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
75 | _ p1: Promise<T>,
76 | _ p2: Promise<U>,
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:93:21: error: cannot find type 'DispatchQueue' in scope
91 | /// then the new Promise fails as well.
92 | public func all<T, U, V, Z>(
93 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
94 | _ p1: Promise<T>,
95 | _ p2: Promise<U>,
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:113:21: error: cannot find type 'DispatchQueue' in scope
111 | /// then the new Promise fails as well.
112 | public func all<T, U, V, Z, X>(
113 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
114 | _ p1: Promise<T>,
115 | _ p2: Promise<U>,
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:411:8: error: extra arguments at positions #2, #3 in call
409 | on dispatchQueue: DispatchQueue? = .main
410 | ) -> Promise<(Value, U)> {
411 | all(on: dispatchQueue, self, other)
| `- error: extra arguments at positions #2, #3 in call
412 | }
413 |
Swift.all:1:13: note: 'all' declared here
1 | public func all<Storage>(_ mask: SIMDMask<Storage>) -> Bool where Storage : SIMD, Storage.Scalar : FixedWidthInteger, Storage.Scalar : SignedInteger
| `- note: 'all' declared here
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:411:5: error: cannot convert return expression of type 'Bool' to return type 'Promise<(Value, U)>'
409 | on dispatchQueue: DispatchQueue? = .main
410 | ) -> Promise<(Value, U)> {
411 | all(on: dispatchQueue, self, other)
| `- error: cannot convert return expression of type 'Bool' to return type 'Promise<(Value, U)>'
412 | }
413 |
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:411:5: error: generic parameter 'Storage' could not be inferred
409 | on dispatchQueue: DispatchQueue? = .main
410 | ) -> Promise<(Value, U)> {
411 | all(on: dispatchQueue, self, other)
| `- error: generic parameter 'Storage' could not be inferred
412 | }
413 |
Swift.all:1:13: note: in call to function 'all'
1 | public func all<Storage>(_ mask: SIMDMask<Storage>) -> Bool where Storage : SIMD, Storage.Scalar : FixedWidthInteger, Storage.Scalar : SignedInteger
| `- note: in call to function 'all'
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:19:21: error: cannot find type 'DispatchQueue' in scope
17 | /// - Returns: An array of `Optional<T>` values wrapped in a Promise.
18 | public func any<T, C: Collection>(
19 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
20 | promises: C
21 | ) -> Promise<[T?]> where C.Element == Promise<T> {
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:53:21: error: cannot find type 'DispatchQueue' in scope
51 | /// - Returns: A Promise with the result of given promises.
52 | public func any<T, U>(
53 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
54 | _ p1: Promise<T>,
55 | _ p2: Promise<U>
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:72:21: error: cannot find type 'DispatchQueue' in scope
70 | /// - Returns: A Promise with the result of given promises.
71 | public func any<T, U, V>(
72 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
73 | _ p1: Promise<T>,
74 | _ p2: Promise<U>,
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:93:21: error: cannot find type 'DispatchQueue' in scope
91 | /// - Returns: A Promise with the result of given promises.
92 | public func any<T, U, V, Z>(
93 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
94 | _ p1: Promise<T>,
95 | _ p2: Promise<U>,
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:115:21: error: cannot find type 'DispatchQueue' in scope
113 | /// - Returns: A Promise with the result of given promises.
114 | public func any<T, U, V, Z, X>(
115 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
116 | _ p1: Promise<T>,
117 | _ p2: Promise<U>,
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:437:5: error: generic parameter 'Storage' could not be inferred
435 | on dispatchQueue: DispatchQueue? = .main
436 | ) -> Promise<Either<Value, U>> {
437 | any(on: dispatchQueue, self, other)
| `- error: generic parameter 'Storage' could not be inferred
438 | .map { l, r in
439 | if let l = l { return .left(l) }
Swift.any:1:13: note: in call to function 'any'
1 | public func any<Storage>(_ mask: SIMDMask<Storage>) -> Bool where Storage : SIMD, Storage.Scalar : FixedWidthInteger, Storage.Scalar : SignedInteger
| `- note: in call to function 'any'
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:437:8: error: extra arguments at positions #2, #3 in call
435 | on dispatchQueue: DispatchQueue? = .main
436 | ) -> Promise<Either<Value, U>> {
437 | any(on: dispatchQueue, self, other)
| `- error: extra arguments at positions #2, #3 in call
438 | .map { l, r in
439 | if let l = l { return .left(l) }
Swift.any:1:13: note: 'any' declared here
1 | public func any<Storage>(_ mask: SIMDMask<Storage>) -> Bool where Storage : SIMD, Storage.Scalar : FixedWidthInteger, Storage.Scalar : SignedInteger
| `- note: 'any' declared here
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:438:8: error: value of type 'Bool' has no member 'map'
436 | ) -> Promise<Either<Value, U>> {
437 | any(on: dispatchQueue, self, other)
438 | .map { l, r in
| `- error: value of type 'Bool' has no member 'map'
439 | if let l = l { return .left(l) }
440 | else { return .right(r!) }
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:439:32: error: cannot infer contextual base in reference to member 'left'
437 | any(on: dispatchQueue, self, other)
438 | .map { l, r in
439 | if let l = l { return .left(l) }
| `- error: cannot infer contextual base in reference to member 'left'
440 | else { return .right(r!) }
441 | }
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:454:34: error: generic parameter 'L' could not be inferred
452 | on dispatchQueue: DispatchQueue? = .main
453 | ) -> Promise<Either<Value, U>> {
454 | map(on: dispatchQueue, with: Either.left)
| `- error: generic parameter 'L' could not be inferred
455 | .flatMapError(on: dispatchQueue) { _ in .value(.right(value)) }
456 | }
/host/spi-builder-workspace/Sources/PromiseKit/Either.swift:11:20: note: 'L' declared as parameter to type 'Either'
9 | import Foundation
10 |
11 | public enum Either<L, R> {
| `- note: 'L' declared as parameter to type 'Either'
12 | case left(L)
13 | case right(R)
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:454:34: error: generic parameter 'R' could not be inferred
452 | on dispatchQueue: DispatchQueue? = .main
453 | ) -> Promise<Either<Value, U>> {
454 | map(on: dispatchQueue, with: Either.left)
| |- error: generic parameter 'R' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
455 | .flatMapError(on: dispatchQueue) { _ in .value(.right(value)) }
456 | }
/host/spi-builder-workspace/Sources/PromiseKit/Either.swift:11:23: note: 'R' declared as parameter to type 'Either'
9 | import Foundation
10 |
11 | public enum Either<L, R> {
| `- note: 'R' declared as parameter to type 'Either'
12 | case left(L)
13 | case right(R)
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:455:48: error: cannot infer contextual base in reference to member 'value'
453 | ) -> Promise<Either<Value, U>> {
454 | map(on: dispatchQueue, with: Either.left)
455 | .flatMapError(on: dispatchQueue) { _ in .value(.right(value)) }
| `- error: cannot infer contextual base in reference to member 'value'
456 | }
457 |
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:455:55: error: cannot infer contextual base in reference to member 'right'
453 | ) -> Promise<Either<Value, U>> {
454 | map(on: dispatchQueue, with: Either.left)
455 | .flatMapError(on: dispatchQueue) { _ in .value(.right(value)) }
| `- error: cannot infer contextual base in reference to member 'right'
456 | }
457 |
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:522:14: error: cannot infer contextual base in reference to member 'value'
520 | flatMapIf(
521 | on: dispatchQueue,
522 | true: .value(`true`()),
| `- error: cannot infer contextual base in reference to member 'value'
523 | false: .value(`false`())
524 | )
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:523:15: error: cannot infer contextual base in reference to member 'value'
521 | on: dispatchQueue,
522 | true: .value(`true`()),
523 | false: .value(`false`())
| `- error: cannot infer contextual base in reference to member 'value'
524 | )
525 | }
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:622:7: error: generic parameter 'Storage' could not be inferred
620 | ) -> Promise<[U]> {
621 | flatMap(on: dispatchQueue) { values in
622 | all(promises: try values.map(transform))
| `- error: generic parameter 'Storage' could not be inferred
623 | }
624 | }
Swift.all:1:13: note: in call to function 'all'
1 | public func all<Storage>(_ mask: SIMDMask<Storage>) -> Bool where Storage : SIMD, Storage.Scalar : FixedWidthInteger, Storage.Scalar : SignedInteger
| `- note: in call to function 'all'
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:622:10: error: extraneous argument label 'promises:' in call
620 | ) -> Promise<[U]> {
621 | flatMap(on: dispatchQueue) { values in
622 | all(promises: try values.map(transform))
| `- error: extraneous argument label 'promises:' in call
623 | }
624 | }
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:787:21: error: missing argument for parameter 'coder' in call
785 | return min
786 | }
787 | throw NSError()
| `- error: missing argument for parameter 'coder' in call
788 | }
789 | }
Foundation.NSError.init:2:17: note: 'init(coder:)' declared here
1 | class NSError {
2 | required public init?(coder aDecoder: NSCoder)}
| `- note: 'init(coder:)' declared here
3 |
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:787:13: error: thrown expression type 'NSError?' does not conform to 'Error'
785 | return min
786 | }
787 | throw NSError()
| `- error: thrown expression type 'NSError?' does not conform to 'Error'
788 | }
789 | }
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:799:21: error: missing argument for parameter 'coder' in call
797 | return min
798 | }
799 | throw NSError()
| `- error: missing argument for parameter 'coder' in call
800 | }
801 | }
Foundation.NSError.init:2:17: note: 'init(coder:)' declared here
1 | class NSError {
2 | required public init?(coder aDecoder: NSCoder)}
| `- note: 'init(coder:)' declared here
3 |
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:799:13: error: thrown expression type 'NSError?' does not conform to 'Error'
797 | return min
798 | }
799 | throw NSError()
| `- error: thrown expression type 'NSError?' does not conform to 'Error'
800 | }
801 | }
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:893:82: error: extra argument 'on' in call
891 | public extension Promise where Value == Void {
892 | static func value() -> Promise<Value> { value(()) }
893 | func resolve(on dispatchQueue: DispatchQueue? = .main) { resolve(with: (), on: dispatchQueue) }
| `- error: extra argument 'on' in call
894 | }
895 |
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:893:74: error: cannot convert value of type '()' to expected argument type 'Result<(), any Error>'
891 | public extension Promise where Value == Void {
892 | static func value() -> Promise<Value> { value(()) }
893 | func resolve(on dispatchQueue: DispatchQueue? = .main) { resolve(with: (), on: dispatchQueue) }
| `- error: cannot convert value of type '()' to expected argument type 'Result<(), any Error>'
894 | }
895 |
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:900:19: error: '?' pattern cannot match values of type '<<error type>>'
898 | func async(execute work: @escaping () -> Void) {
899 | switch self {
900 | case let queue?:
| `- error: '?' pattern cannot match values of type '<<error type>>'
901 | queue.async(execute: work)
902 | case nil:
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:902:10: warning: type '<<error type>>' is not optional, value can never be nil; this is an error in the Swift 6 language mode
900 | case let queue?:
901 | queue.async(execute: work)
902 | case nil:
| `- warning: type '<<error type>>' is not optional, value can never be nil; this is an error in the Swift 6 language mode
903 | work()
904 | }
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:1031:24: error: cannot infer contextual base in reference to member 'main'
1029 | transform: @escaping (T) throws -> Promise<U>
1030 | ) -> Promise<U> {
1031 | promise.flatMap(on: .main, with: transform)
| `- error: cannot infer contextual base in reference to member 'main'
1032 | }
1033 |
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:1048:26: error: cannot infer contextual base in reference to member 'main'
1046 | right: @escaping @autoclosure () -> Promise<T>
1047 | ) -> Promise<T> {
1048 | left.flatMapError(on: .main) { _ in right() }
| `- error: cannot infer contextual base in reference to member 'main'
1049 | }
1050 |
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:1058:28: error: cannot infer contextual base in reference to member 'main'
1056 | right: Promise<U>
1057 | ) -> Promise<U> {
1058 | left.asVoid.flatMap(on: .main) { right }
| `- error: cannot infer contextual base in reference to member 'main'
1059 | }
1060 |
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:1067:19: error: cannot infer contextual base in reference to member 'main'
1065 | ) -> Promise<T> {
1066 | left
1067 | .flatMap(on: .main) { right.and($0) }
| `- error: cannot infer contextual base in reference to member 'main'
1068 | .map(on: .main) { $0.1 }
1069 | }
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:1068:15: error: cannot infer contextual base in reference to member 'main'
1066 | left
1067 | .flatMap(on: .main) { right.and($0) }
1068 | .map(on: .main) { $0.1 }
| `- error: cannot infer contextual base in reference to member 'main'
1069 | }
1070 |
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:1076:19: error: cannot infer contextual base in reference to member 'main'
1074 | ) -> Promise<T> {
1075 | right >>- { r in
1076 | left.map(on: .main) { $0(r) }
| `- error: cannot infer contextual base in reference to member 'main'
1077 | }
1078 | }
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:1085:20: error: cannot infer contextual base in reference to member 'main'
1083 | transform: @escaping (T) throws -> U
1084 | ) -> Promise<U> {
1085 | promise.map(on: .main, with: transform)
| `- error: cannot infer contextual base in reference to member 'main'
1086 | }
1087 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/81] Compiling Alamofire ParameterEncoder.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[3/81] Compiling Alamofire ParameterEncoding.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[4/81] Compiling Alamofire Protected.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[5/81] Compiling Alamofire Request.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[6/81] Compiling Alamofire DownloadRequest.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[7/81] Compiling Alamofire HTTPHeaders.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[8/81] Compiling Alamofire HTTPMethod.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[9/81] Compiling Alamofire Notifications.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[10/84] Compiling PovioKitPromise Race.swift
/host/spi-builder-workspace/Sources/PromiseKit/Race.swift:17:21: error: cannot find type 'DispatchQueue' in scope
15 | /// - Returns: The result of the first fullfiled promise in the collection wrapped in a promise.
16 | public func race<T, C: Collection>(
17 | on dispatchQueue: DispatchQueue = .main,
| `- error: cannot find type 'DispatchQueue' in scope
18 | promises: C
19 | ) -> Promise<T> where C.Element == Promise<T> {
/host/spi-builder-workspace/Sources/PromiseKit/Race.swift:25:19: error: cannot find 'DispatchQueue' in scope
23 |
24 | return .init { seal in
25 | let barrier = DispatchQueue(label: "com.poviokit.promisekit.barrier", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
26 | for promise in promises {
27 | promise.finally { result in
/host/spi-builder-workspace/Sources/PromiseKit/Race.swift:25:88: error: cannot infer contextual base in reference to member 'concurrent'
23 |
24 | return .init { seal in
25 | let barrier = DispatchQueue(label: "com.poviokit.promisekit.barrier", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
26 | for promise in promises {
27 | promise.finally { result in
[11/84] Compiling PovioKitPromise Sequence.swift
/host/spi-builder-workspace/Sources/PromiseKit/Sequence.swift:27:21: error: cannot find type 'DispatchQueue' in scope
25 | spawnTask next: @escaping (Int) -> Promise<T>?,
26 | retryCount: Int = 2,
27 | on dispatchQueue: DispatchQueue? = .main
| `- error: cannot find type 'DispatchQueue' in scope
28 | ) -> Promise<()> {
29 | .init { seal in
/host/spi-builder-workspace/Sources/PromiseKit/Sequence.swift:81:21: error: cannot find type 'DispatchQueue' in scope
79 | promises: C,
80 | retryCount: Int = 2,
81 | on dispatchQueue: DispatchQueue? = .main
| `- error: cannot find type 'DispatchQueue' in scope
82 | ) -> Promise<()> where C.Element == Thunk<Promise<T>>, C.Index == Int {
83 | func next(_ idx: Int) -> Promise<T>? {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:58:60: error: cannot find type 'DispatchQueue' in scope
56 | }
57 |
58 | public func resolve(with value: Value, on dispatchQueue: DispatchQueue? = .main) {
| `- error: cannot find type 'DispatchQueue' in scope
59 | setResult(.success(value), on: dispatchQueue)
60 | }
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:893:34: error: cannot find type 'DispatchQueue' in scope
891 | public extension Promise where Value == Void {
892 | static func value() -> Promise<Value> { value(()) }
893 | func resolve(on dispatchQueue: DispatchQueue? = .main) { resolve(with: (), on: dispatchQueue) }
| `- error: cannot find type 'DispatchQueue' in scope
894 | }
895 |
/host/spi-builder-workspace/Sources/PromiseKit/Sequence.swift:29:11: error: contextual closure type '() throws -> ()' expects 0 arguments, but 1 was used in closure body
27 | on dispatchQueue: DispatchQueue? = .main
28 | ) -> Promise<()> {
29 | .init { seal in
| `- error: contextual closure type '() throws -> ()' expects 0 arguments, but 1 was used in closure body
30 | var taskCount = 0
31 | var currentRetryCount = 0
/host/spi-builder-workspace/Sources/PromiseKit/Sequence.swift:87:18: error: extra arguments at positions #1, #2, #3 in call
85 | return promises[idx]()
86 | }
87 | return sequence(spawnTask: next, retryCount: retryCount, on: dispatchQueue)
| `- error: extra arguments at positions #1, #2, #3 in call
88 | }
89 |
Swift.sequence:1:24: note: 'sequence(first:next:)' declared here
1 | @inlinable public func sequence<T>(first: T, next: @escaping (T) -> T?) -> UnfoldFirstSequence<T>
| `- note: 'sequence(first:next:)' declared here
/host/spi-builder-workspace/Sources/PromiseKit/Sequence.swift:87:18: error: missing arguments for parameters 'first', 'next' in call
85 | return promises[idx]()
86 | }
87 | return sequence(spawnTask: next, retryCount: retryCount, on: dispatchQueue)
| `- error: missing arguments for parameters 'first', 'next' in call
88 | }
89 |
Swift.sequence:1:24: note: 'sequence(first:next:)' declared here
1 | @inlinable public func sequence<T>(first: T, next: @escaping (T) -> T?) -> UnfoldFirstSequence<T>
| `- note: 'sequence(first:next:)' declared here
/host/spi-builder-workspace/Sources/PromiseKit/Sequence.swift:87:10: error: cannot convert return expression of type 'UnfoldSequence<T, (T?, Bool)>' to return type 'Promise<()>'
85 | return promises[idx]()
86 | }
87 | return sequence(spawnTask: next, retryCount: retryCount, on: dispatchQueue)
| `- error: cannot convert return expression of type 'UnfoldSequence<T, (T?, Bool)>' to return type 'Promise<()>'
88 | }
89 |
[12/85] Compiling Alamofire URLConvertible+URLRequestConvertible.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[13/85] Compiling Alamofire UploadRequest.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[14/85] Compiling Alamofire WebSocketRequest.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[15/85] Compiling Alamofire DispatchQueue+Alamofire.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[16/85] Compiling Alamofire URLSessionConfiguration+Alamofire.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[17/85] Compiling Alamofire AlamofireExtended.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[18/85] Compiling Alamofire AuthenticationInterceptor.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[19/85] Compiling Alamofire OperationQueue+Alamofire.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[20/85] Compiling Alamofire Result+Alamofire.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[21/85] Compiling Alamofire StringEncoding+Alamofire.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[22/85] Compiling Alamofire URLRequest+Alamofire.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[23/85] Compiling Alamofire Alamofire.swift
/host/spi-builder-workspace/Sources/PromiseKit/After.swift:11:28: error: cannot find type 'DispatchTime' in scope
9 | import Foundation
10 |
11 | public func after(_ delay: DispatchTime = .now(), on dispatchQueue: DispatchQueue = .main) -> Promise<()> {
| `- error: cannot find type 'DispatchTime' in scope
12 | Promise { seal in
13 | dispatchQueue.asyncAfter(deadline: delay) {
/host/spi-builder-workspace/Sources/PromiseKit/After.swift:11:69: error: cannot find type 'DispatchQueue' in scope
9 | import Foundation
10 |
11 | public func after(_ delay: DispatchTime = .now(), on dispatchQueue: DispatchQueue = .main) -> Promise<()> {
| `- error: cannot find type 'DispatchQueue' in scope
12 | Promise { seal in
13 | dispatchQueue.asyncAfter(deadline: delay) {
/host/spi-builder-workspace/Sources/PromiseKit/After.swift:19:31: error: cannot find type 'DispatchTime' in scope
17 | }
18 |
19 | public func after<T>(_ delay: DispatchTime = .now(), on dispatchQueue: DispatchQueue = .main, _ value: @autoclosure @escaping () -> T) -> Promise<T> {
| `- error: cannot find type 'DispatchTime' in scope
20 | Promise { seal in
21 | dispatchQueue.asyncAfter(deadline: delay) {
/host/spi-builder-workspace/Sources/PromiseKit/After.swift:19:72: error: cannot find type 'DispatchQueue' in scope
17 | }
18 |
19 | public func after<T>(_ delay: DispatchTime = .now(), on dispatchQueue: DispatchQueue = .main, _ value: @autoclosure @escaping () -> T) -> Promise<T> {
| `- error: cannot find type 'DispatchQueue' in scope
20 | Promise { seal in
21 | dispatchQueue.asyncAfter(deadline: delay) {
/host/spi-builder-workspace/Sources/PromiseKit/After.swift:27:31: error: cannot find type 'DispatchTime' in scope
25 | }
26 |
27 | public func after<T>(_ delay: DispatchTime = .now(), on dispatchQueue: DispatchQueue = .main, _ execute: @escaping () -> T) -> Promise<T> {
| `- error: cannot find type 'DispatchTime' in scope
28 | Promise { seal in
29 | dispatchQueue.asyncAfter(deadline: delay) {
/host/spi-builder-workspace/Sources/PromiseKit/After.swift:27:72: error: cannot find type 'DispatchQueue' in scope
25 | }
26 |
27 | public func after<T>(_ delay: DispatchTime = .now(), on dispatchQueue: DispatchQueue = .main, _ execute: @escaping () -> T) -> Promise<T> {
| `- error: cannot find type 'DispatchQueue' in scope
28 | Promise { seal in
29 | dispatchQueue.asyncAfter(deadline: delay) {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:58:60: error: cannot find type 'DispatchQueue' in scope
56 | }
57 |
58 | public func resolve(with value: Value, on dispatchQueue: DispatchQueue? = .main) {
| `- error: cannot find type 'DispatchQueue' in scope
59 | setResult(.success(value), on: dispatchQueue)
60 | }
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:893:34: error: cannot find type 'DispatchQueue' in scope
891 | public extension Promise where Value == Void {
892 | static func value() -> Promise<Value> { value(()) }
893 | func resolve(on dispatchQueue: DispatchQueue? = .main) { resolve(with: (), on: dispatchQueue) }
| `- error: cannot find type 'DispatchQueue' in scope
894 | }
895 |
/host/spi-builder-workspace/Sources/PromiseKit/After.swift:12:13: error: contextual closure type '() throws -> ()' expects 0 arguments, but 1 was used in closure body
10 |
11 | public func after(_ delay: DispatchTime = .now(), on dispatchQueue: DispatchQueue = .main) -> Promise<()> {
12 | Promise { seal in
| `- error: contextual closure type '() throws -> ()' expects 0 arguments, but 1 was used in closure body
13 | dispatchQueue.asyncAfter(deadline: delay) {
14 | seal.resolve(on: dispatchQueue)
/host/spi-builder-workspace/Sources/PromiseKit/After.swift:20:13: error: contextual closure type '() throws -> T' expects 0 arguments, but 1 was used in closure body
18 |
19 | public func after<T>(_ delay: DispatchTime = .now(), on dispatchQueue: DispatchQueue = .main, _ value: @autoclosure @escaping () -> T) -> Promise<T> {
20 | Promise { seal in
| `- error: contextual closure type '() throws -> T' expects 0 arguments, but 1 was used in closure body
21 | dispatchQueue.asyncAfter(deadline: delay) {
22 | seal.resolve(with: value(), on: dispatchQueue)
/host/spi-builder-workspace/Sources/PromiseKit/After.swift:28:13: error: contextual closure type '() throws -> T' expects 0 arguments, but 1 was used in closure body
26 |
27 | public func after<T>(_ delay: DispatchTime = .now(), on dispatchQueue: DispatchQueue = .main, _ execute: @escaping () -> T) -> Promise<T> {
28 | Promise { seal in
| `- error: contextual closure type '() throws -> T' expects 0 arguments, but 1 was used in closure body
29 | dispatchQueue.asyncAfter(deadline: delay) {
30 | seal.resolve(with: execute(), on: dispatchQueue)
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:19:21: error: cannot find type 'DispatchQueue' in scope
17 | /// then the new Promise fails as well.
18 | public func all<T, C: Collection>(
19 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
20 | promises: C
21 | ) -> Promise<[T]> where C.Element == Promise<T> {
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:57:21: error: cannot find type 'DispatchQueue' in scope
55 | /// then the new Promise fails as well.
56 | public func all<T, U>(
57 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
58 | _ p1: Promise<T>,
59 | _ p2: Promise<U>
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:74:21: error: cannot find type 'DispatchQueue' in scope
72 | /// then the new Promise fails as well.
73 | public func all<T, U, V>(
74 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
75 | _ p1: Promise<T>,
76 | _ p2: Promise<U>,
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:93:21: error: cannot find type 'DispatchQueue' in scope
91 | /// then the new Promise fails as well.
92 | public func all<T, U, V, Z>(
93 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
94 | _ p1: Promise<T>,
95 | _ p2: Promise<U>,
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:113:21: error: cannot find type 'DispatchQueue' in scope
111 | /// then the new Promise fails as well.
112 | public func all<T, U, V, Z, X>(
113 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
114 | _ p1: Promise<T>,
115 | _ p2: Promise<U>,
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:27:19: error: cannot find 'DispatchQueue' in scope
25 |
26 | return .init { seal in
27 | let barrier = DispatchQueue(label: "com.poviokit.promisekit.barrier", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
28 | for promise in promises {
29 | promise.finally { result in
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:27:88: error: cannot infer contextual base in reference to member 'concurrent'
25 |
26 | return .init { seal in
27 | let barrier = DispatchQueue(label: "com.poviokit.promisekit.barrier", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
28 | for promise in promises {
29 | promise.finally { result in
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:61:3: error: generic parameter 'Storage' could not be inferred
59 | _ p2: Promise<U>
60 | ) -> Promise<(T, U)> {
61 | all(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid])
| `- error: generic parameter 'Storage' could not be inferred
62 | .map { _ in (p1.value!, p2.value!) }
63 | }
Swift.all:1:13: note: in call to function 'all'
1 | public func all<Storage>(_ mask: SIMDMask<Storage>) -> Bool where Storage : SIMD, Storage.Scalar : FixedWidthInteger, Storage.Scalar : SignedInteger
| `- note: in call to function 'all'
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:61:36: error: extra argument 'promises' in call
59 | _ p2: Promise<U>
60 | ) -> Promise<(T, U)> {
61 | all(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid])
| `- error: extra argument 'promises' in call
62 | .map { _ in (p1.value!, p2.value!) }
63 | }
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:62:6: error: value of type 'Bool' has no member 'map'
60 | ) -> Promise<(T, U)> {
61 | all(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid])
62 | .map { _ in (p1.value!, p2.value!) }
| `- error: value of type 'Bool' has no member 'map'
63 | }
64 |
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:79:36: error: extra argument 'promises' in call
77 | _ p3: Promise<V>
78 | ) -> Promise<(T, U, V)> {
79 | all(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid, p3.asVoid])
| `- error: extra argument 'promises' in call
80 | .map(on: dispatchQueue) { _ in (p1.value!, p2.value!, p3.value!) }
81 | }
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:79:3: error: generic parameter 'Storage' could not be inferred
77 | _ p3: Promise<V>
78 | ) -> Promise<(T, U, V)> {
79 | all(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid, p3.asVoid])
| `- error: generic parameter 'Storage' could not be inferred
80 | .map(on: dispatchQueue) { _ in (p1.value!, p2.value!, p3.value!) }
81 | }
Swift.all:1:13: note: in call to function 'all'
1 | public func all<Storage>(_ mask: SIMDMask<Storage>) -> Bool where Storage : SIMD, Storage.Scalar : FixedWidthInteger, Storage.Scalar : SignedInteger
| `- note: in call to function 'all'
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:80:6: error: value of type 'Bool' has no member 'map'
78 | ) -> Promise<(T, U, V)> {
79 | all(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid, p3.asVoid])
80 | .map(on: dispatchQueue) { _ in (p1.value!, p2.value!, p3.value!) }
| `- error: value of type 'Bool' has no member 'map'
81 | }
82 |
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:99:36: error: extra argument 'promises' in call
97 | _ p4: Promise<Z>
98 | ) -> Promise<(T, U, V, Z)> {
99 | all(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid, p3.asVoid, p4.asVoid])
| `- error: extra argument 'promises' in call
100 | .map(on: dispatchQueue) { _ in (p1.value!, p2.value!, p3.value!, p4.value!) }
101 | }
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:99:3: error: generic parameter 'Storage' could not be inferred
97 | _ p4: Promise<Z>
98 | ) -> Promise<(T, U, V, Z)> {
99 | all(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid, p3.asVoid, p4.asVoid])
| `- error: generic parameter 'Storage' could not be inferred
100 | .map(on: dispatchQueue) { _ in (p1.value!, p2.value!, p3.value!, p4.value!) }
101 | }
Swift.all:1:13: note: in call to function 'all'
1 | public func all<Storage>(_ mask: SIMDMask<Storage>) -> Bool where Storage : SIMD, Storage.Scalar : FixedWidthInteger, Storage.Scalar : SignedInteger
| `- note: in call to function 'all'
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:100:6: error: value of type 'Bool' has no member 'map'
98 | ) -> Promise<(T, U, V, Z)> {
99 | all(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid, p3.asVoid, p4.asVoid])
100 | .map(on: dispatchQueue) { _ in (p1.value!, p2.value!, p3.value!, p4.value!) }
| `- error: value of type 'Bool' has no member 'map'
101 | }
102 |
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:120:3: error: generic parameter 'Storage' could not be inferred
118 | _ p5: Promise<X>
119 | ) -> Promise<(T, U, V, Z, X)> {
120 | all(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid, p3.asVoid, p4.asVoid, p5.asVoid])
| `- error: generic parameter 'Storage' could not be inferred
121 | .map(on: dispatchQueue) { _ in (p1.value!, p2.value!, p3.value!, p4.value!, p5.value!) }
122 | }
Swift.all:1:13: note: in call to function 'all'
1 | public func all<Storage>(_ mask: SIMDMask<Storage>) -> Bool where Storage : SIMD, Storage.Scalar : FixedWidthInteger, Storage.Scalar : SignedInteger
| `- note: in call to function 'all'
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:120:36: error: extra argument 'promises' in call
118 | _ p5: Promise<X>
119 | ) -> Promise<(T, U, V, Z, X)> {
120 | all(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid, p3.asVoid, p4.asVoid, p5.asVoid])
| `- error: extra argument 'promises' in call
121 | .map(on: dispatchQueue) { _ in (p1.value!, p2.value!, p3.value!, p4.value!, p5.value!) }
122 | }
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:121:6: error: value of type 'Bool' has no member 'map'
119 | ) -> Promise<(T, U, V, Z, X)> {
120 | all(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid, p3.asVoid, p4.asVoid, p5.asVoid])
121 | .map(on: dispatchQueue) { _ in (p1.value!, p2.value!, p3.value!, p4.value!, p5.value!) }
| `- error: value of type 'Bool' has no member 'map'
122 | }
123 |
[24/85] Compiling Alamofire AFError.swift
/host/spi-builder-workspace/Sources/PromiseKit/After.swift:11:28: error: cannot find type 'DispatchTime' in scope
9 | import Foundation
10 |
11 | public func after(_ delay: DispatchTime = .now(), on dispatchQueue: DispatchQueue = .main) -> Promise<()> {
| `- error: cannot find type 'DispatchTime' in scope
12 | Promise { seal in
13 | dispatchQueue.asyncAfter(deadline: delay) {
/host/spi-builder-workspace/Sources/PromiseKit/After.swift:11:69: error: cannot find type 'DispatchQueue' in scope
9 | import Foundation
10 |
11 | public func after(_ delay: DispatchTime = .now(), on dispatchQueue: DispatchQueue = .main) -> Promise<()> {
| `- error: cannot find type 'DispatchQueue' in scope
12 | Promise { seal in
13 | dispatchQueue.asyncAfter(deadline: delay) {
/host/spi-builder-workspace/Sources/PromiseKit/After.swift:19:31: error: cannot find type 'DispatchTime' in scope
17 | }
18 |
19 | public func after<T>(_ delay: DispatchTime = .now(), on dispatchQueue: DispatchQueue = .main, _ value: @autoclosure @escaping () -> T) -> Promise<T> {
| `- error: cannot find type 'DispatchTime' in scope
20 | Promise { seal in
21 | dispatchQueue.asyncAfter(deadline: delay) {
/host/spi-builder-workspace/Sources/PromiseKit/After.swift:19:72: error: cannot find type 'DispatchQueue' in scope
17 | }
18 |
19 | public func after<T>(_ delay: DispatchTime = .now(), on dispatchQueue: DispatchQueue = .main, _ value: @autoclosure @escaping () -> T) -> Promise<T> {
| `- error: cannot find type 'DispatchQueue' in scope
20 | Promise { seal in
21 | dispatchQueue.asyncAfter(deadline: delay) {
/host/spi-builder-workspace/Sources/PromiseKit/After.swift:27:31: error: cannot find type 'DispatchTime' in scope
25 | }
26 |
27 | public func after<T>(_ delay: DispatchTime = .now(), on dispatchQueue: DispatchQueue = .main, _ execute: @escaping () -> T) -> Promise<T> {
| `- error: cannot find type 'DispatchTime' in scope
28 | Promise { seal in
29 | dispatchQueue.asyncAfter(deadline: delay) {
/host/spi-builder-workspace/Sources/PromiseKit/After.swift:27:72: error: cannot find type 'DispatchQueue' in scope
25 | }
26 |
27 | public func after<T>(_ delay: DispatchTime = .now(), on dispatchQueue: DispatchQueue = .main, _ execute: @escaping () -> T) -> Promise<T> {
| `- error: cannot find type 'DispatchQueue' in scope
28 | Promise { seal in
29 | dispatchQueue.asyncAfter(deadline: delay) {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:58:60: error: cannot find type 'DispatchQueue' in scope
56 | }
57 |
58 | public func resolve(with value: Value, on dispatchQueue: DispatchQueue? = .main) {
| `- error: cannot find type 'DispatchQueue' in scope
59 | setResult(.success(value), on: dispatchQueue)
60 | }
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:893:34: error: cannot find type 'DispatchQueue' in scope
891 | public extension Promise where Value == Void {
892 | static func value() -> Promise<Value> { value(()) }
893 | func resolve(on dispatchQueue: DispatchQueue? = .main) { resolve(with: (), on: dispatchQueue) }
| `- error: cannot find type 'DispatchQueue' in scope
894 | }
895 |
/host/spi-builder-workspace/Sources/PromiseKit/After.swift:12:13: error: contextual closure type '() throws -> ()' expects 0 arguments, but 1 was used in closure body
10 |
11 | public func after(_ delay: DispatchTime = .now(), on dispatchQueue: DispatchQueue = .main) -> Promise<()> {
12 | Promise { seal in
| `- error: contextual closure type '() throws -> ()' expects 0 arguments, but 1 was used in closure body
13 | dispatchQueue.asyncAfter(deadline: delay) {
14 | seal.resolve(on: dispatchQueue)
/host/spi-builder-workspace/Sources/PromiseKit/After.swift:20:13: error: contextual closure type '() throws -> T' expects 0 arguments, but 1 was used in closure body
18 |
19 | public func after<T>(_ delay: DispatchTime = .now(), on dispatchQueue: DispatchQueue = .main, _ value: @autoclosure @escaping () -> T) -> Promise<T> {
20 | Promise { seal in
| `- error: contextual closure type '() throws -> T' expects 0 arguments, but 1 was used in closure body
21 | dispatchQueue.asyncAfter(deadline: delay) {
22 | seal.resolve(with: value(), on: dispatchQueue)
/host/spi-builder-workspace/Sources/PromiseKit/After.swift:28:13: error: contextual closure type '() throws -> T' expects 0 arguments, but 1 was used in closure body
26 |
27 | public func after<T>(_ delay: DispatchTime = .now(), on dispatchQueue: DispatchQueue = .main, _ execute: @escaping () -> T) -> Promise<T> {
28 | Promise { seal in
| `- error: contextual closure type '() throws -> T' expects 0 arguments, but 1 was used in closure body
29 | dispatchQueue.asyncAfter(deadline: delay) {
30 | seal.resolve(with: execute(), on: dispatchQueue)
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:19:21: error: cannot find type 'DispatchQueue' in scope
17 | /// then the new Promise fails as well.
18 | public func all<T, C: Collection>(
19 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
20 | promises: C
21 | ) -> Promise<[T]> where C.Element == Promise<T> {
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:57:21: error: cannot find type 'DispatchQueue' in scope
55 | /// then the new Promise fails as well.
56 | public func all<T, U>(
57 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
58 | _ p1: Promise<T>,
59 | _ p2: Promise<U>
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:74:21: error: cannot find type 'DispatchQueue' in scope
72 | /// then the new Promise fails as well.
73 | public func all<T, U, V>(
74 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
75 | _ p1: Promise<T>,
76 | _ p2: Promise<U>,
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:93:21: error: cannot find type 'DispatchQueue' in scope
91 | /// then the new Promise fails as well.
92 | public func all<T, U, V, Z>(
93 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
94 | _ p1: Promise<T>,
95 | _ p2: Promise<U>,
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:113:21: error: cannot find type 'DispatchQueue' in scope
111 | /// then the new Promise fails as well.
112 | public func all<T, U, V, Z, X>(
113 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
114 | _ p1: Promise<T>,
115 | _ p2: Promise<U>,
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:27:19: error: cannot find 'DispatchQueue' in scope
25 |
26 | return .init { seal in
27 | let barrier = DispatchQueue(label: "com.poviokit.promisekit.barrier", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
28 | for promise in promises {
29 | promise.finally { result in
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:27:88: error: cannot infer contextual base in reference to member 'concurrent'
25 |
26 | return .init { seal in
27 | let barrier = DispatchQueue(label: "com.poviokit.promisekit.barrier", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
28 | for promise in promises {
29 | promise.finally { result in
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:61:3: error: generic parameter 'Storage' could not be inferred
59 | _ p2: Promise<U>
60 | ) -> Promise<(T, U)> {
61 | all(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid])
| `- error: generic parameter 'Storage' could not be inferred
62 | .map { _ in (p1.value!, p2.value!) }
63 | }
Swift.all:1:13: note: in call to function 'all'
1 | public func all<Storage>(_ mask: SIMDMask<Storage>) -> Bool where Storage : SIMD, Storage.Scalar : FixedWidthInteger, Storage.Scalar : SignedInteger
| `- note: in call to function 'all'
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:61:36: error: extra argument 'promises' in call
59 | _ p2: Promise<U>
60 | ) -> Promise<(T, U)> {
61 | all(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid])
| `- error: extra argument 'promises' in call
62 | .map { _ in (p1.value!, p2.value!) }
63 | }
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:62:6: error: value of type 'Bool' has no member 'map'
60 | ) -> Promise<(T, U)> {
61 | all(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid])
62 | .map { _ in (p1.value!, p2.value!) }
| `- error: value of type 'Bool' has no member 'map'
63 | }
64 |
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:79:36: error: extra argument 'promises' in call
77 | _ p3: Promise<V>
78 | ) -> Promise<(T, U, V)> {
79 | all(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid, p3.asVoid])
| `- error: extra argument 'promises' in call
80 | .map(on: dispatchQueue) { _ in (p1.value!, p2.value!, p3.value!) }
81 | }
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:79:3: error: generic parameter 'Storage' could not be inferred
77 | _ p3: Promise<V>
78 | ) -> Promise<(T, U, V)> {
79 | all(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid, p3.asVoid])
| `- error: generic parameter 'Storage' could not be inferred
80 | .map(on: dispatchQueue) { _ in (p1.value!, p2.value!, p3.value!) }
81 | }
Swift.all:1:13: note: in call to function 'all'
1 | public func all<Storage>(_ mask: SIMDMask<Storage>) -> Bool where Storage : SIMD, Storage.Scalar : FixedWidthInteger, Storage.Scalar : SignedInteger
| `- note: in call to function 'all'
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:80:6: error: value of type 'Bool' has no member 'map'
78 | ) -> Promise<(T, U, V)> {
79 | all(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid, p3.asVoid])
80 | .map(on: dispatchQueue) { _ in (p1.value!, p2.value!, p3.value!) }
| `- error: value of type 'Bool' has no member 'map'
81 | }
82 |
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:99:36: error: extra argument 'promises' in call
97 | _ p4: Promise<Z>
98 | ) -> Promise<(T, U, V, Z)> {
99 | all(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid, p3.asVoid, p4.asVoid])
| `- error: extra argument 'promises' in call
100 | .map(on: dispatchQueue) { _ in (p1.value!, p2.value!, p3.value!, p4.value!) }
101 | }
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:99:3: error: generic parameter 'Storage' could not be inferred
97 | _ p4: Promise<Z>
98 | ) -> Promise<(T, U, V, Z)> {
99 | all(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid, p3.asVoid, p4.asVoid])
| `- error: generic parameter 'Storage' could not be inferred
100 | .map(on: dispatchQueue) { _ in (p1.value!, p2.value!, p3.value!, p4.value!) }
101 | }
Swift.all:1:13: note: in call to function 'all'
1 | public func all<Storage>(_ mask: SIMDMask<Storage>) -> Bool where Storage : SIMD, Storage.Scalar : FixedWidthInteger, Storage.Scalar : SignedInteger
| `- note: in call to function 'all'
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:100:6: error: value of type 'Bool' has no member 'map'
98 | ) -> Promise<(T, U, V, Z)> {
99 | all(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid, p3.asVoid, p4.asVoid])
100 | .map(on: dispatchQueue) { _ in (p1.value!, p2.value!, p3.value!, p4.value!) }
| `- error: value of type 'Bool' has no member 'map'
101 | }
102 |
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:120:3: error: generic parameter 'Storage' could not be inferred
118 | _ p5: Promise<X>
119 | ) -> Promise<(T, U, V, Z, X)> {
120 | all(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid, p3.asVoid, p4.asVoid, p5.asVoid])
| `- error: generic parameter 'Storage' could not be inferred
121 | .map(on: dispatchQueue) { _ in (p1.value!, p2.value!, p3.value!, p4.value!, p5.value!) }
122 | }
Swift.all:1:13: note: in call to function 'all'
1 | public func all<Storage>(_ mask: SIMDMask<Storage>) -> Bool where Storage : SIMD, Storage.Scalar : FixedWidthInteger, Storage.Scalar : SignedInteger
| `- note: in call to function 'all'
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:120:36: error: extra argument 'promises' in call
118 | _ p5: Promise<X>
119 | ) -> Promise<(T, U, V, Z, X)> {
120 | all(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid, p3.asVoid, p4.asVoid, p5.asVoid])
| `- error: extra argument 'promises' in call
121 | .map(on: dispatchQueue) { _ in (p1.value!, p2.value!, p3.value!, p4.value!, p5.value!) }
122 | }
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:121:6: error: value of type 'Bool' has no member 'map'
119 | ) -> Promise<(T, U, V, Z, X)> {
120 | all(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid, p3.asVoid, p4.asVoid, p5.asVoid])
121 | .map(on: dispatchQueue) { _ in (p1.value!, p2.value!, p3.value!, p4.value!, p5.value!) }
| `- error: value of type 'Bool' has no member 'map'
122 | }
123 |
[25/85] Compiling Alamofire DataRequest.swift
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:19:21: error: cannot find type 'DispatchQueue' in scope
17 | /// - Returns: An array of `Optional<T>` values wrapped in a Promise.
18 | public func any<T, C: Collection>(
19 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
20 | promises: C
21 | ) -> Promise<[T?]> where C.Element == Promise<T> {
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:53:21: error: cannot find type 'DispatchQueue' in scope
51 | /// - Returns: A Promise with the result of given promises.
52 | public func any<T, U>(
53 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
54 | _ p1: Promise<T>,
55 | _ p2: Promise<U>
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:72:21: error: cannot find type 'DispatchQueue' in scope
70 | /// - Returns: A Promise with the result of given promises.
71 | public func any<T, U, V>(
72 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
73 | _ p1: Promise<T>,
74 | _ p2: Promise<U>,
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:93:21: error: cannot find type 'DispatchQueue' in scope
91 | /// - Returns: A Promise with the result of given promises.
92 | public func any<T, U, V, Z>(
93 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
94 | _ p1: Promise<T>,
95 | _ p2: Promise<U>,
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:115:21: error: cannot find type 'DispatchQueue' in scope
113 | /// - Returns: A Promise with the result of given promises.
114 | public func any<T, U, V, Z, X>(
115 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
116 | _ p1: Promise<T>,
117 | _ p2: Promise<U>,
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:27:19: error: cannot find 'DispatchQueue' in scope
25 |
26 | return .init { seal in
27 | let barrier = DispatchQueue(label: "com.poviokit.promisekit.barrier", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
28 | for promise in promises {
29 | promise.finally { result in
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:27:88: error: cannot infer contextual base in reference to member 'concurrent'
25 |
26 | return .init { seal in
27 | let barrier = DispatchQueue(label: "com.poviokit.promisekit.barrier", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
28 | for promise in promises {
29 | promise.finally { result in
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:57:36: error: extra argument 'promises' in call
55 | _ p2: Promise<U>
56 | ) -> Promise<(T?, U?)> {
57 | any(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid])
| `- error: extra argument 'promises' in call
58 | .map { _ in (p1.value, p2.value) }
59 | }
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:57:3: error: generic parameter 'Storage' could not be inferred
55 | _ p2: Promise<U>
56 | ) -> Promise<(T?, U?)> {
57 | any(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid])
| `- error: generic parameter 'Storage' could not be inferred
58 | .map { _ in (p1.value, p2.value) }
59 | }
Swift.any:1:13: note: in call to function 'any'
1 | public func any<Storage>(_ mask: SIMDMask<Storage>) -> Bool where Storage : SIMD, Storage.Scalar : FixedWidthInteger, Storage.Scalar : SignedInteger
| `- note: in call to function 'any'
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:58:6: error: value of type 'Bool' has no member 'map'
56 | ) -> Promise<(T?, U?)> {
57 | any(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid])
58 | .map { _ in (p1.value, p2.value) }
| `- error: value of type 'Bool' has no member 'map'
59 | }
60 |
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:77:36: error: extra argument 'promises' in call
75 | _ p3: Promise<V>
76 | ) -> Promise<(T?, U?, V?)> {
77 | any(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid, p3.asVoid])
| `- error: extra argument 'promises' in call
78 | .map(on: dispatchQueue) { _ in (p1.value, p2.value, p3.value) }
79 | }
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:77:3: error: generic parameter 'Storage' could not be inferred
75 | _ p3: Promise<V>
76 | ) -> Promise<(T?, U?, V?)> {
77 | any(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid, p3.asVoid])
| `- error: generic parameter 'Storage' could not be inferred
78 | .map(on: dispatchQueue) { _ in (p1.value, p2.value, p3.value) }
79 | }
Swift.any:1:13: note: in call to function 'any'
1 | public func any<Storage>(_ mask: SIMDMask<Storage>) -> Bool where Storage : SIMD, Storage.Scalar : FixedWidthInteger, Storage.Scalar : SignedInteger
| `- note: in call to function 'any'
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:78:6: error: value of type 'Bool' has no member 'map'
76 | ) -> Promise<(T?, U?, V?)> {
77 | any(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid, p3.asVoid])
78 | .map(on: dispatchQueue) { _ in (p1.value, p2.value, p3.value) }
| `- error: value of type 'Bool' has no member 'map'
79 | }
80 |
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:99:36: error: extra argument 'promises' in call
97 | _ p4: Promise<Z>
98 | ) -> Promise<(T?, U?, V?, Z?)> {
99 | any(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid, p3.asVoid, p4.asVoid])
| `- error: extra argument 'promises' in call
100 | .map(on: dispatchQueue) { _ in (p1.value, p2.value, p3.value, p4.value) }
101 | }
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:99:3: error: generic parameter 'Storage' could not be inferred
97 | _ p4: Promise<Z>
98 | ) -> Promise<(T?, U?, V?, Z?)> {
99 | any(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid, p3.asVoid, p4.asVoid])
| `- error: generic parameter 'Storage' could not be inferred
100 | .map(on: dispatchQueue) { _ in (p1.value, p2.value, p3.value, p4.value) }
101 | }
Swift.any:1:13: note: in call to function 'any'
1 | public func any<Storage>(_ mask: SIMDMask<Storage>) -> Bool where Storage : SIMD, Storage.Scalar : FixedWidthInteger, Storage.Scalar : SignedInteger
| `- note: in call to function 'any'
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:100:6: error: value of type 'Bool' has no member 'map'
98 | ) -> Promise<(T?, U?, V?, Z?)> {
99 | any(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid, p3.asVoid, p4.asVoid])
100 | .map(on: dispatchQueue) { _ in (p1.value, p2.value, p3.value, p4.value) }
| `- error: value of type 'Bool' has no member 'map'
101 | }
102 |
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:122:36: error: extra argument 'promises' in call
120 | _ p5: Promise<X>
121 | ) -> Promise<(T?, U?, V?, Z?, X?)> {
122 | any(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid, p3.asVoid, p4.asVoid, p5.asVoid])
| `- error: extra argument 'promises' in call
123 | .map(on: dispatchQueue) { _ in (p1.value, p2.value, p3.value, p4.value, p5.value) }
124 | }
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:122:3: error: generic parameter 'Storage' could not be inferred
120 | _ p5: Promise<X>
121 | ) -> Promise<(T?, U?, V?, Z?, X?)> {
122 | any(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid, p3.asVoid, p4.asVoid, p5.asVoid])
| `- error: generic parameter 'Storage' could not be inferred
123 | .map(on: dispatchQueue) { _ in (p1.value, p2.value, p3.value, p4.value, p5.value) }
124 | }
Swift.any:1:13: note: in call to function 'any'
1 | public func any<Storage>(_ mask: SIMDMask<Storage>) -> Bool where Storage : SIMD, Storage.Scalar : FixedWidthInteger, Storage.Scalar : SignedInteger
| `- note: in call to function 'any'
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:123:6: error: value of type 'Bool' has no member 'map'
121 | ) -> Promise<(T?, U?, V?, Z?, X?)> {
122 | any(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid, p3.asVoid, p4.asVoid, p5.asVoid])
123 | .map(on: dispatchQueue) { _ in (p1.value, p2.value, p3.value, p4.value, p5.value) }
| `- error: value of type 'Bool' has no member 'map'
124 | }
125 |
/host/spi-builder-workspace/Sources/PromiseKit/ConcurrentDispatch.swift:47:21: error: cannot find type 'DispatchQueue' in scope
45 | concurrent: Int,
46 | retryCount: Int = 2,
47 | on dispatchQueue: DispatchQueue? = .main
| `- error: cannot find type 'DispatchQueue' in scope
48 | ) -> Promise<()> {
49 | .init { seal in
/host/spi-builder-workspace/Sources/PromiseKit/ConcurrentDispatch.swift:50:19: error: cannot find 'DispatchQueue' in scope
48 | ) -> Promise<()> {
49 | .init { seal in
50 | let barrier = DispatchQueue(label: "com.poviokit.promisekit.barrier", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
51 |
52 | var segmentIndex = concurrent
/host/spi-builder-workspace/Sources/PromiseKit/ConcurrentDispatch.swift:50:88: error: cannot infer contextual base in reference to member 'concurrent'
48 | ) -> Promise<()> {
49 | .init { seal in
50 | let barrier = DispatchQueue(label: "com.poviokit.promisekit.barrier", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
51 |
52 | var segmentIndex = concurrent
[26/85] Compiling Alamofire DataStreamRequest.swift
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:19:21: error: cannot find type 'DispatchQueue' in scope
17 | /// - Returns: An array of `Optional<T>` values wrapped in a Promise.
18 | public func any<T, C: Collection>(
19 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
20 | promises: C
21 | ) -> Promise<[T?]> where C.Element == Promise<T> {
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:53:21: error: cannot find type 'DispatchQueue' in scope
51 | /// - Returns: A Promise with the result of given promises.
52 | public func any<T, U>(
53 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
54 | _ p1: Promise<T>,
55 | _ p2: Promise<U>
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:72:21: error: cannot find type 'DispatchQueue' in scope
70 | /// - Returns: A Promise with the result of given promises.
71 | public func any<T, U, V>(
72 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
73 | _ p1: Promise<T>,
74 | _ p2: Promise<U>,
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:93:21: error: cannot find type 'DispatchQueue' in scope
91 | /// - Returns: A Promise with the result of given promises.
92 | public func any<T, U, V, Z>(
93 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
94 | _ p1: Promise<T>,
95 | _ p2: Promise<U>,
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:115:21: error: cannot find type 'DispatchQueue' in scope
113 | /// - Returns: A Promise with the result of given promises.
114 | public func any<T, U, V, Z, X>(
115 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
116 | _ p1: Promise<T>,
117 | _ p2: Promise<U>,
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:27:19: error: cannot find 'DispatchQueue' in scope
25 |
26 | return .init { seal in
27 | let barrier = DispatchQueue(label: "com.poviokit.promisekit.barrier", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
28 | for promise in promises {
29 | promise.finally { result in
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:27:88: error: cannot infer contextual base in reference to member 'concurrent'
25 |
26 | return .init { seal in
27 | let barrier = DispatchQueue(label: "com.poviokit.promisekit.barrier", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
28 | for promise in promises {
29 | promise.finally { result in
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:57:36: error: extra argument 'promises' in call
55 | _ p2: Promise<U>
56 | ) -> Promise<(T?, U?)> {
57 | any(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid])
| `- error: extra argument 'promises' in call
58 | .map { _ in (p1.value, p2.value) }
59 | }
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:57:3: error: generic parameter 'Storage' could not be inferred
55 | _ p2: Promise<U>
56 | ) -> Promise<(T?, U?)> {
57 | any(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid])
| `- error: generic parameter 'Storage' could not be inferred
58 | .map { _ in (p1.value, p2.value) }
59 | }
Swift.any:1:13: note: in call to function 'any'
1 | public func any<Storage>(_ mask: SIMDMask<Storage>) -> Bool where Storage : SIMD, Storage.Scalar : FixedWidthInteger, Storage.Scalar : SignedInteger
| `- note: in call to function 'any'
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:58:6: error: value of type 'Bool' has no member 'map'
56 | ) -> Promise<(T?, U?)> {
57 | any(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid])
58 | .map { _ in (p1.value, p2.value) }
| `- error: value of type 'Bool' has no member 'map'
59 | }
60 |
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:77:36: error: extra argument 'promises' in call
75 | _ p3: Promise<V>
76 | ) -> Promise<(T?, U?, V?)> {
77 | any(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid, p3.asVoid])
| `- error: extra argument 'promises' in call
78 | .map(on: dispatchQueue) { _ in (p1.value, p2.value, p3.value) }
79 | }
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:77:3: error: generic parameter 'Storage' could not be inferred
75 | _ p3: Promise<V>
76 | ) -> Promise<(T?, U?, V?)> {
77 | any(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid, p3.asVoid])
| `- error: generic parameter 'Storage' could not be inferred
78 | .map(on: dispatchQueue) { _ in (p1.value, p2.value, p3.value) }
79 | }
Swift.any:1:13: note: in call to function 'any'
1 | public func any<Storage>(_ mask: SIMDMask<Storage>) -> Bool where Storage : SIMD, Storage.Scalar : FixedWidthInteger, Storage.Scalar : SignedInteger
| `- note: in call to function 'any'
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:78:6: error: value of type 'Bool' has no member 'map'
76 | ) -> Promise<(T?, U?, V?)> {
77 | any(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid, p3.asVoid])
78 | .map(on: dispatchQueue) { _ in (p1.value, p2.value, p3.value) }
| `- error: value of type 'Bool' has no member 'map'
79 | }
80 |
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:99:36: error: extra argument 'promises' in call
97 | _ p4: Promise<Z>
98 | ) -> Promise<(T?, U?, V?, Z?)> {
99 | any(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid, p3.asVoid, p4.asVoid])
| `- error: extra argument 'promises' in call
100 | .map(on: dispatchQueue) { _ in (p1.value, p2.value, p3.value, p4.value) }
101 | }
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:99:3: error: generic parameter 'Storage' could not be inferred
97 | _ p4: Promise<Z>
98 | ) -> Promise<(T?, U?, V?, Z?)> {
99 | any(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid, p3.asVoid, p4.asVoid])
| `- error: generic parameter 'Storage' could not be inferred
100 | .map(on: dispatchQueue) { _ in (p1.value, p2.value, p3.value, p4.value) }
101 | }
Swift.any:1:13: note: in call to function 'any'
1 | public func any<Storage>(_ mask: SIMDMask<Storage>) -> Bool where Storage : SIMD, Storage.Scalar : FixedWidthInteger, Storage.Scalar : SignedInteger
| `- note: in call to function 'any'
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:100:6: error: value of type 'Bool' has no member 'map'
98 | ) -> Promise<(T?, U?, V?, Z?)> {
99 | any(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid, p3.asVoid, p4.asVoid])
100 | .map(on: dispatchQueue) { _ in (p1.value, p2.value, p3.value, p4.value) }
| `- error: value of type 'Bool' has no member 'map'
101 | }
102 |
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:122:36: error: extra argument 'promises' in call
120 | _ p5: Promise<X>
121 | ) -> Promise<(T?, U?, V?, Z?, X?)> {
122 | any(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid, p3.asVoid, p4.asVoid, p5.asVoid])
| `- error: extra argument 'promises' in call
123 | .map(on: dispatchQueue) { _ in (p1.value, p2.value, p3.value, p4.value, p5.value) }
124 | }
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:122:3: error: generic parameter 'Storage' could not be inferred
120 | _ p5: Promise<X>
121 | ) -> Promise<(T?, U?, V?, Z?, X?)> {
122 | any(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid, p3.asVoid, p4.asVoid, p5.asVoid])
| `- error: generic parameter 'Storage' could not be inferred
123 | .map(on: dispatchQueue) { _ in (p1.value, p2.value, p3.value, p4.value, p5.value) }
124 | }
Swift.any:1:13: note: in call to function 'any'
1 | public func any<Storage>(_ mask: SIMDMask<Storage>) -> Bool where Storage : SIMD, Storage.Scalar : FixedWidthInteger, Storage.Scalar : SignedInteger
| `- note: in call to function 'any'
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:123:6: error: value of type 'Bool' has no member 'map'
121 | ) -> Promise<(T?, U?, V?, Z?, X?)> {
122 | any(on: dispatchQueue, promises: [p1.asVoid, p2.asVoid, p3.asVoid, p4.asVoid, p5.asVoid])
123 | .map(on: dispatchQueue) { _ in (p1.value, p2.value, p3.value, p4.value, p5.value) }
| `- error: value of type 'Bool' has no member 'map'
124 | }
125 |
/host/spi-builder-workspace/Sources/PromiseKit/ConcurrentDispatch.swift:47:21: error: cannot find type 'DispatchQueue' in scope
45 | concurrent: Int,
46 | retryCount: Int = 2,
47 | on dispatchQueue: DispatchQueue? = .main
| `- error: cannot find type 'DispatchQueue' in scope
48 | ) -> Promise<()> {
49 | .init { seal in
/host/spi-builder-workspace/Sources/PromiseKit/ConcurrentDispatch.swift:50:19: error: cannot find 'DispatchQueue' in scope
48 | ) -> Promise<()> {
49 | .init { seal in
50 | let barrier = DispatchQueue(label: "com.poviokit.promisekit.barrier", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
51 |
52 | var segmentIndex = concurrent
/host/spi-builder-workspace/Sources/PromiseKit/ConcurrentDispatch.swift:50:88: error: cannot infer contextual base in reference to member 'concurrent'
48 | ) -> Promise<()> {
49 | .init { seal in
50 | let barrier = DispatchQueue(label: "com.poviokit.promisekit.barrier", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
51 |
52 | var segmentIndex = concurrent
[27/85] Compiling Alamofire RequestTaskMap.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[28/85] Compiling Alamofire Response.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[29/85] Compiling Alamofire Session.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[30/85] Compiling Alamofire SessionDelegate.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[31/85] Emitting module PovioKitPromise
/host/spi-builder-workspace/Sources/PromiseKit/After.swift:11:28: error: cannot find type 'DispatchTime' in scope
9 | import Foundation
10 |
11 | public func after(_ delay: DispatchTime = .now(), on dispatchQueue: DispatchQueue = .main) -> Promise<()> {
| `- error: cannot find type 'DispatchTime' in scope
12 | Promise { seal in
13 | dispatchQueue.asyncAfter(deadline: delay) {
/host/spi-builder-workspace/Sources/PromiseKit/After.swift:11:69: error: cannot find type 'DispatchQueue' in scope
9 | import Foundation
10 |
11 | public func after(_ delay: DispatchTime = .now(), on dispatchQueue: DispatchQueue = .main) -> Promise<()> {
| `- error: cannot find type 'DispatchQueue' in scope
12 | Promise { seal in
13 | dispatchQueue.asyncAfter(deadline: delay) {
/host/spi-builder-workspace/Sources/PromiseKit/After.swift:19:31: error: cannot find type 'DispatchTime' in scope
17 | }
18 |
19 | public func after<T>(_ delay: DispatchTime = .now(), on dispatchQueue: DispatchQueue = .main, _ value: @autoclosure @escaping () -> T) -> Promise<T> {
| `- error: cannot find type 'DispatchTime' in scope
20 | Promise { seal in
21 | dispatchQueue.asyncAfter(deadline: delay) {
/host/spi-builder-workspace/Sources/PromiseKit/After.swift:19:72: error: cannot find type 'DispatchQueue' in scope
17 | }
18 |
19 | public func after<T>(_ delay: DispatchTime = .now(), on dispatchQueue: DispatchQueue = .main, _ value: @autoclosure @escaping () -> T) -> Promise<T> {
| `- error: cannot find type 'DispatchQueue' in scope
20 | Promise { seal in
21 | dispatchQueue.asyncAfter(deadline: delay) {
/host/spi-builder-workspace/Sources/PromiseKit/After.swift:27:31: error: cannot find type 'DispatchTime' in scope
25 | }
26 |
27 | public func after<T>(_ delay: DispatchTime = .now(), on dispatchQueue: DispatchQueue = .main, _ execute: @escaping () -> T) -> Promise<T> {
| `- error: cannot find type 'DispatchTime' in scope
28 | Promise { seal in
29 | dispatchQueue.asyncAfter(deadline: delay) {
/host/spi-builder-workspace/Sources/PromiseKit/After.swift:27:72: error: cannot find type 'DispatchQueue' in scope
25 | }
26 |
27 | public func after<T>(_ delay: DispatchTime = .now(), on dispatchQueue: DispatchQueue = .main, _ execute: @escaping () -> T) -> Promise<T> {
| `- error: cannot find type 'DispatchQueue' in scope
28 | Promise { seal in
29 | dispatchQueue.asyncAfter(deadline: delay) {
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:19:21: error: cannot find type 'DispatchQueue' in scope
17 | /// then the new Promise fails as well.
18 | public func all<T, C: Collection>(
19 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
20 | promises: C
21 | ) -> Promise<[T]> where C.Element == Promise<T> {
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:57:21: error: cannot find type 'DispatchQueue' in scope
55 | /// then the new Promise fails as well.
56 | public func all<T, U>(
57 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
58 | _ p1: Promise<T>,
59 | _ p2: Promise<U>
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:74:21: error: cannot find type 'DispatchQueue' in scope
72 | /// then the new Promise fails as well.
73 | public func all<T, U, V>(
74 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
75 | _ p1: Promise<T>,
76 | _ p2: Promise<U>,
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:93:21: error: cannot find type 'DispatchQueue' in scope
91 | /// then the new Promise fails as well.
92 | public func all<T, U, V, Z>(
93 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
94 | _ p1: Promise<T>,
95 | _ p2: Promise<U>,
/host/spi-builder-workspace/Sources/PromiseKit/All.swift:113:21: error: cannot find type 'DispatchQueue' in scope
111 | /// then the new Promise fails as well.
112 | public func all<T, U, V, Z, X>(
113 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
114 | _ p1: Promise<T>,
115 | _ p2: Promise<U>,
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:19:21: error: cannot find type 'DispatchQueue' in scope
17 | /// - Returns: An array of `Optional<T>` values wrapped in a Promise.
18 | public func any<T, C: Collection>(
19 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
20 | promises: C
21 | ) -> Promise<[T?]> where C.Element == Promise<T> {
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:53:21: error: cannot find type 'DispatchQueue' in scope
51 | /// - Returns: A Promise with the result of given promises.
52 | public func any<T, U>(
53 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
54 | _ p1: Promise<T>,
55 | _ p2: Promise<U>
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:72:21: error: cannot find type 'DispatchQueue' in scope
70 | /// - Returns: A Promise with the result of given promises.
71 | public func any<T, U, V>(
72 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
73 | _ p1: Promise<T>,
74 | _ p2: Promise<U>,
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:93:21: error: cannot find type 'DispatchQueue' in scope
91 | /// - Returns: A Promise with the result of given promises.
92 | public func any<T, U, V, Z>(
93 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
94 | _ p1: Promise<T>,
95 | _ p2: Promise<U>,
/host/spi-builder-workspace/Sources/PromiseKit/Any.swift:115:21: error: cannot find type 'DispatchQueue' in scope
113 | /// - Returns: A Promise with the result of given promises.
114 | public func any<T, U, V, Z, X>(
115 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
116 | _ p1: Promise<T>,
117 | _ p2: Promise<U>,
/host/spi-builder-workspace/Sources/PromiseKit/ConcurrentDispatch.swift:47:21: error: cannot find type 'DispatchQueue' in scope
45 | concurrent: Int,
46 | retryCount: Int = 2,
47 | on dispatchQueue: DispatchQueue? = .main
| `- error: cannot find type 'DispatchQueue' in scope
48 | ) -> Promise<()> {
49 | .init { seal in
/host/spi-builder-workspace/Sources/PromiseKit/Future.swift:25:61: error: cannot find type 'DispatchQueue' in scope
23 | }
24 |
25 | func setResult(_ result: FutureResult?, on dispatchQueue: DispatchQueue? = nil) {
| `- error: cannot find type 'DispatchQueue' in scope
26 | lock.withLock {
27 | guard self.internalResult == nil else { return }
/host/spi-builder-workspace/Sources/PromiseKit/Poll.swift:38:24: error: cannot find type 'DispatchTimeInterval' in scope
36 | public func poll<T>(
37 | repeat request: @escaping () -> Promise<T>,
38 | checkAfter interval: DispatchTimeInterval,
| `- error: cannot find type 'DispatchTimeInterval' in scope
39 | while predicate: @escaping (T) -> Bool,
40 | maxRetry retry: UInt = .max,
/host/spi-builder-workspace/Sources/PromiseKit/Poll.swift:41:32: error: cannot find type 'DispatchQueue' in scope
39 | while predicate: @escaping (T) -> Bool,
40 | maxRetry retry: UInt = .max,
41 | pollOn pollingDispatchQueue: DispatchQueue = .global(),
| `- error: cannot find type 'DispatchQueue' in scope
42 | resolveOn resolveDispatchQueue: DispatchQueue? = .main
43 | ) -> Promise<T> {
/host/spi-builder-workspace/Sources/PromiseKit/Poll.swift:42:35: error: cannot find type 'DispatchQueue' in scope
40 | maxRetry retry: UInt = .max,
41 | pollOn pollingDispatchQueue: DispatchQueue = .global(),
42 | resolveOn resolveDispatchQueue: DispatchQueue? = .main
| `- error: cannot find type 'DispatchQueue' in scope
43 | ) -> Promise<T> {
44 | poll(
/host/spi-builder-workspace/Sources/PromiseKit/Poll.swift:55:19: error: cannot find type 'DispatchTimeInterval' in scope
53 |
54 | public protocol PollingDelay {
55 | var checkAfter: DispatchTimeInterval { get }
| `- error: cannot find type 'DispatchTimeInterval' in scope
56 | }
57 |
/host/spi-builder-workspace/Sources/PromiseKit/Poll.swift:96:32: error: cannot find type 'DispatchQueue' in scope
94 | while predicate: @escaping (T) -> Bool,
95 | maxRetry retry: UInt = .max,
96 | pollOn pollingDispatchQueue: DispatchQueue = .global(),
| `- error: cannot find type 'DispatchQueue' in scope
97 | resolveOn resolveDispatchQueue: DispatchQueue? = .main
98 | ) -> Promise<T> {
/host/spi-builder-workspace/Sources/PromiseKit/Poll.swift:97:35: error: cannot find type 'DispatchQueue' in scope
95 | maxRetry retry: UInt = .max,
96 | pollOn pollingDispatchQueue: DispatchQueue = .global(),
97 | resolveOn resolveDispatchQueue: DispatchQueue? = .main
| `- error: cannot find type 'DispatchQueue' in scope
98 | ) -> Promise<T> {
99 | poll(
/host/spi-builder-workspace/Sources/PromiseKit/Poll.swift:112:32: error: cannot find type 'DispatchTimeInterval' in scope
110 | func poll<T>(
111 | repeat request: @escaping () -> Promise<T>,
112 | checkAfter: @escaping (T) -> DispatchTimeInterval,
| `- error: cannot find type 'DispatchTimeInterval' in scope
113 | while predicate: @escaping (T) -> Bool,
114 | maxRetry retry: UInt,
/host/spi-builder-workspace/Sources/PromiseKit/Poll.swift:112:15: error: @escaping attribute only applies to function types
110 | func poll<T>(
111 | repeat request: @escaping () -> Promise<T>,
112 | checkAfter: @escaping (T) -> DispatchTimeInterval,
| `- error: @escaping attribute only applies to function types
113 | while predicate: @escaping (T) -> Bool,
114 | maxRetry retry: UInt,
/host/spi-builder-workspace/Sources/PromiseKit/Poll.swift:115:32: error: cannot find type 'DispatchQueue' in scope
113 | while predicate: @escaping (T) -> Bool,
114 | maxRetry retry: UInt,
115 | pollOn pollingDispatchQueue: DispatchQueue = .global(),
| `- error: cannot find type 'DispatchQueue' in scope
116 | resolveOn resolveDispatchQueue: DispatchQueue? = .main
117 | ) -> Promise<T> {
/host/spi-builder-workspace/Sources/PromiseKit/Poll.swift:116:35: error: cannot find type 'DispatchQueue' in scope
114 | maxRetry retry: UInt,
115 | pollOn pollingDispatchQueue: DispatchQueue = .global(),
116 | resolveOn resolveDispatchQueue: DispatchQueue? = .main
| `- error: cannot find type 'DispatchQueue' in scope
117 | ) -> Promise<T> {
118 | precondition(retry > 0)
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:58:60: error: cannot find type 'DispatchQueue' in scope
56 | }
57 |
58 | public func resolve(with value: Value, on dispatchQueue: DispatchQueue? = .main) {
| `- error: cannot find type 'DispatchQueue' in scope
59 | setResult(.success(value), on: dispatchQueue)
60 | }
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:62:59: error: cannot find type 'DispatchQueue' in scope
60 | }
61 |
62 | public func reject(with error: Error, on dispatchQueue: DispatchQueue? = .main) {
| `- error: cannot find type 'DispatchQueue' in scope
63 | setResult(.failure(error), on: dispatchQueue)
64 | }
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:102:62: error: cannot find type 'DispatchQueue' in scope
100 | }
101 |
102 | public func cascade(to promise: Promise, on dispatchQueue: DispatchQueue? = .main) {
| `- error: cannot find type 'DispatchQueue' in scope
103 | self.then { promise.resolve(with: $0, on: dispatchQueue) }
104 | self.catch { promise.reject(with: $0, on: dispatchQueue) }
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:182:15: error: cannot find type 'DispatchTimeInterval' in scope
180 | /// Sleep promise execution for given `duration` interval and return new promise with existing value.
181 | func sleep(
182 | duration: DispatchTimeInterval,
| `- error: cannot find type 'DispatchTimeInterval' in scope
183 | on dispatchQueue: DispatchQueue = .main
184 | ) -> Promise<Value> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:183:23: error: cannot find type 'DispatchQueue' in scope
181 | func sleep(
182 | duration: DispatchTimeInterval,
183 | on dispatchQueue: DispatchQueue = .main
| `- error: cannot find type 'DispatchQueue' in scope
184 | ) -> Promise<Value> {
185 | Promise { seal in
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:214:23: error: cannot find type 'DispatchQueue' in scope
212 | /// If any of the two promises at any point fail, their composition fails as well.
213 | func flatMap<U>(
214 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
215 | with transform: @escaping (Value) throws -> Promise<U>
216 | ) -> Promise<U> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:253:23: error: cannot find type 'DispatchQueue' in scope
251 | /// of the recovering promise.
252 | func flatMapError(
253 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
254 | with transform: @escaping (Error) throws -> Promise<Value>
255 | ) -> Promise<Value> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:281:23: error: cannot find type 'DispatchQueue' in scope
279 | /// - Returns: A `Promise` containing either the transformed value or an error.
280 | func flatMapResult<U, E: Error>(
281 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
282 | with transform: @escaping (Value) throws -> Result<U, E>
283 | ) -> Promise<U> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:305:23: error: cannot find type 'DispatchQueue' in scope
303 | /// as the new success value if this instance represents a success.
304 | func map<U>(
305 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
306 | with transform: @escaping (Value) throws -> U
307 | ) -> Promise<U> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:328:23: error: cannot find type 'DispatchQueue' in scope
326 | /// as the new error value if this instance represents a failure.
327 | func mapError(
328 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
329 | with transform: @escaping (Error) throws -> Error
330 | ) -> Promise<Value> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:348:23: error: cannot find type 'DispatchQueue' in scope
346 | /// then the new Promise fails.
347 | func compactMap<U>(
348 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
349 | or error: @autoclosure @escaping () -> Error = NSError(domain: "com.poviokit.promisekit", code: 100, userInfo: ["description": "`nil` value found after transformation!"]),
350 | with transform: @escaping (Value) throws -> U?
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:371:23: error: cannot find type 'DispatchQueue' in scope
369 | func fold<U>(
370 | _ promises: [Promise<U>],
371 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
372 | with combiningFunction: @escaping (Value, U) -> Promise<Value>
373 | ) -> Promise<Value> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:391:23: error: cannot find type 'DispatchQueue' in scope
389 | _ initialValue: Value,
390 | _ promises: [Promise<U>],
391 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
392 | _ nextPartialResult: @escaping (Value, U) -> Value
393 | ) -> Promise<Value> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:409:23: error: cannot find type 'DispatchQueue' in scope
407 | func and<U>(
408 | _ other: Promise<U>,
409 | on dispatchQueue: DispatchQueue? = .main
| `- error: cannot find type 'DispatchQueue' in scope
410 | ) -> Promise<(Value, U)> {
411 | all(on: dispatchQueue, self, other)
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:421:23: error: cannot find type 'DispatchQueue' in scope
419 | func and<U>(
420 | _ value: U,
421 | on dispatchQueue: DispatchQueue? = .main
| `- error: cannot find type 'DispatchQueue' in scope
422 | ) -> Promise<(Value, U)> {
423 | map(on: dispatchQueue) { ($0, value) }
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:435:23: error: cannot find type 'DispatchQueue' in scope
433 | func or<U>(
434 | _ other: Promise<U>,
435 | on dispatchQueue: DispatchQueue? = .main
| `- error: cannot find type 'DispatchQueue' in scope
436 | ) -> Promise<Either<Value, U>> {
437 | any(on: dispatchQueue, self, other)
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:452:23: error: cannot find type 'DispatchQueue' in scope
450 | func or<U>(
451 | _ value: U,
452 | on dispatchQueue: DispatchQueue? = .main
| `- error: cannot find type 'DispatchQueue' in scope
453 | ) -> Promise<Either<Value, U>> {
454 | map(on: dispatchQueue, with: Either.left)
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:467:23: error: cannot find type 'DispatchQueue' in scope
465 | /// otherwise a rejected promise with the given error.
466 | func ensure(
467 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
468 | predicate: @escaping (Value) -> Bool,
469 | otherwise error: @autoclosure @escaping () -> Error = NSError(domain: "com.poviokit.promisekit", code: 100, userInfo: ["description": "Validation failed"])
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:493:23: error: cannot find type 'DispatchQueue' in scope
491 | /// - Parameter false: The false branch of non-determinism.
492 | func flatMapIf<U>(
493 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
494 | `true`: @escaping @autoclosure () -> Promise<U>,
495 | `false`: @escaping @autoclosure () -> Promise<U>
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:516:23: error: cannot find type 'DispatchQueue' in scope
514 | /// - Parameter false: The false branch of non-determinism.
515 | func mapIf<U>(
516 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
517 | `true`: @escaping @autoclosure () -> U,
518 | `false`: @escaping @autoclosure () -> U
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:530:23: error: cannot find type 'DispatchQueue' in scope
528 | public extension Promise {
529 | func flatMapIf<U>(
530 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
531 | transform: @escaping (Value) -> Bool,
532 | `true`: @escaping @autoclosure () -> Promise<U>,
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:540:23: error: cannot find type 'DispatchQueue' in scope
538 |
539 | func mapIf<U>(
540 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
541 | transform: @escaping (Value) -> Bool,
542 | `true`: @escaping @autoclosure () -> U,
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:566:23: error: cannot find type 'DispatchQueue' in scope
564 | /// sequence.
565 | func mapValues<U>(
566 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
567 | _ transform: @escaping (Value.Element) throws -> U
568 | ) -> Promise<[U]> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:591:23: error: cannot find type 'DispatchQueue' in scope
589 | /// with each element of the sequence.
590 | func compactMapValues<U>(
591 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
592 | _ transform: @escaping (Value.Element) throws -> U?
593 | ) -> Promise<[U]> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:618:23: error: cannot find type 'DispatchQueue' in scope
616 | /// mapping elements of this sequence.
617 | func flatMapValues<U>(
618 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
619 | _ transform: @escaping (Value.Element) throws -> Promise<U>
620 | ) -> Promise<[U]> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:640:23: error: cannot find type 'DispatchQueue' in scope
638 | /// - Returns: An Promise containing an array of the elements that `isIncluded` allowed.
639 | func filterValues(
640 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
641 | _ isIncluded: @escaping (Value.Element) throws -> Bool
642 | ) -> Promise<[Value.Element]> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:670:23: error: cannot find type 'DispatchQueue' in scope
668 | /// the result is `initialResult`.
669 | func reduceValues<A>(
670 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
671 | _ initialResult: A,
672 | _ nextPartialResult: @escaping (A, Value.Element) throws -> A
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:687:23: error: cannot find type 'DispatchQueue' in scope
685 | /// - Returns: A Promise containing sorted array of the sequence's elements.
686 | func sortedValues(
687 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
688 | by comparator: @escaping (Value.Element, Value.Element) throws -> Bool
689 | ) -> Promise<[Value.Element]> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:715:23: error: cannot find type 'DispatchQueue' in scope
713 | /// - Returns: A Promise containing the resulting flattened array.
714 | func flatMapValues<U>(
715 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
716 | _ transform: @escaping (Value.Element) throws -> [U]
717 | ) -> Promise<[U]> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:809:23: error: cannot find type 'DispatchQueue' in scope
807 | type: D.Type,
808 | decoder: JSONDecoder,
809 | on dispatchQueue: DispatchQueue? = .main
| `- error: cannot find type 'DispatchQueue' in scope
810 | ) -> Promise<D> {
811 | map(on: dispatchQueue) {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:819:23: error: cannot find type 'DispatchQueue' in scope
817 | public extension Promise where Value: Sequence, Value.Element == Int {
818 | func reduceValues(
819 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
820 | _ nextPartialResult: @escaping (Value.Element, Value.Element) throws -> Value.Element
821 | ) -> Promise<Value.Element> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:830:23: error: cannot find type 'DispatchQueue' in scope
828 | public extension Promise where Value: Sequence, Value.Element == Double {
829 | func reduceValues(
830 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
831 | _ nextPartialResult: @escaping (Value.Element, Value.Element) throws -> Value.Element
832 | ) -> Promise<Value.Element> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:841:23: error: cannot find type 'DispatchQueue' in scope
839 | public extension Promise where Value: Sequence, Value.Element == Float {
840 | func reduceValues(
841 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
842 | _ nextPartialResult: @escaping (Value.Element, Value.Element) throws -> Value.Element
843 | ) -> Promise<Value.Element> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:852:23: error: cannot find type 'DispatchQueue' in scope
850 | public extension Promise where Value: Sequence, Value.Element == String {
851 | func reduceValues(
852 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
853 | _ nextPartialResult: @escaping (Value.Element, Value.Element) throws -> Value.Element
854 | ) -> Promise<Value.Element> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:893:34: error: cannot find type 'DispatchQueue' in scope
891 | public extension Promise where Value == Void {
892 | static func value() -> Promise<Value> { value(()) }
893 | func resolve(on dispatchQueue: DispatchQueue? = .main) { resolve(with: (), on: dispatchQueue) }
| `- error: cannot find type 'DispatchQueue' in scope
894 | }
895 |
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:896:37: error: cannot find type 'DispatchQueue' in scope
894 | }
895 |
896 | extension Optional where Wrapped == DispatchQueue {
| `- error: cannot find type 'DispatchQueue' in scope
897 | @inline(__always)
898 | func async(execute work: @escaping () -> Void) {
/host/spi-builder-workspace/Sources/PromiseKit/Race.swift:17:21: error: cannot find type 'DispatchQueue' in scope
15 | /// - Returns: The result of the first fullfiled promise in the collection wrapped in a promise.
16 | public func race<T, C: Collection>(
17 | on dispatchQueue: DispatchQueue = .main,
| `- error: cannot find type 'DispatchQueue' in scope
18 | promises: C
19 | ) -> Promise<T> where C.Element == Promise<T> {
/host/spi-builder-workspace/Sources/PromiseKit/Sequence.swift:27:21: error: cannot find type 'DispatchQueue' in scope
25 | spawnTask next: @escaping (Int) -> Promise<T>?,
26 | retryCount: Int = 2,
27 | on dispatchQueue: DispatchQueue? = .main
| `- error: cannot find type 'DispatchQueue' in scope
28 | ) -> Promise<()> {
29 | .init { seal in
/host/spi-builder-workspace/Sources/PromiseKit/Sequence.swift:81:21: error: cannot find type 'DispatchQueue' in scope
79 | promises: C,
80 | retryCount: Int = 2,
81 | on dispatchQueue: DispatchQueue? = .main
| `- error: cannot find type 'DispatchQueue' in scope
82 | ) -> Promise<()> where C.Element == Thunk<Promise<T>>, C.Index == Int {
83 | func next(_ idx: Int) -> Promise<T>? {
/host/spi-builder-workspace/Sources/PromiseKit/Wrap.swift:11:36: error: cannot find type 'DispatchQueue' in scope
9 | import Foundation
10 |
11 | public func wrap(on dispatchQueue: DispatchQueue = .main, _ f: (@escaping () -> Void) -> Void) -> Promise<()> {
| `- error: cannot find type 'DispatchQueue' in scope
12 | Promise { seal in
13 | f { seal.resolve(on: dispatchQueue) }
/host/spi-builder-workspace/Sources/PromiseKit/Wrap.swift:17:49: error: cannot find type 'DispatchQueue' in scope
15 | }
16 |
17 | public func wrap<A, E: Error>(on dispatchQueue: DispatchQueue = .main, _ f: (@escaping (Result<A, E>) -> Void) -> Void) -> Promise<A> {
| `- error: cannot find type 'DispatchQueue' in scope
18 | Promise { seal in
19 | f {
/host/spi-builder-workspace/Sources/PromiseKit/Wrap.swift:30:49: error: cannot find type 'DispatchQueue' in scope
28 | }
29 |
30 | public func wrap<A, E: Error>(on dispatchQueue: DispatchQueue = .main, _ f: (@escaping (A?, E?) -> Void) -> Void) -> Promise<A> {
| `- error: cannot find type 'DispatchQueue' in scope
31 | Promise { seal in
32 | f {
/host/spi-builder-workspace/Sources/PromiseKit/Wrap.swift:45:49: error: cannot find type 'DispatchQueue' in scope
43 | }
44 |
45 | public func wrap<A, E: Error>(on dispatchQueue: DispatchQueue = .main, _ f: (@escaping (A) -> Void) -> Void, _ g: (@escaping (E) -> Void) -> Void) -> Promise<A> {
| `- error: cannot find type 'DispatchQueue' in scope
46 | Promise { seal in
47 | f { seal.resolve(with: $0, on: dispatchQueue) }
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[36/85] Emitting module PovioKitCore
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[37/85] Emitting module PovioKitAsync
[38/85] Compiling PovioKitAsync AsyncThrottleSequence.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)
[44/91] Compiling Alamofire NetworkReachabilityManager.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)
[45/91] Compiling Alamofire RedirectHandler.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)
[46/91] Compiling Alamofire RequestCompression.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)
[47/91] Compiling Alamofire RequestInterceptor.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/91] Compiling Alamofire ResponseSerialization.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/91] Compiling PovioKitCore UIResponder+PovioKit.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[50/91] Compiling PovioKitCore UIWindow+PovioKit.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[51/91] Compiling PovioKitCore Logger.swift
/host/spi-builder-workspace/Sources/Core/Extensions/MapKit/MKAnnotationView+PovioKit.swift:9:8: error: no such module 'MapKit.MKAnnotationView'
7 | //
8 |
9 | import MapKit.MKAnnotationView
| `- error: no such module 'MapKit.MKAnnotationView'
10 |
11 | public extension MKAnnotationView {
[52/91] Compiling PovioKitPromise Wrap.swift
/host/spi-builder-workspace/Sources/PromiseKit/Wrap.swift:11:36: error: cannot find type 'DispatchQueue' in scope
9 | import Foundation
10 |
11 | public func wrap(on dispatchQueue: DispatchQueue = .main, _ f: (@escaping () -> Void) -> Void) -> Promise<()> {
| `- error: cannot find type 'DispatchQueue' in scope
12 | Promise { seal in
13 | f { seal.resolve(on: dispatchQueue) }
/host/spi-builder-workspace/Sources/PromiseKit/Wrap.swift:17:49: error: cannot find type 'DispatchQueue' in scope
15 | }
16 |
17 | public func wrap<A, E: Error>(on dispatchQueue: DispatchQueue = .main, _ f: (@escaping (Result<A, E>) -> Void) -> Void) -> Promise<A> {
| `- error: cannot find type 'DispatchQueue' in scope
18 | Promise { seal in
19 | f {
/host/spi-builder-workspace/Sources/PromiseKit/Wrap.swift:30:49: error: cannot find type 'DispatchQueue' in scope
28 | }
29 |
30 | public func wrap<A, E: Error>(on dispatchQueue: DispatchQueue = .main, _ f: (@escaping (A?, E?) -> Void) -> Void) -> Promise<A> {
| `- error: cannot find type 'DispatchQueue' in scope
31 | Promise { seal in
32 | f {
/host/spi-builder-workspace/Sources/PromiseKit/Wrap.swift:45:49: error: cannot find type 'DispatchQueue' in scope
43 | }
44 |
45 | public func wrap<A, E: Error>(on dispatchQueue: DispatchQueue = .main, _ f: (@escaping (A) -> Void) -> Void, _ g: (@escaping (E) -> Void) -> Void) -> Promise<A> {
| `- error: cannot find type 'DispatchQueue' in scope
46 | Promise { seal in
47 | f { seal.resolve(with: $0, on: dispatchQueue) }
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:58:60: error: cannot find type 'DispatchQueue' in scope
56 | }
57 |
58 | public func resolve(with value: Value, on dispatchQueue: DispatchQueue? = .main) {
| `- error: cannot find type 'DispatchQueue' in scope
59 | setResult(.success(value), on: dispatchQueue)
60 | }
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:893:34: error: cannot find type 'DispatchQueue' in scope
891 | public extension Promise where Value == Void {
892 | static func value() -> Promise<Value> { value(()) }
893 | func resolve(on dispatchQueue: DispatchQueue? = .main) { resolve(with: (), on: dispatchQueue) }
| `- error: cannot find type 'DispatchQueue' in scope
894 | }
895 |
/host/spi-builder-workspace/Sources/PromiseKit/Wrap.swift:12:13: error: contextual closure type '() throws -> ()' expects 0 arguments, but 1 was used in closure body
10 |
11 | public func wrap(on dispatchQueue: DispatchQueue = .main, _ f: (@escaping () -> Void) -> Void) -> Promise<()> {
12 | Promise { seal in
| `- error: contextual closure type '() throws -> ()' expects 0 arguments, but 1 was used in closure body
13 | f { seal.resolve(on: dispatchQueue) }
14 | }
/host/spi-builder-workspace/Sources/PromiseKit/Wrap.swift:18:13: error: contextual closure type '() throws -> A' expects 0 arguments, but 1 was used in closure body
16 |
17 | public func wrap<A, E: Error>(on dispatchQueue: DispatchQueue = .main, _ f: (@escaping (Result<A, E>) -> Void) -> Void) -> Promise<A> {
18 | Promise { seal in
| `- error: contextual closure type '() throws -> A' expects 0 arguments, but 1 was used in closure body
19 | f {
20 | switch $0 {
/host/spi-builder-workspace/Sources/PromiseKit/Wrap.swift:31:13: error: contextual closure type '() throws -> A' expects 0 arguments, but 1 was used in closure body
29 |
30 | public func wrap<A, E: Error>(on dispatchQueue: DispatchQueue = .main, _ f: (@escaping (A?, E?) -> Void) -> Void) -> Promise<A> {
31 | Promise { seal in
| `- error: contextual closure type '() throws -> A' expects 0 arguments, but 1 was used in closure body
32 | f {
33 | switch ($0, $1) {
/host/spi-builder-workspace/Sources/PromiseKit/Wrap.swift:46:13: error: contextual closure type '() throws -> A' expects 0 arguments, but 1 was used in closure body
44 |
45 | public func wrap<A, E: Error>(on dispatchQueue: DispatchQueue = .main, _ f: (@escaping (A) -> Void) -> Void, _ g: (@escaping (E) -> Void) -> Void) -> Promise<A> {
46 | Promise { seal in
| `- error: contextual closure type '() throws -> A' expects 0 arguments, but 1 was used in closure body
47 | f { seal.resolve(with: $0, on: dispatchQueue) }
48 | g { seal.reject(with: $0, on: dispatchQueue) }
/host/spi-builder-workspace/Sources/PromiseKit/Future.swift:25:61: error: cannot find type 'DispatchQueue' in scope
23 | }
24 |
25 | func setResult(_ result: FutureResult?, on dispatchQueue: DispatchQueue? = nil) {
| `- error: cannot find type 'DispatchQueue' in scope
26 | lock.withLock {
27 | guard self.internalResult == nil else { return }
/host/spi-builder-workspace/Sources/PromiseKit/Future.swift:25:61: error: cannot find type 'DispatchQueue' in scope
23 | }
24 |
25 | func setResult(_ result: FutureResult?, on dispatchQueue: DispatchQueue? = nil) {
| `- error: cannot find type 'DispatchQueue' in scope
26 | lock.withLock {
27 | guard self.internalResult == nil else { return }
[56/91] Compiling PovioKitPromise Poll.swift
/host/spi-builder-workspace/Sources/PromiseKit/Poll.swift:38:24: error: cannot find type 'DispatchTimeInterval' in scope
36 | public func poll<T>(
37 | repeat request: @escaping () -> Promise<T>,
38 | checkAfter interval: DispatchTimeInterval,
| `- error: cannot find type 'DispatchTimeInterval' in scope
39 | while predicate: @escaping (T) -> Bool,
40 | maxRetry retry: UInt = .max,
/host/spi-builder-workspace/Sources/PromiseKit/Poll.swift:41:32: error: cannot find type 'DispatchQueue' in scope
39 | while predicate: @escaping (T) -> Bool,
40 | maxRetry retry: UInt = .max,
41 | pollOn pollingDispatchQueue: DispatchQueue = .global(),
| `- error: cannot find type 'DispatchQueue' in scope
42 | resolveOn resolveDispatchQueue: DispatchQueue? = .main
43 | ) -> Promise<T> {
/host/spi-builder-workspace/Sources/PromiseKit/Poll.swift:42:35: error: cannot find type 'DispatchQueue' in scope
40 | maxRetry retry: UInt = .max,
41 | pollOn pollingDispatchQueue: DispatchQueue = .global(),
42 | resolveOn resolveDispatchQueue: DispatchQueue? = .main
| `- error: cannot find type 'DispatchQueue' in scope
43 | ) -> Promise<T> {
44 | poll(
/host/spi-builder-workspace/Sources/PromiseKit/Poll.swift:55:19: error: cannot find type 'DispatchTimeInterval' in scope
53 |
54 | public protocol PollingDelay {
55 | var checkAfter: DispatchTimeInterval { get }
| `- error: cannot find type 'DispatchTimeInterval' in scope
56 | }
57 |
/host/spi-builder-workspace/Sources/PromiseKit/Poll.swift:96:32: error: cannot find type 'DispatchQueue' in scope
94 | while predicate: @escaping (T) -> Bool,
95 | maxRetry retry: UInt = .max,
96 | pollOn pollingDispatchQueue: DispatchQueue = .global(),
| `- error: cannot find type 'DispatchQueue' in scope
97 | resolveOn resolveDispatchQueue: DispatchQueue? = .main
98 | ) -> Promise<T> {
/host/spi-builder-workspace/Sources/PromiseKit/Poll.swift:97:35: error: cannot find type 'DispatchQueue' in scope
95 | maxRetry retry: UInt = .max,
96 | pollOn pollingDispatchQueue: DispatchQueue = .global(),
97 | resolveOn resolveDispatchQueue: DispatchQueue? = .main
| `- error: cannot find type 'DispatchQueue' in scope
98 | ) -> Promise<T> {
99 | poll(
/host/spi-builder-workspace/Sources/PromiseKit/Poll.swift:112:32: error: cannot find type 'DispatchTimeInterval' in scope
110 | func poll<T>(
111 | repeat request: @escaping () -> Promise<T>,
112 | checkAfter: @escaping (T) -> DispatchTimeInterval,
| `- error: cannot find type 'DispatchTimeInterval' in scope
113 | while predicate: @escaping (T) -> Bool,
114 | maxRetry retry: UInt,
/host/spi-builder-workspace/Sources/PromiseKit/Poll.swift:112:15: error: @escaping attribute only applies to function types
110 | func poll<T>(
111 | repeat request: @escaping () -> Promise<T>,
112 | checkAfter: @escaping (T) -> DispatchTimeInterval,
| `- error: @escaping attribute only applies to function types
113 | while predicate: @escaping (T) -> Bool,
114 | maxRetry retry: UInt,
/host/spi-builder-workspace/Sources/PromiseKit/Poll.swift:115:32: error: cannot find type 'DispatchQueue' in scope
113 | while predicate: @escaping (T) -> Bool,
114 | maxRetry retry: UInt,
115 | pollOn pollingDispatchQueue: DispatchQueue = .global(),
| `- error: cannot find type 'DispatchQueue' in scope
116 | resolveOn resolveDispatchQueue: DispatchQueue? = .main
117 | ) -> Promise<T> {
/host/spi-builder-workspace/Sources/PromiseKit/Poll.swift:116:35: error: cannot find type 'DispatchQueue' in scope
114 | maxRetry retry: UInt,
115 | pollOn pollingDispatchQueue: DispatchQueue = .global(),
116 | resolveOn resolveDispatchQueue: DispatchQueue? = .main
| `- error: cannot find type 'DispatchQueue' in scope
117 | ) -> Promise<T> {
118 | precondition(retry > 0)
/host/spi-builder-workspace/Sources/PromiseKit/Poll.swift:44:7: error: extra arguments at positions #4, #5, #6 in call
42 | resolveOn resolveDispatchQueue: DispatchQueue? = .main
43 | ) -> Promise<T> {
44 | poll(
| `- error: extra arguments at positions #4, #5, #6 in call
45 | repeat: request,
46 | checkAfter: { _ in interval },
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/poll.h:49:5: note: 'poll' declared here
47 | #endif
48 |
49 | int poll (struct pollfd *, nfds_t, int);
| `- note: 'poll' declared here
50 |
51 | #ifdef _GNU_SOURCE
/host/spi-builder-workspace/Sources/PromiseKit/Poll.swift:45:13: error: cannot convert value of type 'Promise<T>' to expected argument type 'UnsafeMutablePointer<pollfd>'
43 | ) -> Promise<T> {
44 | poll(
45 | repeat: request,
| `- error: cannot convert value of type 'Promise<T>' to expected argument type 'UnsafeMutablePointer<pollfd>'
46 | checkAfter: { _ in interval },
47 | while: predicate,
/host/spi-builder-workspace/Sources/PromiseKit/Poll.swift:45:13: error: function produces expected type 'Promise<T>'; did you mean to call it with '()'?
43 | ) -> Promise<T> {
44 | poll(
45 | repeat: request,
| `- error: function produces expected type 'Promise<T>'; did you mean to call it with '()'?
46 | checkAfter: { _ in interval },
47 | while: predicate,
/host/spi-builder-workspace/Sources/PromiseKit/Poll.swift:47:12: error: cannot convert value of type '(T) -> Bool' to expected argument type 'Int32'
45 | repeat: request,
46 | checkAfter: { _ in interval },
47 | while: predicate,
| `- error: cannot convert value of type '(T) -> Bool' to expected argument type 'Int32'
48 | maxRetry: retry,
49 | pollOn: pollingDispatchQueue,
/host/spi-builder-workspace/Sources/PromiseKit/Poll.swift:44:3: error: cannot convert return expression of type 'Int32' to return type 'Promise<T>'
42 | resolveOn resolveDispatchQueue: DispatchQueue? = .main
43 | ) -> Promise<T> {
44 | poll(
| `- error: cannot convert return expression of type 'Int32' to return type 'Promise<T>'
45 | repeat: request,
46 | checkAfter: { _ in interval },
/host/spi-builder-workspace/Sources/PromiseKit/Poll.swift:46:17: error: closure passed to parameter of type 'nfds_t' (aka 'UInt') that does not accept a closure
44 | poll(
45 | repeat: request,
46 | checkAfter: { _ in interval },
| `- error: closure passed to parameter of type 'nfds_t' (aka 'UInt') that does not accept a closure
47 | while: predicate,
48 | maxRetry: retry,
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/poll.h:49:5: note: 'poll' declared here
47 | #endif
48 |
49 | int poll (struct pollfd *, nfds_t, int);
| `- note: 'poll' declared here
50 |
51 | #ifdef _GNU_SOURCE
/host/spi-builder-workspace/Sources/PromiseKit/Poll.swift:99:7: error: extra arguments at positions #4, #5, #6 in call
97 | resolveOn resolveDispatchQueue: DispatchQueue? = .main
98 | ) -> Promise<T> {
99 | poll(
| `- error: extra arguments at positions #4, #5, #6 in call
100 | repeat: request,
101 | checkAfter: { $0.checkAfter },
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/poll.h:49:5: note: 'poll' declared here
47 | #endif
48 |
49 | int poll (struct pollfd *, nfds_t, int);
| `- note: 'poll' declared here
50 |
51 | #ifdef _GNU_SOURCE
/host/spi-builder-workspace/Sources/PromiseKit/Poll.swift:100:13: error: cannot convert value of type 'Promise<T>' to expected argument type 'UnsafeMutablePointer<pollfd>'
98 | ) -> Promise<T> {
99 | poll(
100 | repeat: request,
| `- error: cannot convert value of type 'Promise<T>' to expected argument type 'UnsafeMutablePointer<pollfd>'
101 | checkAfter: { $0.checkAfter },
102 | while: predicate,
/host/spi-builder-workspace/Sources/PromiseKit/Poll.swift:100:13: error: function produces expected type 'Promise<T>'; did you mean to call it with '()'?
98 | ) -> Promise<T> {
99 | poll(
100 | repeat: request,
| `- error: function produces expected type 'Promise<T>'; did you mean to call it with '()'?
101 | checkAfter: { $0.checkAfter },
102 | while: predicate,
/host/spi-builder-workspace/Sources/PromiseKit/Poll.swift:102:12: error: cannot convert value of type '(T) -> Bool' to expected argument type 'Int32'
100 | repeat: request,
101 | checkAfter: { $0.checkAfter },
102 | while: predicate,
| `- error: cannot convert value of type '(T) -> Bool' to expected argument type 'Int32'
103 | maxRetry: retry,
104 | pollOn: pollingDispatchQueue,
/host/spi-builder-workspace/Sources/PromiseKit/Poll.swift:99:3: error: cannot convert return expression of type 'Int32' to return type 'Promise<T>'
97 | resolveOn resolveDispatchQueue: DispatchQueue? = .main
98 | ) -> Promise<T> {
99 | poll(
| `- error: cannot convert return expression of type 'Int32' to return type 'Promise<T>'
100 | repeat: request,
101 | checkAfter: { $0.checkAfter },
/host/spi-builder-workspace/Sources/PromiseKit/Poll.swift:101:17: error: closure passed to parameter of type 'nfds_t' (aka 'UInt') that does not accept a closure
99 | poll(
100 | repeat: request,
101 | checkAfter: { $0.checkAfter },
| `- error: closure passed to parameter of type 'nfds_t' (aka 'UInt') that does not accept a closure
102 | while: predicate,
103 | maxRetry: retry,
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/poll.h:49:5: note: 'poll' declared here
47 | #endif
48 |
49 | int poll (struct pollfd *, nfds_t, int);
| `- note: 'poll' declared here
50 |
51 | #ifdef _GNU_SOURCE
/host/spi-builder-workspace/Sources/PromiseKit/Poll.swift:120:19: error: cannot find 'DispatchQueue' in scope
118 | precondition(retry > 0)
119 | return .init { seal in
120 | let barrier = DispatchQueue(label: "barrier", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
121 | var retry = retry
122 | func polling() {
/host/spi-builder-workspace/Sources/PromiseKit/Poll.swift:120:64: error: cannot infer contextual base in reference to member 'concurrent'
118 | precondition(retry > 0)
119 | return .init { seal in
120 | let barrier = DispatchQueue(label: "barrier", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
121 | var retry = retry
122 | func polling() {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:58:60: error: cannot find type 'DispatchQueue' in scope
56 | }
57 |
58 | public func resolve(with value: Value, on dispatchQueue: DispatchQueue? = .main) {
| `- error: cannot find type 'DispatchQueue' in scope
59 | setResult(.success(value), on: dispatchQueue)
60 | }
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:62:59: error: cannot find type 'DispatchQueue' in scope
60 | }
61 |
62 | public func reject(with error: Error, on dispatchQueue: DispatchQueue? = .main) {
| `- error: cannot find type 'DispatchQueue' in scope
63 | setResult(.failure(error), on: dispatchQueue)
64 | }
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:102:62: error: cannot find type 'DispatchQueue' in scope
100 | }
101 |
102 | public func cascade(to promise: Promise, on dispatchQueue: DispatchQueue? = .main) {
| `- error: cannot find type 'DispatchQueue' in scope
103 | self.then { promise.resolve(with: $0, on: dispatchQueue) }
104 | self.catch { promise.reject(with: $0, on: dispatchQueue) }
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:182:15: error: cannot find type 'DispatchTimeInterval' in scope
180 | /// Sleep promise execution for given `duration` interval and return new promise with existing value.
181 | func sleep(
182 | duration: DispatchTimeInterval,
| `- error: cannot find type 'DispatchTimeInterval' in scope
183 | on dispatchQueue: DispatchQueue = .main
184 | ) -> Promise<Value> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:183:23: error: cannot find type 'DispatchQueue' in scope
181 | func sleep(
182 | duration: DispatchTimeInterval,
183 | on dispatchQueue: DispatchQueue = .main
| `- error: cannot find type 'DispatchQueue' in scope
184 | ) -> Promise<Value> {
185 | Promise { seal in
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:214:23: error: cannot find type 'DispatchQueue' in scope
212 | /// If any of the two promises at any point fail, their composition fails as well.
213 | func flatMap<U>(
214 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
215 | with transform: @escaping (Value) throws -> Promise<U>
216 | ) -> Promise<U> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:253:23: error: cannot find type 'DispatchQueue' in scope
251 | /// of the recovering promise.
252 | func flatMapError(
253 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
254 | with transform: @escaping (Error) throws -> Promise<Value>
255 | ) -> Promise<Value> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:281:23: error: cannot find type 'DispatchQueue' in scope
279 | /// - Returns: A `Promise` containing either the transformed value or an error.
280 | func flatMapResult<U, E: Error>(
281 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
282 | with transform: @escaping (Value) throws -> Result<U, E>
283 | ) -> Promise<U> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:305:23: error: cannot find type 'DispatchQueue' in scope
303 | /// as the new success value if this instance represents a success.
304 | func map<U>(
305 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
306 | with transform: @escaping (Value) throws -> U
307 | ) -> Promise<U> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:328:23: error: cannot find type 'DispatchQueue' in scope
326 | /// as the new error value if this instance represents a failure.
327 | func mapError(
328 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
329 | with transform: @escaping (Error) throws -> Error
330 | ) -> Promise<Value> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:348:23: error: cannot find type 'DispatchQueue' in scope
346 | /// then the new Promise fails.
347 | func compactMap<U>(
348 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
349 | or error: @autoclosure @escaping () -> Error = NSError(domain: "com.poviokit.promisekit", code: 100, userInfo: ["description": "`nil` value found after transformation!"]),
350 | with transform: @escaping (Value) throws -> U?
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:371:23: error: cannot find type 'DispatchQueue' in scope
369 | func fold<U>(
370 | _ promises: [Promise<U>],
371 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
372 | with combiningFunction: @escaping (Value, U) -> Promise<Value>
373 | ) -> Promise<Value> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:391:23: error: cannot find type 'DispatchQueue' in scope
389 | _ initialValue: Value,
390 | _ promises: [Promise<U>],
391 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
392 | _ nextPartialResult: @escaping (Value, U) -> Value
393 | ) -> Promise<Value> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:409:23: error: cannot find type 'DispatchQueue' in scope
407 | func and<U>(
408 | _ other: Promise<U>,
409 | on dispatchQueue: DispatchQueue? = .main
| `- error: cannot find type 'DispatchQueue' in scope
410 | ) -> Promise<(Value, U)> {
411 | all(on: dispatchQueue, self, other)
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:421:23: error: cannot find type 'DispatchQueue' in scope
419 | func and<U>(
420 | _ value: U,
421 | on dispatchQueue: DispatchQueue? = .main
| `- error: cannot find type 'DispatchQueue' in scope
422 | ) -> Promise<(Value, U)> {
423 | map(on: dispatchQueue) { ($0, value) }
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:435:23: error: cannot find type 'DispatchQueue' in scope
433 | func or<U>(
434 | _ other: Promise<U>,
435 | on dispatchQueue: DispatchQueue? = .main
| `- error: cannot find type 'DispatchQueue' in scope
436 | ) -> Promise<Either<Value, U>> {
437 | any(on: dispatchQueue, self, other)
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:452:23: error: cannot find type 'DispatchQueue' in scope
450 | func or<U>(
451 | _ value: U,
452 | on dispatchQueue: DispatchQueue? = .main
| `- error: cannot find type 'DispatchQueue' in scope
453 | ) -> Promise<Either<Value, U>> {
454 | map(on: dispatchQueue, with: Either.left)
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:467:23: error: cannot find type 'DispatchQueue' in scope
465 | /// otherwise a rejected promise with the given error.
466 | func ensure(
467 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
468 | predicate: @escaping (Value) -> Bool,
469 | otherwise error: @autoclosure @escaping () -> Error = NSError(domain: "com.poviokit.promisekit", code: 100, userInfo: ["description": "Validation failed"])
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:493:23: error: cannot find type 'DispatchQueue' in scope
491 | /// - Parameter false: The false branch of non-determinism.
492 | func flatMapIf<U>(
493 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
494 | `true`: @escaping @autoclosure () -> Promise<U>,
495 | `false`: @escaping @autoclosure () -> Promise<U>
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:516:23: error: cannot find type 'DispatchQueue' in scope
514 | /// - Parameter false: The false branch of non-determinism.
515 | func mapIf<U>(
516 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
517 | `true`: @escaping @autoclosure () -> U,
518 | `false`: @escaping @autoclosure () -> U
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:530:23: error: cannot find type 'DispatchQueue' in scope
528 | public extension Promise {
529 | func flatMapIf<U>(
530 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
531 | transform: @escaping (Value) -> Bool,
532 | `true`: @escaping @autoclosure () -> Promise<U>,
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:540:23: error: cannot find type 'DispatchQueue' in scope
538 |
539 | func mapIf<U>(
540 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
541 | transform: @escaping (Value) -> Bool,
542 | `true`: @escaping @autoclosure () -> U,
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:566:23: error: cannot find type 'DispatchQueue' in scope
564 | /// sequence.
565 | func mapValues<U>(
566 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
567 | _ transform: @escaping (Value.Element) throws -> U
568 | ) -> Promise<[U]> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:591:23: error: cannot find type 'DispatchQueue' in scope
589 | /// with each element of the sequence.
590 | func compactMapValues<U>(
591 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
592 | _ transform: @escaping (Value.Element) throws -> U?
593 | ) -> Promise<[U]> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:618:23: error: cannot find type 'DispatchQueue' in scope
616 | /// mapping elements of this sequence.
617 | func flatMapValues<U>(
618 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
619 | _ transform: @escaping (Value.Element) throws -> Promise<U>
620 | ) -> Promise<[U]> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:640:23: error: cannot find type 'DispatchQueue' in scope
638 | /// - Returns: An Promise containing an array of the elements that `isIncluded` allowed.
639 | func filterValues(
640 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
641 | _ isIncluded: @escaping (Value.Element) throws -> Bool
642 | ) -> Promise<[Value.Element]> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:670:23: error: cannot find type 'DispatchQueue' in scope
668 | /// the result is `initialResult`.
669 | func reduceValues<A>(
670 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
671 | _ initialResult: A,
672 | _ nextPartialResult: @escaping (A, Value.Element) throws -> A
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:687:23: error: cannot find type 'DispatchQueue' in scope
685 | /// - Returns: A Promise containing sorted array of the sequence's elements.
686 | func sortedValues(
687 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
688 | by comparator: @escaping (Value.Element, Value.Element) throws -> Bool
689 | ) -> Promise<[Value.Element]> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:715:23: error: cannot find type 'DispatchQueue' in scope
713 | /// - Returns: A Promise containing the resulting flattened array.
714 | func flatMapValues<U>(
715 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
716 | _ transform: @escaping (Value.Element) throws -> [U]
717 | ) -> Promise<[U]> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:809:23: error: cannot find type 'DispatchQueue' in scope
807 | type: D.Type,
808 | decoder: JSONDecoder,
809 | on dispatchQueue: DispatchQueue? = .main
| `- error: cannot find type 'DispatchQueue' in scope
810 | ) -> Promise<D> {
811 | map(on: dispatchQueue) {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:819:23: error: cannot find type 'DispatchQueue' in scope
817 | public extension Promise where Value: Sequence, Value.Element == Int {
818 | func reduceValues(
819 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
820 | _ nextPartialResult: @escaping (Value.Element, Value.Element) throws -> Value.Element
821 | ) -> Promise<Value.Element> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:830:23: error: cannot find type 'DispatchQueue' in scope
828 | public extension Promise where Value: Sequence, Value.Element == Double {
829 | func reduceValues(
830 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
831 | _ nextPartialResult: @escaping (Value.Element, Value.Element) throws -> Value.Element
832 | ) -> Promise<Value.Element> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:841:23: error: cannot find type 'DispatchQueue' in scope
839 | public extension Promise where Value: Sequence, Value.Element == Float {
840 | func reduceValues(
841 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
842 | _ nextPartialResult: @escaping (Value.Element, Value.Element) throws -> Value.Element
843 | ) -> Promise<Value.Element> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:852:23: error: cannot find type 'DispatchQueue' in scope
850 | public extension Promise where Value: Sequence, Value.Element == String {
851 | func reduceValues(
852 | on dispatchQueue: DispatchQueue? = .main,
| `- error: cannot find type 'DispatchQueue' in scope
853 | _ nextPartialResult: @escaping (Value.Element, Value.Element) throws -> Value.Element
854 | ) -> Promise<Value.Element> {
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:893:34: error: cannot find type 'DispatchQueue' in scope
891 | public extension Promise where Value == Void {
892 | static func value() -> Promise<Value> { value(()) }
893 | func resolve(on dispatchQueue: DispatchQueue? = .main) { resolve(with: (), on: dispatchQueue) }
| `- error: cannot find type 'DispatchQueue' in scope
894 | }
895 |
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:896:37: error: cannot find type 'DispatchQueue' in scope
894 | }
895 |
896 | extension Optional where Wrapped == DispatchQueue {
| `- error: cannot find type 'DispatchQueue' in scope
897 | @inline(__always)
898 | func async(execute work: @escaping () -> Void) {
/host/spi-builder-workspace/Sources/PromiseKit/Future.swift:25:61: error: cannot find type 'DispatchQueue' in scope
23 | }
24 |
25 | func setResult(_ result: FutureResult?, on dispatchQueue: DispatchQueue? = nil) {
| `- error: cannot find type 'DispatchQueue' in scope
26 | lock.withLock {
27 | guard self.internalResult == nil else { return }
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:18:16: error: cannot infer contextual base in reference to member 'success'
16 | public init(fulfill value: Value) {
17 | super.init()
18 | setResult(.success(value))
| `- error: cannot infer contextual base in reference to member 'success'
19 | }
20 |
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:23:16: error: cannot infer contextual base in reference to member 'failure'
21 | public init(reject error: Error) {
22 | super.init()
23 | setResult(.failure(error))
| `- error: cannot infer contextual base in reference to member 'failure'
24 | }
25 |
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:34:30: error: cannot convert value of type 'Value' to expected argument type 'Result<Value, any Error>'
32 | do {
33 | self.init()
34 | self.resolve(with: try future())
| `- error: cannot convert value of type 'Value' to expected argument type 'Result<Value, any Error>'
35 | } catch {
36 | self.reject(with: error)
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:44:26: error: cannot convert value of type 'Value' to expected argument type 'Result<Value, any Error>'
42 | switch result {
43 | case .success(let value):
44 | self.resolve(with: value)
| `- error: cannot convert value of type 'Value' to expected argument type 'Result<Value, any Error>'
45 | case .failure(let error):
46 | self.reject(with: error)
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:59:16: error: cannot infer contextual base in reference to member 'success'
57 |
58 | public func resolve(with value: Value, on dispatchQueue: DispatchQueue? = .main) {
59 | setResult(.success(value), on: dispatchQueue)
| `- error: cannot infer contextual base in reference to member 'success'
60 | }
61 |
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:63:16: error: cannot infer contextual base in reference to member 'failure'
61 |
62 | public func reject(with error: Error, on dispatchQueue: DispatchQueue? = .main) {
63 | setResult(.failure(error), on: dispatchQueue)
| `- error: cannot infer contextual base in reference to member 'failure'
64 | }
65 |
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:69:21: error: cannot convert value of type 'Value' to expected argument type 'Result<Value, any Error>'
67 | switch result {
68 | case .success(let value):
69 | resolve(with: value)
| `- error: cannot convert value of type 'Value' to expected argument type 'Result<Value, any Error>'
70 | case .failure(let error):
71 | reject(with: error)
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:76:37: error: cannot convert value of type 'Value' to expected argument type 'Result<Value, any Error>'
74 |
75 | public func observe(promise other: Promise) {
76 | other.then { self.resolve(with: $0) }
| `- error: cannot convert value of type 'Value' to expected argument type 'Result<Value, any Error>'
77 | other.catch { self.reject(with: $0) }
78 | }
/host/spi-builder-workspace/Sources/PromiseKit/Promise.swift:103:47: error: extra argument 'on' in call
101 |
102 | public func cascade(to promise: Promise, on dispatchQueue: DispatchQueue? = .main) {
103 | self.then { promise.resolve(with: $0, on: dispatchQueue) }
| `- error: extra argument 'on' in call
104 | self.catch { promise.reject(with: $0, on: dispatchQueue) }
105 | }
BUILD FAILURE 6.1 wasm