The Swift Package Index logo.Swift Package Index

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

Build Information

Failed to build ImmutableData, reference 0.4.0 (c5b333), with Swift 6.2 for Wasm on 15 Nov 2025 02:57:52 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Swift-ImmutableData/ImmutableData.git
Reference: 0.4.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/Swift-ImmutableData/ImmutableData
 * tag               0.4.0      -> FETCH_HEAD
HEAD is now at c5b333f update state selectors
Cloned https://github.com/Swift-ImmutableData/ImmutableData.git
Revision (git rev-parse @):
c5b333f2e9ffd7b3372819eae04b0cf47a01795b
SUCCESS checkout https://github.com/Swift-ImmutableData/ImmutableData.git at 0.4.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/Swift-ImmutableData/ImmutableData.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f6b6b9bdb5d5605d727da337418fc455cd8a0394d3a815b70631008c48829755
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
warning: multiple Swift SDKs match target triple `wasm32-unknown-wasip1` and host triple x86_64-unknown-linux-gnu, selected one at /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/embedded-swift-sdk.json
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/8] Emitting module ImmutableData
/host/spi-builder-workspace/Sources/ImmutableData/Dispatcher.swift:62:4: error: unknown attribute 'MainActor'
60 |   ///
61 |   /// - SeeAlso: The `dispatch(action:)` function serves a similar role as the [`dispatch(action)`](https://redux.js.org/api/store#dispatchaction) function in Redux.
62 |   @MainActor func dispatch(action: Action) throws
   |    `- error: unknown attribute 'MainActor'
63 |
64 |   /// Dispatch a unit of work that could include side effects.
/host/spi-builder-workspace/Sources/ImmutableData/Dispatcher.swift:69:4: error: unknown attribute 'MainActor'
67 |   ///
68 |   /// - SeeAlso: The `dispatch(thunk:)` functions serve a similar role as the [Thunk](https://redux.js.org/usage/side-effects-approaches#thunks) middleware in Redux.
69 |   @MainActor func dispatch(thunk: @Sendable (Self.Dispatcher, Self.Selector) throws -> Void) rethrows
   |    `- error: unknown attribute 'MainActor'
70 |
71 |   /// Dispatch a unit of work that could include side effects.
/host/spi-builder-workspace/Sources/ImmutableData/Dispatcher.swift:76:4: error: unknown attribute 'MainActor'
74 |   ///
75 |   /// - SeeAlso: The `dispatch(thunk:)` functions serve a similar role as the [Thunk](https://redux.js.org/usage/side-effects-approaches#thunks) middleware in Redux.
76 |   @MainActor func dispatch(thunk: @Sendable (Self.Dispatcher, Self.Selector) async throws -> Void) async rethrows
   |    `- error: unknown attribute 'MainActor'
77 | }
78 |
/host/spi-builder-workspace/Sources/ImmutableData/Selector.swift:36:4: error: unknown attribute 'MainActor'
34 |   ///
35 |   /// - SeeAlso: The `selector` function serves a similar role as [Selector](https://redux.js.org/usage/deriving-data-selectors#calculating-derived-data-with-selectors) functions in Redux.
36 |   @MainActor func select<T>(_ selector: @Sendable (Self.State) -> T) -> T where T: Sendable
   |    `- error: unknown attribute 'MainActor'
37 | }
38 |
/host/spi-builder-workspace/Sources/ImmutableData/Selector.swift:49:4: error: unknown attribute 'MainActor'
47 |   /// - Returns: The global state of our application.
48 |   @available(*, deprecated)
49 |   @MainActor public var state: State {
   |    `- error: unknown attribute 'MainActor'
50 |     self.select { state in state }
51 |   }
/host/spi-builder-workspace/Sources/ImmutableData/Store.swift:53:2: error: unknown attribute 'MainActor'
51 | ///
52 | /// - SeeAlso: The `Store` object serves a similar role as the [Store](https://redux.js.org/understanding/thinking-in-redux/glossary#store) object in Redux.
53 | @MainActor final public class Store<State, Action> where State: Sendable, Action: Sendable {
   |  `- error: unknown attribute 'MainActor'
54 |   private let registrar = StreamRegistrar<(oldState: State, action: Action)>()
55 |
/host/spi-builder-workspace/Sources/ImmutableData/StreamRegistrar.swift:19:44: error: cannot find type 'AsyncStream' in scope
17 | @MainActor final class StreamRegistrar<Element> : Sendable where Element : Sendable {
18 |   private var count = 0
19 |   private var dictionary = Dictionary<Int, AsyncStream<Element>.Continuation>()
   |                                            `- error: cannot find type 'AsyncStream' in scope
20 |
21 |   deinit {
/host/spi-builder-workspace/Sources/ImmutableData/Store.swift:56:15: error: stored property 'state' of 'Sendable'-conforming generic class 'Store' is mutable
54 |   private let registrar = StreamRegistrar<(oldState: State, action: Action)>()
55 |
56 |   private var state: State
   |               `- error: stored property 'state' of 'Sendable'-conforming generic class 'Store' is mutable
57 |   private let reducer: Reducer<State, Action>
58 |
/host/spi-builder-workspace/Sources/ImmutableData/Store.swift:95:31: error: cannot find type 'AsyncStream' in scope
93 |
94 | extension Store: Streamer {
95 |   public func makeStream() -> AsyncStream<(oldState: State, action: Action)> {
   |                               `- error: cannot find type 'AsyncStream' in scope
96 |     self.registrar.makeStream()
97 |   }
/host/spi-builder-workspace/Sources/ImmutableData/Streamer.swift:46:26: error: cannot find type 'AsyncSequence' in scope
44 |   ///
45 |   /// The state value is the *previous* state of our system -- *before* an action value was dispatched to our root reducer.
46 |   associatedtype Stream: AsyncSequence, Sendable where Self.Stream.Element == (oldState: Self.State, action: Self.Action)
   |                          `- error: cannot find type 'AsyncSequence' in scope
47 |
48 |   /// Constructs an asynchronous sequence of values.
/host/spi-builder-workspace/Sources/ImmutableData/Store.swift:94:1: error: type 'Store<State, Action>' does not conform to protocol 'Streamer'
92 | }
93 |
94 | extension Store: Streamer {
   | |- error: type 'Store<State, Action>' does not conform to protocol 'Streamer'
   | `- note: add stubs for conformance
95 |   public func makeStream() -> AsyncStream<(oldState: State, action: Action)> {
96 |     self.registrar.makeStream()
/host/spi-builder-workspace/Sources/ImmutableData/Streamer.swift:46:18: note: protocol requires nested type 'Stream'
44 |   ///
45 |   /// The state value is the *previous* state of our system -- *before* an action value was dispatched to our root reducer.
46 |   associatedtype Stream: AsyncSequence, Sendable where Self.Stream.Element == (oldState: Self.State, action: Self.Action)
   |                  `- note: protocol requires nested type 'Stream'
47 |
48 |   /// Constructs an asynchronous sequence of values.
/host/spi-builder-workspace/Sources/ImmutableData/StreamRegistrar.swift:17:2: error: unknown attribute 'MainActor'
15 | //
16 |
17 | @MainActor final class StreamRegistrar<Element> : Sendable where Element : Sendable {
   |  `- error: unknown attribute 'MainActor'
18 |   private var count = 0
19 |   private var dictionary = Dictionary<Int, AsyncStream<Element>.Continuation>()
/host/spi-builder-workspace/Sources/ImmutableData/StreamRegistrar.swift:18:15: error: stored property 'count' of 'Sendable'-conforming generic class 'StreamRegistrar' is mutable
16 |
17 | @MainActor final class StreamRegistrar<Element> : Sendable where Element : Sendable {
18 |   private var count = 0
   |               `- error: stored property 'count' of 'Sendable'-conforming generic class 'StreamRegistrar' is mutable
19 |   private var dictionary = Dictionary<Int, AsyncStream<Element>.Continuation>()
20 |
/host/spi-builder-workspace/Sources/ImmutableData/StreamRegistrar.swift:29:24: error: cannot find type 'AsyncStream' in scope
27 |
28 | extension StreamRegistrar {
29 |   func makeStream() -> AsyncStream<Element> {
   |                        `- error: cannot find type 'AsyncStream' in scope
30 |     self.count += 1
31 |     return self.makeStream(id: self.count)
/host/spi-builder-workspace/Sources/ImmutableData/StreamRegistrar.swift:44:39: error: cannot find type 'AsyncStream' in scope
42 |
43 | extension StreamRegistrar {
44 |   private func makeStream(id: Int) -> AsyncStream<Element> {
   |                                       `- error: cannot find type 'AsyncStream' in scope
45 |     let (stream, continuation) = AsyncStream.makeStream(of: Element.self)
46 |     continuation.onTermination = { [weak self] termination in
/host/spi-builder-workspace/Sources/ImmutableData/StreamRegistrar.swift:45:34: error: cannot find 'AsyncStream' in scope
43 | extension StreamRegistrar {
44 |   private func makeStream(id: Int) -> AsyncStream<Element> {
45 |     let (stream, continuation) = AsyncStream.makeStream(of: Element.self)
   |                                  `- error: cannot find 'AsyncStream' in scope
46 |     continuation.onTermination = { [weak self] termination in
47 |       guard let self = self else { return }
/host/spi-builder-workspace/Sources/ImmutableData/StreamRegistrar.swift:48:7: error: cannot find 'Task' in scope
46 |     continuation.onTermination = { [weak self] termination in
47 |       guard let self = self else { return }
48 |       Task {
   |       `- error: cannot find 'Task' in scope
49 |         await self.removeContinuation(id: id)
50 |       }
/host/spi-builder-workspace/Sources/ImmutableData/StreamRegistrar.swift:46:48: error: cannot infer type of closure parameter 'termination' without a type annotation
44 |   private func makeStream(id: Int) -> AsyncStream<Element> {
45 |     let (stream, continuation) = AsyncStream.makeStream(of: Element.self)
46 |     continuation.onTermination = { [weak self] termination in
   |                                                `- error: cannot infer type of closure parameter 'termination' without a type annotation
47 |       guard let self = self else { return }
48 |       Task {
/host/spi-builder-workspace/Sources/ImmutableData/Streamer.swift:46:68: error: 'Element' is not a member type of type 'Self.Stream'
44 |   ///
45 |   /// The state value is the *previous* state of our system -- *before* an action value was dispatched to our root reducer.
46 |   associatedtype Stream: AsyncSequence, Sendable where Self.Stream.Element == (oldState: Self.State, action: Self.Action)
   |                                                                    `- error: 'Element' is not a member type of type 'Self.Stream'
47 |
48 |   /// Constructs an asynchronous sequence of values.
/host/spi-builder-workspace/Sources/ImmutableData/Streamer.swift:53:4: error: unknown attribute 'MainActor'
51 |   ///
52 |   /// - SeeAlso: The `makeStream()` function serves a similar role as the [`subscribe(listener)`](https://redux.js.org/api/store#subscribelistener) function in Redux and the [Listener](https://redux.js.org/usage/side-effects-approaches#listeners) middleware in Redux Toolkit.
53 |   @MainActor func makeStream() -> Self.Stream
   |    `- error: unknown attribute 'MainActor'
54 | }
55 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/8] Emitting module AsyncSequenceTestUtils
/host/spi-builder-workspace/Sources/AsyncSequenceTestUtils/AsyncSequenceTestDouble.swift:19:55: error: cannot find type 'AsyncSequence' in scope
 17 | //  https://github.com/swiftlang/swift-evolution/blob/main/proposals/0300-continuation.md
 18 |
 19 | final public actor AsyncSequenceTestDouble<Element> : AsyncSequence where Element : Sendable {
    |                                                       `- error: cannot find type 'AsyncSequence' in scope
 20 |   public let iterator: Iterator
 21 |
/host/spi-builder-workspace/Sources/AsyncSequenceTestUtils/AsyncSequenceTestDouble.swift:35:35: error: cannot find type 'CheckedContinuation' in scope
 33 | extension AsyncSequenceTestDouble {
 34 |   final public actor Iterator {
 35 |     private var nextQueue = Array<CheckedContinuation<Element?, Never>>()
    |                                   `- error: cannot find type 'CheckedContinuation' in scope
 36 |     private var sendQueue = Array<CheckedContinuation<Void, Never>>()
 37 |     private var isCancelled = false
/host/spi-builder-workspace/Sources/AsyncSequenceTestUtils/AsyncSequenceTestDouble.swift:36:35: error: cannot find type 'CheckedContinuation' in scope
 34 |   final public actor Iterator {
 35 |     private var nextQueue = Array<CheckedContinuation<Element?, Never>>()
 36 |     private var sendQueue = Array<CheckedContinuation<Void, Never>>()
    |                                   `- error: cannot find type 'CheckedContinuation' in scope
 37 |     private var isCancelled = false
 38 |   }
/host/spi-builder-workspace/Sources/AsyncSequenceTestUtils/AsyncSequenceTestDouble.swift:41:45: error: cannot find type 'AsyncIteratorProtocol' in scope
 39 | }
 40 |
 41 | extension AsyncSequenceTestDouble.Iterator: AsyncIteratorProtocol {
    |                                             `- error: cannot find type 'AsyncIteratorProtocol' in scope
 42 |   public func next() async throws -> Element? {
 43 |     if self.sendQueue.isEmpty == false {
/host/spi-builder-workspace/Sources/AsyncSequenceTestUtils/AsyncSequenceTestDouble.swift:29:10: error: actor-isolated property 'iterator' can not be referenced from a nonisolated context
 18 |
 19 | final public actor AsyncSequenceTestDouble<Element> : AsyncSequence where Element : Sendable {
 20 |   public let iterator: Iterator
    |              `- note: property declared here
 21 |
 22 |   public init() {
    :
 27 | extension AsyncSequenceTestDouble {
 28 |   public nonisolated func makeAsyncIterator() -> Iterator {
 29 |     self.iterator
    |          `- error: actor-isolated property 'iterator' can not be referenced from a nonisolated context
 30 |   }
 31 | }
/host/spi-builder-workspace/Sources/AsyncSequenceTestUtils/AsyncSequenceTestDouble.swift:46:8: error: cannot find 'Task' in scope
 44 |       self.sendQueue.removeFirst().resume()
 45 |     }
 46 |     if Task.isCancelled || self.isCancelled {
    |        `- error: cannot find 'Task' in scope
 47 |       return nil
 48 |     }
/host/spi-builder-workspace/Sources/AsyncSequenceTestUtils/AsyncSequenceTestDouble.swift:49:18: error: cannot find 'withTaskCancellationHandler' in scope
 47 |       return nil
 48 |     }
 49 |     return await withTaskCancellationHandler {
    |                  `- error: cannot find 'withTaskCancellationHandler' in scope
 50 |       let value = await withCheckedContinuation { continuation in
 51 |         self.nextQueue.append(continuation)
/host/spi-builder-workspace/Sources/AsyncSequenceTestUtils/AsyncSequenceTestDouble.swift:50:25: error: cannot find 'withCheckedContinuation' in scope
 48 |     }
 49 |     return await withTaskCancellationHandler {
 50 |       let value = await withCheckedContinuation { continuation in
    |                         `- error: cannot find 'withCheckedContinuation' in scope
 51 |         self.nextQueue.append(continuation)
 52 |         if self.sendQueue.isEmpty == false {
/host/spi-builder-workspace/Sources/AsyncSequenceTestUtils/AsyncSequenceTestDouble.swift:56:10: error: cannot find 'Task' in scope
 54 |         }
 55 |       }
 56 |       if Task.isCancelled || self.isCancelled {
    |          `- error: cannot find 'Task' in scope
 57 |         return nil
 58 |       }
/host/spi-builder-workspace/Sources/AsyncSequenceTestUtils/AsyncSequenceTestDouble.swift:68:7: error: cannot find 'Task' in scope
 66 |       return nil
 67 |     } onCancel: {
 68 |       Task {
    |       `- error: cannot find 'Task' in scope
 69 |         await self.onCancel()
 70 |       }
/host/spi-builder-workspace/Sources/AsyncSequenceTestUtils/AsyncSequenceTestDouble.swift:81:13: error: cannot find 'withCheckedContinuation' in scope
 79 |     }
 80 |     if self.nextQueue.isEmpty {
 81 |       await withCheckedContinuation { continuation in
    |             `- error: cannot find 'withCheckedContinuation' in scope
 82 |         self.sendQueue.append(continuation)
 83 |       }
/host/spi-builder-workspace/Sources/AsyncSequenceTestUtils/AsyncSequenceTestDouble.swift:85:11: error: cannot find 'withCheckedContinuation' in scope
 83 |       }
 84 |     }
 85 |     await withCheckedContinuation { continuation in
    |           `- error: cannot find 'withCheckedContinuation' in scope
 86 |       self.sendQueue.append(continuation)
 87 |       self.nextQueue.removeFirst().resume(returning: element)
/host/spi-builder-workspace/Sources/AsyncSequenceTestUtils/AsyncSequenceTestDouble.swift:95:54: error: 'nil' requires a contextual type
 93 |   private func onCancel() {
 94 |     if self.nextQueue.isEmpty == false {
 95 |       self.nextQueue.removeFirst().resume(returning: nil)
    |                                                      `- error: 'nil' requires a contextual type
 96 |     }
 97 |     if self.sendQueue.isEmpty == false {
[7/8] Compiling ImmutableData Dispatcher.swift
/host/spi-builder-workspace/Sources/ImmutableData/Dispatcher.swift:62:4: error: unknown attribute 'MainActor'
60 |   ///
61 |   /// - SeeAlso: The `dispatch(action:)` function serves a similar role as the [`dispatch(action)`](https://redux.js.org/api/store#dispatchaction) function in Redux.
62 |   @MainActor func dispatch(action: Action) throws
   |    `- error: unknown attribute 'MainActor'
63 |
64 |   /// Dispatch a unit of work that could include side effects.
/host/spi-builder-workspace/Sources/ImmutableData/Dispatcher.swift:69:4: error: unknown attribute 'MainActor'
67 |   ///
68 |   /// - SeeAlso: The `dispatch(thunk:)` functions serve a similar role as the [Thunk](https://redux.js.org/usage/side-effects-approaches#thunks) middleware in Redux.
69 |   @MainActor func dispatch(thunk: @Sendable (Self.Dispatcher, Self.Selector) throws -> Void) rethrows
   |    `- error: unknown attribute 'MainActor'
70 |
71 |   /// Dispatch a unit of work that could include side effects.
/host/spi-builder-workspace/Sources/ImmutableData/Dispatcher.swift:76:4: error: unknown attribute 'MainActor'
74 |   ///
75 |   /// - SeeAlso: The `dispatch(thunk:)` functions serve a similar role as the [Thunk](https://redux.js.org/usage/side-effects-approaches#thunks) middleware in Redux.
76 |   @MainActor func dispatch(thunk: @Sendable (Self.Dispatcher, Self.Selector) async throws -> Void) async rethrows
   |    `- error: unknown attribute 'MainActor'
77 | }
78 |
/host/spi-builder-workspace/Sources/ImmutableData/Selector.swift:36:4: error: unknown attribute 'MainActor'
34 |   ///
35 |   /// - SeeAlso: The `selector` function serves a similar role as [Selector](https://redux.js.org/usage/deriving-data-selectors#calculating-derived-data-with-selectors) functions in Redux.
36 |   @MainActor func select<T>(_ selector: @Sendable (Self.State) -> T) -> T where T: Sendable
   |    `- error: unknown attribute 'MainActor'
37 | }
38 |
/host/spi-builder-workspace/Sources/ImmutableData/Selector.swift:49:4: error: unknown attribute 'MainActor'
47 |   /// - Returns: The global state of our application.
48 |   @available(*, deprecated)
49 |   @MainActor public var state: State {
   |    `- error: unknown attribute 'MainActor'
50 |     self.select { state in state }
51 |   }
/host/spi-builder-workspace/Sources/ImmutableData/Store.swift:53:2: error: unknown attribute 'MainActor'
51 | ///
52 | /// - SeeAlso: The `Store` object serves a similar role as the [Store](https://redux.js.org/understanding/thinking-in-redux/glossary#store) object in Redux.
53 | @MainActor final public class Store<State, Action> where State: Sendable, Action: Sendable {
   |  `- error: unknown attribute 'MainActor'
54 |   private let registrar = StreamRegistrar<(oldState: State, action: Action)>()
55 |
/host/spi-builder-workspace/Sources/ImmutableData/StreamRegistrar.swift:19:44: error: cannot find type 'AsyncStream' in scope
17 | @MainActor final class StreamRegistrar<Element> : Sendable where Element : Sendable {
18 |   private var count = 0
19 |   private var dictionary = Dictionary<Int, AsyncStream<Element>.Continuation>()
   |                                            `- error: cannot find type 'AsyncStream' in scope
20 |
21 |   deinit {
/host/spi-builder-workspace/Sources/ImmutableData/Store.swift:56:15: error: stored property 'state' of 'Sendable'-conforming generic class 'Store' is mutable
54 |   private let registrar = StreamRegistrar<(oldState: State, action: Action)>()
55 |
56 |   private var state: State
   |               `- error: stored property 'state' of 'Sendable'-conforming generic class 'Store' is mutable
57 |   private let reducer: Reducer<State, Action>
58 |
/host/spi-builder-workspace/Sources/ImmutableData/Store.swift:95:31: error: cannot find type 'AsyncStream' in scope
93 |
94 | extension Store: Streamer {
95 |   public func makeStream() -> AsyncStream<(oldState: State, action: Action)> {
   |                               `- error: cannot find type 'AsyncStream' in scope
96 |     self.registrar.makeStream()
97 |   }
/host/spi-builder-workspace/Sources/ImmutableData/Streamer.swift:46:26: error: cannot find type 'AsyncSequence' in scope
44 |   ///
45 |   /// The state value is the *previous* state of our system -- *before* an action value was dispatched to our root reducer.
46 |   associatedtype Stream: AsyncSequence, Sendable where Self.Stream.Element == (oldState: Self.State, action: Self.Action)
   |                          `- error: cannot find type 'AsyncSequence' in scope
47 |
48 |   /// Constructs an asynchronous sequence of values.
/host/spi-builder-workspace/Sources/ImmutableData/Store.swift:94:1: error: type 'Store<State, Action>' does not conform to protocol 'Streamer'
92 | }
93 |
94 | extension Store: Streamer {
   | |- error: type 'Store<State, Action>' does not conform to protocol 'Streamer'
   | `- note: add stubs for conformance
95 |   public func makeStream() -> AsyncStream<(oldState: State, action: Action)> {
96 |     self.registrar.makeStream()
/host/spi-builder-workspace/Sources/ImmutableData/Streamer.swift:46:18: note: protocol requires nested type 'Stream'
44 |   ///
45 |   /// The state value is the *previous* state of our system -- *before* an action value was dispatched to our root reducer.
46 |   associatedtype Stream: AsyncSequence, Sendable where Self.Stream.Element == (oldState: Self.State, action: Self.Action)
   |                  `- note: protocol requires nested type 'Stream'
47 |
48 |   /// Constructs an asynchronous sequence of values.
/host/spi-builder-workspace/Sources/ImmutableData/StreamRegistrar.swift:17:2: error: unknown attribute 'MainActor'
15 | //
16 |
17 | @MainActor final class StreamRegistrar<Element> : Sendable where Element : Sendable {
   |  `- error: unknown attribute 'MainActor'
18 |   private var count = 0
19 |   private var dictionary = Dictionary<Int, AsyncStream<Element>.Continuation>()
/host/spi-builder-workspace/Sources/ImmutableData/StreamRegistrar.swift:18:15: error: stored property 'count' of 'Sendable'-conforming generic class 'StreamRegistrar' is mutable
16 |
17 | @MainActor final class StreamRegistrar<Element> : Sendable where Element : Sendable {
18 |   private var count = 0
   |               `- error: stored property 'count' of 'Sendable'-conforming generic class 'StreamRegistrar' is mutable
19 |   private var dictionary = Dictionary<Int, AsyncStream<Element>.Continuation>()
20 |
/host/spi-builder-workspace/Sources/ImmutableData/StreamRegistrar.swift:29:24: error: cannot find type 'AsyncStream' in scope
27 |
28 | extension StreamRegistrar {
29 |   func makeStream() -> AsyncStream<Element> {
   |                        `- error: cannot find type 'AsyncStream' in scope
30 |     self.count += 1
31 |     return self.makeStream(id: self.count)
/host/spi-builder-workspace/Sources/ImmutableData/StreamRegistrar.swift:44:39: error: cannot find type 'AsyncStream' in scope
42 |
43 | extension StreamRegistrar {
44 |   private func makeStream(id: Int) -> AsyncStream<Element> {
   |                                       `- error: cannot find type 'AsyncStream' in scope
45 |     let (stream, continuation) = AsyncStream.makeStream(of: Element.self)
46 |     continuation.onTermination = { [weak self] termination in
/host/spi-builder-workspace/Sources/ImmutableData/StreamRegistrar.swift:45:34: error: cannot find 'AsyncStream' in scope
43 | extension StreamRegistrar {
44 |   private func makeStream(id: Int) -> AsyncStream<Element> {
45 |     let (stream, continuation) = AsyncStream.makeStream(of: Element.self)
   |                                  `- error: cannot find 'AsyncStream' in scope
46 |     continuation.onTermination = { [weak self] termination in
47 |       guard let self = self else { return }
/host/spi-builder-workspace/Sources/ImmutableData/StreamRegistrar.swift:48:7: error: cannot find 'Task' in scope
46 |     continuation.onTermination = { [weak self] termination in
47 |       guard let self = self else { return }
48 |       Task {
   |       `- error: cannot find 'Task' in scope
49 |         await self.removeContinuation(id: id)
50 |       }
/host/spi-builder-workspace/Sources/ImmutableData/StreamRegistrar.swift:46:48: error: cannot infer type of closure parameter 'termination' without a type annotation
44 |   private func makeStream(id: Int) -> AsyncStream<Element> {
45 |     let (stream, continuation) = AsyncStream.makeStream(of: Element.self)
46 |     continuation.onTermination = { [weak self] termination in
   |                                                `- error: cannot infer type of closure parameter 'termination' without a type annotation
47 |       guard let self = self else { return }
48 |       Task {
/host/spi-builder-workspace/Sources/ImmutableData/Streamer.swift:46:68: error: 'Element' is not a member type of type 'Self.Stream'
44 |   ///
45 |   /// The state value is the *previous* state of our system -- *before* an action value was dispatched to our root reducer.
46 |   associatedtype Stream: AsyncSequence, Sendable where Self.Stream.Element == (oldState: Self.State, action: Self.Action)
   |                                                                    `- error: 'Element' is not a member type of type 'Self.Stream'
47 |
48 |   /// Constructs an asynchronous sequence of values.
/host/spi-builder-workspace/Sources/ImmutableData/Streamer.swift:53:4: error: unknown attribute 'MainActor'
51 |   ///
52 |   /// - SeeAlso: The `makeStream()` function serves a similar role as the [`subscribe(listener)`](https://redux.js.org/api/store#subscribelistener) function in Redux and the [Listener](https://redux.js.org/usage/side-effects-approaches#listeners) middleware in Redux Toolkit.
53 |   @MainActor func makeStream() -> Self.Stream
   |    `- error: unknown attribute 'MainActor'
54 | }
55 |
[8/8] Compiling AsyncSequenceTestUtils AsyncSequenceTestDouble.swift
/host/spi-builder-workspace/Sources/AsyncSequenceTestUtils/AsyncSequenceTestDouble.swift:19:55: error: cannot find type 'AsyncSequence' in scope
 17 | //  https://github.com/swiftlang/swift-evolution/blob/main/proposals/0300-continuation.md
 18 |
 19 | final public actor AsyncSequenceTestDouble<Element> : AsyncSequence where Element : Sendable {
    |                                                       `- error: cannot find type 'AsyncSequence' in scope
 20 |   public let iterator: Iterator
 21 |
/host/spi-builder-workspace/Sources/AsyncSequenceTestUtils/AsyncSequenceTestDouble.swift:35:35: error: cannot find type 'CheckedContinuation' in scope
 33 | extension AsyncSequenceTestDouble {
 34 |   final public actor Iterator {
 35 |     private var nextQueue = Array<CheckedContinuation<Element?, Never>>()
    |                                   `- error: cannot find type 'CheckedContinuation' in scope
 36 |     private var sendQueue = Array<CheckedContinuation<Void, Never>>()
 37 |     private var isCancelled = false
/host/spi-builder-workspace/Sources/AsyncSequenceTestUtils/AsyncSequenceTestDouble.swift:36:35: error: cannot find type 'CheckedContinuation' in scope
 34 |   final public actor Iterator {
 35 |     private var nextQueue = Array<CheckedContinuation<Element?, Never>>()
 36 |     private var sendQueue = Array<CheckedContinuation<Void, Never>>()
    |                                   `- error: cannot find type 'CheckedContinuation' in scope
 37 |     private var isCancelled = false
 38 |   }
/host/spi-builder-workspace/Sources/AsyncSequenceTestUtils/AsyncSequenceTestDouble.swift:41:45: error: cannot find type 'AsyncIteratorProtocol' in scope
 39 | }
 40 |
 41 | extension AsyncSequenceTestDouble.Iterator: AsyncIteratorProtocol {
    |                                             `- error: cannot find type 'AsyncIteratorProtocol' in scope
 42 |   public func next() async throws -> Element? {
 43 |     if self.sendQueue.isEmpty == false {
/host/spi-builder-workspace/Sources/AsyncSequenceTestUtils/AsyncSequenceTestDouble.swift:29:10: error: actor-isolated property 'iterator' can not be referenced from a nonisolated context
 18 |
 19 | final public actor AsyncSequenceTestDouble<Element> : AsyncSequence where Element : Sendable {
 20 |   public let iterator: Iterator
    |              `- note: property declared here
 21 |
 22 |   public init() {
    :
 27 | extension AsyncSequenceTestDouble {
 28 |   public nonisolated func makeAsyncIterator() -> Iterator {
 29 |     self.iterator
    |          `- error: actor-isolated property 'iterator' can not be referenced from a nonisolated context
 30 |   }
 31 | }
/host/spi-builder-workspace/Sources/AsyncSequenceTestUtils/AsyncSequenceTestDouble.swift:46:8: error: cannot find 'Task' in scope
 44 |       self.sendQueue.removeFirst().resume()
 45 |     }
 46 |     if Task.isCancelled || self.isCancelled {
    |        `- error: cannot find 'Task' in scope
 47 |       return nil
 48 |     }
/host/spi-builder-workspace/Sources/AsyncSequenceTestUtils/AsyncSequenceTestDouble.swift:49:18: error: cannot find 'withTaskCancellationHandler' in scope
 47 |       return nil
 48 |     }
 49 |     return await withTaskCancellationHandler {
    |                  `- error: cannot find 'withTaskCancellationHandler' in scope
 50 |       let value = await withCheckedContinuation { continuation in
 51 |         self.nextQueue.append(continuation)
/host/spi-builder-workspace/Sources/AsyncSequenceTestUtils/AsyncSequenceTestDouble.swift:50:25: error: cannot find 'withCheckedContinuation' in scope
 48 |     }
 49 |     return await withTaskCancellationHandler {
 50 |       let value = await withCheckedContinuation { continuation in
    |                         `- error: cannot find 'withCheckedContinuation' in scope
 51 |         self.nextQueue.append(continuation)
 52 |         if self.sendQueue.isEmpty == false {
/host/spi-builder-workspace/Sources/AsyncSequenceTestUtils/AsyncSequenceTestDouble.swift:56:10: error: cannot find 'Task' in scope
 54 |         }
 55 |       }
 56 |       if Task.isCancelled || self.isCancelled {
    |          `- error: cannot find 'Task' in scope
 57 |         return nil
 58 |       }
/host/spi-builder-workspace/Sources/AsyncSequenceTestUtils/AsyncSequenceTestDouble.swift:68:7: error: cannot find 'Task' in scope
 66 |       return nil
 67 |     } onCancel: {
 68 |       Task {
    |       `- error: cannot find 'Task' in scope
 69 |         await self.onCancel()
 70 |       }
/host/spi-builder-workspace/Sources/AsyncSequenceTestUtils/AsyncSequenceTestDouble.swift:81:13: error: cannot find 'withCheckedContinuation' in scope
 79 |     }
 80 |     if self.nextQueue.isEmpty {
 81 |       await withCheckedContinuation { continuation in
    |             `- error: cannot find 'withCheckedContinuation' in scope
 82 |         self.sendQueue.append(continuation)
 83 |       }
/host/spi-builder-workspace/Sources/AsyncSequenceTestUtils/AsyncSequenceTestDouble.swift:85:11: error: cannot find 'withCheckedContinuation' in scope
 83 |       }
 84 |     }
 85 |     await withCheckedContinuation { continuation in
    |           `- error: cannot find 'withCheckedContinuation' in scope
 86 |       self.sendQueue.append(continuation)
 87 |       self.nextQueue.removeFirst().resume(returning: element)
/host/spi-builder-workspace/Sources/AsyncSequenceTestUtils/AsyncSequenceTestDouble.swift:95:54: error: 'nil' requires a contextual type
 93 |   private func onCancel() {
 94 |     if self.nextQueue.isEmpty == false {
 95 |       self.nextQueue.removeFirst().resume(returning: nil)
    |                                                      `- error: 'nil' requires a contextual type
 96 |     }
 97 |     if self.sendQueue.isEmpty == false {
BUILD FAILURE 6.2 wasm