Build Information
Failed to build SwiftLI, reference main (760d49), with Swift 6.1 for Wasm on 26 Aug 2026 07:31:10 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
137 | private var timers: [String: DispatchSourceTimer] = [:]
| `- error: cannot find type 'DispatchSourceTimer' in scope
138 |
139 | private init() {}
/host/spi-builder-workspace/Sources/SwiftLI/CLI Basic Components/TimelineView.swift:153:21: error: cannot find 'DispatchSource' in scope
151 | }
152 | let delay = Swift.max(fireAt.timeIntervalSinceNow, 0)
153 | let timer = DispatchSource.makeTimerSource(queue: .main)
| `- error: cannot find 'DispatchSource' in scope
154 | timer.schedule(deadline: .now() + delay)
155 | timer.setEventHandler {
/host/spi-builder-workspace/Sources/SwiftLI/CLI Basic Components/TimelineView.swift:153:60: error: cannot infer contextual base in reference to member 'main'
151 | }
152 | let delay = Swift.max(fireAt.timeIntervalSinceNow, 0)
153 | let timer = DispatchSource.makeTimerSource(queue: .main)
| `- error: cannot infer contextual base in reference to member 'main'
154 | timer.schedule(deadline: .now() + delay)
155 | timer.setEventHandler {
/host/spi-builder-workspace/Sources/SwiftLI/CLI Basic Components/TimelineView.swift:154:35: error: cannot call value of non-function type 'Date'
152 | let delay = Swift.max(fireAt.timeIntervalSinceNow, 0)
153 | let timer = DispatchSource.makeTimerSource(queue: .main)
154 | timer.schedule(deadline: .now() + delay)
| `- error: cannot call value of non-function type 'Date'
155 | timer.setEventHandler {
156 | TimelineCoordinator.shared.fire(key: key)
[93/162] Compiling SwiftLI TimelineSchedule.swift
/host/spi-builder-workspace/Sources/SwiftLI/CLI Basic Components/TimelineView.swift:137:34: error: cannot find type 'DispatchSourceTimer' in scope
135 |
136 | private let lock = NSLock()
137 | private var timers: [String: DispatchSourceTimer] = [:]
| `- error: cannot find type 'DispatchSourceTimer' in scope
138 |
139 | private init() {}
/host/spi-builder-workspace/Sources/SwiftLI/CLI Basic Components/TimelineView.swift:153:21: error: cannot find 'DispatchSource' in scope
151 | }
152 | let delay = Swift.max(fireAt.timeIntervalSinceNow, 0)
153 | let timer = DispatchSource.makeTimerSource(queue: .main)
| `- error: cannot find 'DispatchSource' in scope
154 | timer.schedule(deadline: .now() + delay)
155 | timer.setEventHandler {
/host/spi-builder-workspace/Sources/SwiftLI/CLI Basic Components/TimelineView.swift:153:60: error: cannot infer contextual base in reference to member 'main'
151 | }
152 | let delay = Swift.max(fireAt.timeIntervalSinceNow, 0)
153 | let timer = DispatchSource.makeTimerSource(queue: .main)
| `- error: cannot infer contextual base in reference to member 'main'
154 | timer.schedule(deadline: .now() + delay)
155 | timer.setEventHandler {
/host/spi-builder-workspace/Sources/SwiftLI/CLI Basic Components/TimelineView.swift:154:35: error: cannot call value of non-function type 'Date'
152 | let delay = Swift.max(fireAt.timeIntervalSinceNow, 0)
153 | let timer = DispatchSource.makeTimerSource(queue: .main)
154 | timer.schedule(deadline: .now() + delay)
| `- error: cannot call value of non-function type 'Date'
155 | timer.setEventHandler {
156 | TimelineCoordinator.shared.fire(key: key)
[94/162] Compiling SwiftLI TimelineView.swift
/host/spi-builder-workspace/Sources/SwiftLI/CLI Basic Components/TimelineView.swift:137:34: error: cannot find type 'DispatchSourceTimer' in scope
135 |
136 | private let lock = NSLock()
137 | private var timers: [String: DispatchSourceTimer] = [:]
| `- error: cannot find type 'DispatchSourceTimer' in scope
138 |
139 | private init() {}
/host/spi-builder-workspace/Sources/SwiftLI/CLI Basic Components/TimelineView.swift:153:21: error: cannot find 'DispatchSource' in scope
151 | }
152 | let delay = Swift.max(fireAt.timeIntervalSinceNow, 0)
153 | let timer = DispatchSource.makeTimerSource(queue: .main)
| `- error: cannot find 'DispatchSource' in scope
154 | timer.schedule(deadline: .now() + delay)
155 | timer.setEventHandler {
/host/spi-builder-workspace/Sources/SwiftLI/CLI Basic Components/TimelineView.swift:153:60: error: cannot infer contextual base in reference to member 'main'
151 | }
152 | let delay = Swift.max(fireAt.timeIntervalSinceNow, 0)
153 | let timer = DispatchSource.makeTimerSource(queue: .main)
| `- error: cannot infer contextual base in reference to member 'main'
154 | timer.schedule(deadline: .now() + delay)
155 | timer.setEventHandler {
/host/spi-builder-workspace/Sources/SwiftLI/CLI Basic Components/TimelineView.swift:154:35: error: cannot call value of non-function type 'Date'
152 | let delay = Swift.max(fireAt.timeIntervalSinceNow, 0)
153 | let timer = DispatchSource.makeTimerSource(queue: .main)
154 | timer.schedule(deadline: .now() + delay)
| `- error: cannot call value of non-function type 'Date'
155 | timer.setEventHandler {
156 | TimelineCoordinator.shared.fire(key: key)
[95/162] Compiling SwiftLI Toggle.swift
/host/spi-builder-workspace/Sources/SwiftLI/CLI Basic Components/TimelineView.swift:137:34: error: cannot find type 'DispatchSourceTimer' in scope
135 |
136 | private let lock = NSLock()
137 | private var timers: [String: DispatchSourceTimer] = [:]
| `- error: cannot find type 'DispatchSourceTimer' in scope
138 |
139 | private init() {}
/host/spi-builder-workspace/Sources/SwiftLI/CLI Basic Components/TimelineView.swift:153:21: error: cannot find 'DispatchSource' in scope
151 | }
152 | let delay = Swift.max(fireAt.timeIntervalSinceNow, 0)
153 | let timer = DispatchSource.makeTimerSource(queue: .main)
| `- error: cannot find 'DispatchSource' in scope
154 | timer.schedule(deadline: .now() + delay)
155 | timer.setEventHandler {
/host/spi-builder-workspace/Sources/SwiftLI/CLI Basic Components/TimelineView.swift:153:60: error: cannot infer contextual base in reference to member 'main'
151 | }
152 | let delay = Swift.max(fireAt.timeIntervalSinceNow, 0)
153 | let timer = DispatchSource.makeTimerSource(queue: .main)
| `- error: cannot infer contextual base in reference to member 'main'
154 | timer.schedule(deadline: .now() + delay)
155 | timer.setEventHandler {
/host/spi-builder-workspace/Sources/SwiftLI/CLI Basic Components/TimelineView.swift:154:35: error: cannot call value of non-function type 'Date'
152 | let delay = Swift.max(fireAt.timeIntervalSinceNow, 0)
153 | let timer = DispatchSource.makeTimerSource(queue: .main)
154 | timer.schedule(deadline: .now() + delay)
| `- error: cannot call value of non-function type 'Date'
155 | timer.setEventHandler {
156 | TimelineCoordinator.shared.fire(key: key)
[96/162] Compiling SwiftLI Toolbar.swift
/host/spi-builder-workspace/Sources/SwiftLI/CLI Basic Components/TimelineView.swift:137:34: error: cannot find type 'DispatchSourceTimer' in scope
135 |
136 | private let lock = NSLock()
137 | private var timers: [String: DispatchSourceTimer] = [:]
| `- error: cannot find type 'DispatchSourceTimer' in scope
138 |
139 | private init() {}
/host/spi-builder-workspace/Sources/SwiftLI/CLI Basic Components/TimelineView.swift:153:21: error: cannot find 'DispatchSource' in scope
151 | }
152 | let delay = Swift.max(fireAt.timeIntervalSinceNow, 0)
153 | let timer = DispatchSource.makeTimerSource(queue: .main)
| `- error: cannot find 'DispatchSource' in scope
154 | timer.schedule(deadline: .now() + delay)
155 | timer.setEventHandler {
/host/spi-builder-workspace/Sources/SwiftLI/CLI Basic Components/TimelineView.swift:153:60: error: cannot infer contextual base in reference to member 'main'
151 | }
152 | let delay = Swift.max(fireAt.timeIntervalSinceNow, 0)
153 | let timer = DispatchSource.makeTimerSource(queue: .main)
| `- error: cannot infer contextual base in reference to member 'main'
154 | timer.schedule(deadline: .now() + delay)
155 | timer.setEventHandler {
/host/spi-builder-workspace/Sources/SwiftLI/CLI Basic Components/TimelineView.swift:154:35: error: cannot call value of non-function type 'Date'
152 | let delay = Swift.max(fireAt.timeIntervalSinceNow, 0)
153 | let timer = DispatchSource.makeTimerSource(queue: .main)
154 | timer.schedule(deadline: .now() + delay)
| `- error: cannot call value of non-function type 'Date'
155 | timer.setEventHandler {
156 | TimelineCoordinator.shared.fire(key: key)
[97/162] Compiling SwiftLI TupleView.swift
/host/spi-builder-workspace/Sources/SwiftLI/CLI Basic Components/TimelineView.swift:137:34: error: cannot find type 'DispatchSourceTimer' in scope
135 |
136 | private let lock = NSLock()
137 | private var timers: [String: DispatchSourceTimer] = [:]
| `- error: cannot find type 'DispatchSourceTimer' in scope
138 |
139 | private init() {}
/host/spi-builder-workspace/Sources/SwiftLI/CLI Basic Components/TimelineView.swift:153:21: error: cannot find 'DispatchSource' in scope
151 | }
152 | let delay = Swift.max(fireAt.timeIntervalSinceNow, 0)
153 | let timer = DispatchSource.makeTimerSource(queue: .main)
| `- error: cannot find 'DispatchSource' in scope
154 | timer.schedule(deadline: .now() + delay)
155 | timer.setEventHandler {
/host/spi-builder-workspace/Sources/SwiftLI/CLI Basic Components/TimelineView.swift:153:60: error: cannot infer contextual base in reference to member 'main'
151 | }
152 | let delay = Swift.max(fireAt.timeIntervalSinceNow, 0)
153 | let timer = DispatchSource.makeTimerSource(queue: .main)
| `- error: cannot infer contextual base in reference to member 'main'
154 | timer.schedule(deadline: .now() + delay)
155 | timer.setEventHandler {
/host/spi-builder-workspace/Sources/SwiftLI/CLI Basic Components/TimelineView.swift:154:35: error: cannot call value of non-function type 'Date'
152 | let delay = Swift.max(fireAt.timeIntervalSinceNow, 0)
153 | let timer = DispatchSource.makeTimerSource(queue: .main)
154 | timer.schedule(deadline: .now() + delay)
| `- error: cannot call value of non-function type 'Date'
155 | timer.setEventHandler {
156 | TimelineCoordinator.shared.fire(key: key)
[98/162] Compiling SwiftLI TextEditCommand.swift
/host/spi-builder-workspace/Sources/SwiftLI/Rendering/TerminalSize.swift:98:18: error: cannot find 'winsize' in scope
96 | /// Returns `nil` when `fd` is not a terminal or reports a zero width.
97 | private static func ioctlSize(_ fd: Int32) -> TerminalSize? {
98 | var ws = winsize()
| `- error: cannot find 'winsize' in scope
99 | guard ioctl(fd, UInt(TIOCGWINSZ), &ws) == 0 else { return nil }
100 | guard ws.ws_col > 0 else { return nil }
/host/spi-builder-workspace/Sources/SwiftLI/Rendering/TerminalSize.swift:99:30: error: cannot find 'TIOCGWINSZ' in scope
97 | private static func ioctlSize(_ fd: Int32) -> TerminalSize? {
98 | var ws = winsize()
99 | guard ioctl(fd, UInt(TIOCGWINSZ), &ws) == 0 else { return nil }
| `- error: cannot find 'TIOCGWINSZ' in scope
100 | guard ws.ws_col > 0 else { return nil }
101 | return TerminalSize(columns: Int(ws.ws_col), rows: Int(ws.ws_row))
[99/162] Compiling SwiftLI TextInputKeymap.swift
/host/spi-builder-workspace/Sources/SwiftLI/Rendering/TerminalSize.swift:98:18: error: cannot find 'winsize' in scope
96 | /// Returns `nil` when `fd` is not a terminal or reports a zero width.
97 | private static func ioctlSize(_ fd: Int32) -> TerminalSize? {
98 | var ws = winsize()
| `- error: cannot find 'winsize' in scope
99 | guard ioctl(fd, UInt(TIOCGWINSZ), &ws) == 0 else { return nil }
100 | guard ws.ws_col > 0 else { return nil }
/host/spi-builder-workspace/Sources/SwiftLI/Rendering/TerminalSize.swift:99:30: error: cannot find 'TIOCGWINSZ' in scope
97 | private static func ioctlSize(_ fd: Int32) -> TerminalSize? {
98 | var ws = winsize()
99 | guard ioctl(fd, UInt(TIOCGWINSZ), &ws) == 0 else { return nil }
| `- error: cannot find 'TIOCGWINSZ' in scope
100 | guard ws.ws_col > 0 else { return nil }
101 | return TerminalSize(columns: Int(ws.ws_col), rows: Int(ws.ws_row))
[100/162] Compiling SwiftLI WindowsResizePoller.swift
/host/spi-builder-workspace/Sources/SwiftLI/Rendering/TerminalSize.swift:98:18: error: cannot find 'winsize' in scope
96 | /// Returns `nil` when `fd` is not a terminal or reports a zero width.
97 | private static func ioctlSize(_ fd: Int32) -> TerminalSize? {
98 | var ws = winsize()
| `- error: cannot find 'winsize' in scope
99 | guard ioctl(fd, UInt(TIOCGWINSZ), &ws) == 0 else { return nil }
100 | guard ws.ws_col > 0 else { return nil }
/host/spi-builder-workspace/Sources/SwiftLI/Rendering/TerminalSize.swift:99:30: error: cannot find 'TIOCGWINSZ' in scope
97 | private static func ioctlSize(_ fd: Int32) -> TerminalSize? {
98 | var ws = winsize()
99 | guard ioctl(fd, UInt(TIOCGWINSZ), &ws) == 0 else { return nil }
| `- error: cannot find 'TIOCGWINSZ' in scope
100 | guard ws.ws_col > 0 else { return nil }
101 | return TerminalSize(columns: Int(ws.ws_col), rows: Int(ws.ws_row))
[101/162] Compiling SwiftLI Frame.swift
/host/spi-builder-workspace/Sources/SwiftLI/Rendering/TerminalSize.swift:98:18: error: cannot find 'winsize' in scope
96 | /// Returns `nil` when `fd` is not a terminal or reports a zero width.
97 | private static func ioctlSize(_ fd: Int32) -> TerminalSize? {
98 | var ws = winsize()
| `- error: cannot find 'winsize' in scope
99 | guard ioctl(fd, UInt(TIOCGWINSZ), &ws) == 0 else { return nil }
100 | guard ws.ws_col > 0 else { return nil }
/host/spi-builder-workspace/Sources/SwiftLI/Rendering/TerminalSize.swift:99:30: error: cannot find 'TIOCGWINSZ' in scope
97 | private static func ioctlSize(_ fd: Int32) -> TerminalSize? {
98 | var ws = winsize()
99 | guard ioctl(fd, UInt(TIOCGWINSZ), &ws) == 0 else { return nil }
| `- error: cannot find 'TIOCGWINSZ' in scope
100 | guard ws.ws_col > 0 else { return nil }
101 | return TerminalSize(columns: Int(ws.ws_col), rows: Int(ws.ws_row))
[102/162] Compiling SwiftLI Geometry.swift
/host/spi-builder-workspace/Sources/SwiftLI/Rendering/TerminalSize.swift:98:18: error: cannot find 'winsize' in scope
96 | /// Returns `nil` when `fd` is not a terminal or reports a zero width.
97 | private static func ioctlSize(_ fd: Int32) -> TerminalSize? {
98 | var ws = winsize()
| `- error: cannot find 'winsize' in scope
99 | guard ioctl(fd, UInt(TIOCGWINSZ), &ws) == 0 else { return nil }
100 | guard ws.ws_col > 0 else { return nil }
/host/spi-builder-workspace/Sources/SwiftLI/Rendering/TerminalSize.swift:99:30: error: cannot find 'TIOCGWINSZ' in scope
97 | private static func ioctlSize(_ fd: Int32) -> TerminalSize? {
98 | var ws = winsize()
99 | guard ioctl(fd, UInt(TIOCGWINSZ), &ws) == 0 else { return nil }
| `- error: cannot find 'TIOCGWINSZ' in scope
100 | guard ws.ws_col > 0 else { return nil }
101 | return TerminalSize(columns: Int(ws.ws_col), rows: Int(ws.ws_row))
[103/162] Compiling SwiftLI NodeLayout.swift
/host/spi-builder-workspace/Sources/SwiftLI/Rendering/TerminalSize.swift:98:18: error: cannot find 'winsize' in scope
96 | /// Returns `nil` when `fd` is not a terminal or reports a zero width.
97 | private static func ioctlSize(_ fd: Int32) -> TerminalSize? {
98 | var ws = winsize()
| `- error: cannot find 'winsize' in scope
99 | guard ioctl(fd, UInt(TIOCGWINSZ), &ws) == 0 else { return nil }
100 | guard ws.ws_col > 0 else { return nil }
/host/spi-builder-workspace/Sources/SwiftLI/Rendering/TerminalSize.swift:99:30: error: cannot find 'TIOCGWINSZ' in scope
97 | private static func ioctlSize(_ fd: Int32) -> TerminalSize? {
98 | var ws = winsize()
99 | guard ioctl(fd, UInt(TIOCGWINSZ), &ws) == 0 else { return nil }
| `- error: cannot find 'TIOCGWINSZ' in scope
100 | guard ws.ws_col > 0 else { return nil }
101 | return TerminalSize(columns: Int(ws.ws_col), rows: Int(ws.ws_row))
[104/162] Compiling SwiftLI RenderNode.swift
/host/spi-builder-workspace/Sources/SwiftLI/Rendering/TerminalSize.swift:98:18: error: cannot find 'winsize' in scope
96 | /// Returns `nil` when `fd` is not a terminal or reports a zero width.
97 | private static func ioctlSize(_ fd: Int32) -> TerminalSize? {
98 | var ws = winsize()
| `- error: cannot find 'winsize' in scope
99 | guard ioctl(fd, UInt(TIOCGWINSZ), &ws) == 0 else { return nil }
100 | guard ws.ws_col > 0 else { return nil }
/host/spi-builder-workspace/Sources/SwiftLI/Rendering/TerminalSize.swift:99:30: error: cannot find 'TIOCGWINSZ' in scope
97 | private static func ioctlSize(_ fd: Int32) -> TerminalSize? {
98 | var ws = winsize()
99 | guard ioctl(fd, UInt(TIOCGWINSZ), &ws) == 0 else { return nil }
| `- error: cannot find 'TIOCGWINSZ' in scope
100 | guard ws.ws_col > 0 else { return nil }
101 | return TerminalSize(columns: Int(ws.ws_col), rows: Int(ws.ws_row))
[105/162] Compiling SwiftLI TerminalCanvas.swift
/host/spi-builder-workspace/Sources/SwiftLI/Rendering/TerminalSize.swift:98:18: error: cannot find 'winsize' in scope
96 | /// Returns `nil` when `fd` is not a terminal or reports a zero width.
97 | private static func ioctlSize(_ fd: Int32) -> TerminalSize? {
98 | var ws = winsize()
| `- error: cannot find 'winsize' in scope
99 | guard ioctl(fd, UInt(TIOCGWINSZ), &ws) == 0 else { return nil }
100 | guard ws.ws_col > 0 else { return nil }
/host/spi-builder-workspace/Sources/SwiftLI/Rendering/TerminalSize.swift:99:30: error: cannot find 'TIOCGWINSZ' in scope
97 | private static func ioctlSize(_ fd: Int32) -> TerminalSize? {
98 | var ws = winsize()
99 | guard ioctl(fd, UInt(TIOCGWINSZ), &ws) == 0 else { return nil }
| `- error: cannot find 'TIOCGWINSZ' in scope
100 | guard ws.ws_col > 0 else { return nil }
101 | return TerminalSize(columns: Int(ws.ws_col), rows: Int(ws.ws_row))
[106/162] Compiling SwiftLI TerminalSize.swift
/host/spi-builder-workspace/Sources/SwiftLI/Rendering/TerminalSize.swift:98:18: error: cannot find 'winsize' in scope
96 | /// Returns `nil` when `fd` is not a terminal or reports a zero width.
97 | private static func ioctlSize(_ fd: Int32) -> TerminalSize? {
98 | var ws = winsize()
| `- error: cannot find 'winsize' in scope
99 | guard ioctl(fd, UInt(TIOCGWINSZ), &ws) == 0 else { return nil }
100 | guard ws.ws_col > 0 else { return nil }
/host/spi-builder-workspace/Sources/SwiftLI/Rendering/TerminalSize.swift:99:30: error: cannot find 'TIOCGWINSZ' in scope
97 | private static func ioctlSize(_ fd: Int32) -> TerminalSize? {
98 | var ws = winsize()
99 | guard ioctl(fd, UInt(TIOCGWINSZ), &ws) == 0 else { return nil }
| `- error: cannot find 'TIOCGWINSZ' in scope
100 | guard ws.ws_col > 0 else { return nil }
101 | return TerminalSize(columns: Int(ws.ws_col), rows: Int(ws.ws_row))
[107/162] Compiling SwiftLI TextStyle.swift
/host/spi-builder-workspace/Sources/SwiftLI/Rendering/TerminalSize.swift:98:18: error: cannot find 'winsize' in scope
96 | /// Returns `nil` when `fd` is not a terminal or reports a zero width.
97 | private static func ioctlSize(_ fd: Int32) -> TerminalSize? {
98 | var ws = winsize()
| `- error: cannot find 'winsize' in scope
99 | guard ioctl(fd, UInt(TIOCGWINSZ), &ws) == 0 else { return nil }
100 | guard ws.ws_col > 0 else { return nil }
/host/spi-builder-workspace/Sources/SwiftLI/Rendering/TerminalSize.swift:99:30: error: cannot find 'TIOCGWINSZ' in scope
97 | private static func ioctlSize(_ fd: Int32) -> TerminalSize? {
98 | var ws = winsize()
99 | guard ioctl(fd, UInt(TIOCGWINSZ), &ws) == 0 else { return nil }
| `- error: cannot find 'TIOCGWINSZ' in scope
100 | guard ws.ws_col > 0 else { return nil }
101 | return TerminalSize(columns: Int(ws.ws_col), rows: Int(ws.ws_row))
[108/162] Compiling SwiftLI Scene.swift
/host/spi-builder-workspace/Sources/SwiftLI/Rendering/TerminalSize.swift:98:18: error: cannot find 'winsize' in scope
96 | /// Returns `nil` when `fd` is not a terminal or reports a zero width.
97 | private static func ioctlSize(_ fd: Int32) -> TerminalSize? {
98 | var ws = winsize()
| `- error: cannot find 'winsize' in scope
99 | guard ioctl(fd, UInt(TIOCGWINSZ), &ws) == 0 else { return nil }
100 | guard ws.ws_col > 0 else { return nil }
/host/spi-builder-workspace/Sources/SwiftLI/Rendering/TerminalSize.swift:99:30: error: cannot find 'TIOCGWINSZ' in scope
97 | private static func ioctlSize(_ fd: Int32) -> TerminalSize? {
98 | var ws = winsize()
99 | guard ioctl(fd, UInt(TIOCGWINSZ), &ws) == 0 else { return nil }
| `- error: cannot find 'TIOCGWINSZ' in scope
100 | guard ws.ws_col > 0 else { return nil }
101 | return TerminalSize(columns: Int(ws.ws_col), rows: Int(ws.ws_row))
[109/162] Compiling SwiftLI Alignment.swift
/host/spi-builder-workspace/Sources/SwiftLI/Rendering/TerminalSize.swift:98:18: error: cannot find 'winsize' in scope
96 | /// Returns `nil` when `fd` is not a terminal or reports a zero width.
97 | private static func ioctlSize(_ fd: Int32) -> TerminalSize? {
98 | var ws = winsize()
| `- error: cannot find 'winsize' in scope
99 | guard ioctl(fd, UInt(TIOCGWINSZ), &ws) == 0 else { return nil }
100 | guard ws.ws_col > 0 else { return nil }
/host/spi-builder-workspace/Sources/SwiftLI/Rendering/TerminalSize.swift:99:30: error: cannot find 'TIOCGWINSZ' in scope
97 | private static func ioctlSize(_ fd: Int32) -> TerminalSize? {
98 | var ws = winsize()
99 | guard ioctl(fd, UInt(TIOCGWINSZ), &ws) == 0 else { return nil }
| `- error: cannot find 'TIOCGWINSZ' in scope
100 | guard ws.ws_col > 0 else { return nil }
101 | return TerminalSize(columns: Int(ws.ws_col), rows: Int(ws.ws_row))
[110/162] Compiling SwiftLI BlinkStyle.swift
[111/162] Compiling SwiftLI BorderStyle.swift
[112/162] Compiling SwiftLI Color.swift
[113/162] Compiling SwiftLI ColorScheme.swift
[114/162] Compiling SwiftLI Edge.swift
[115/162] Compiling SwiftLI EdgeInsets.swift
[116/162] Compiling SwiftLI LineStyle.swift
[117/162] Compiling SwiftLI LocalizedStringKey.swift
[118/162] Compiling SwiftLI Weight.swift
[119/162] Compiling SwiftLI View.swift
[120/162] Compiling SwiftLI ViewBuilder.swift
[121/162] Compiling SwiftLI ViewModifier.swift
[122/162] Compiling SwiftLI AnyView.swift
[123/162] Compiling SwiftLI Button.swift
[124/162] Compiling SwiftLI ContentUnavailableView.swift
[125/162] Compiling SwiftLI Divider.swift
[126/162] Compiling SwiftLI EmptyView.swift
[127/162] Compiling SwiftLI ForEach.swift
[128/162] Compiling SwiftLI Form.swift
[129/162] Compiling SwiftLI Gauge.swift
[130/162] Compiling SwiftLI Grid.swift
[131/162] Compiling SwiftLI Group.swift
[132/162] Compiling SwiftLI GroupBox.swift
[133/162] Compiling SwiftLI HStack.swift
[134/162] Compiling SwiftLI Label.swift
[135/162] Compiling SwiftLI VStack.swift
/host/spi-builder-workspace/Sources/SwiftLI/Environment.swift:288:15: error: cannot find 'Thread' in scope
286 |
287 | private static var stack: [EnvironmentValues] {
288 | get { Thread.current.threadDictionary[key] as? [EnvironmentValues] ?? [] }
| `- error: cannot find 'Thread' in scope
289 | set { Thread.current.threadDictionary[key] = newValue }
290 | }
/host/spi-builder-workspace/Sources/SwiftLI/Environment.swift:289:15: error: cannot find 'Thread' in scope
287 | private static var stack: [EnvironmentValues] {
288 | get { Thread.current.threadDictionary[key] as? [EnvironmentValues] ?? [] }
289 | set { Thread.current.threadDictionary[key] = newValue }
| `- error: cannot find 'Thread' in scope
290 | }
291 |
[136/162] Compiling SwiftLI ViewThatFits.swift
/host/spi-builder-workspace/Sources/SwiftLI/Environment.swift:288:15: error: cannot find 'Thread' in scope
286 |
287 | private static var stack: [EnvironmentValues] {
288 | get { Thread.current.threadDictionary[key] as? [EnvironmentValues] ?? [] }
| `- error: cannot find 'Thread' in scope
289 | set { Thread.current.threadDictionary[key] = newValue }
290 | }
/host/spi-builder-workspace/Sources/SwiftLI/Environment.swift:289:15: error: cannot find 'Thread' in scope
287 | private static var stack: [EnvironmentValues] {
288 | get { Thread.current.threadDictionary[key] as? [EnvironmentValues] ?? [] }
289 | set { Thread.current.threadDictionary[key] = newValue }
| `- error: cannot find 'Thread' in scope
290 | }
291 |
[137/162] Compiling SwiftLI Emoticon.swift
/host/spi-builder-workspace/Sources/SwiftLI/Environment.swift:288:15: error: cannot find 'Thread' in scope
286 |
287 | private static var stack: [EnvironmentValues] {
288 | get { Thread.current.threadDictionary[key] as? [EnvironmentValues] ?? [] }
| `- error: cannot find 'Thread' in scope
289 | set { Thread.current.threadDictionary[key] = newValue }
290 | }
/host/spi-builder-workspace/Sources/SwiftLI/Environment.swift:289:15: error: cannot find 'Thread' in scope
287 | private static var stack: [EnvironmentValues] {
288 | get { Thread.current.threadDictionary[key] as? [EnvironmentValues] ?? [] }
289 | set { Thread.current.threadDictionary[key] = newValue }
| `- error: cannot find 'Thread' in scope
290 | }
291 |
[138/162] Compiling SwiftLI SwiftLogo.swift
/host/spi-builder-workspace/Sources/SwiftLI/Environment.swift:288:15: error: cannot find 'Thread' in scope
286 |
287 | private static var stack: [EnvironmentValues] {
288 | get { Thread.current.threadDictionary[key] as? [EnvironmentValues] ?? [] }
| `- error: cannot find 'Thread' in scope
289 | set { Thread.current.threadDictionary[key] = newValue }
290 | }
/host/spi-builder-workspace/Sources/SwiftLI/Environment.swift:289:15: error: cannot find 'Thread' in scope
287 | private static var stack: [EnvironmentValues] {
288 | get { Thread.current.threadDictionary[key] as? [EnvironmentValues] ?? [] }
289 | set { Thread.current.threadDictionary[key] = newValue }
| `- error: cannot find 'Thread' in scope
290 | }
291 |
[139/162] Compiling SwiftLI Commands.swift
/host/spi-builder-workspace/Sources/SwiftLI/Environment.swift:288:15: error: cannot find 'Thread' in scope
286 |
287 | private static var stack: [EnvironmentValues] {
288 | get { Thread.current.threadDictionary[key] as? [EnvironmentValues] ?? [] }
| `- error: cannot find 'Thread' in scope
289 | set { Thread.current.threadDictionary[key] = newValue }
290 | }
/host/spi-builder-workspace/Sources/SwiftLI/Environment.swift:289:15: error: cannot find 'Thread' in scope
287 | private static var stack: [EnvironmentValues] {
288 | get { Thread.current.threadDictionary[key] as? [EnvironmentValues] ?? [] }
289 | set { Thread.current.threadDictionary[key] = newValue }
| `- error: cannot find 'Thread' in scope
290 | }
291 |
[140/162] Compiling SwiftLI Environment.swift
/host/spi-builder-workspace/Sources/SwiftLI/Environment.swift:288:15: error: cannot find 'Thread' in scope
286 |
287 | private static var stack: [EnvironmentValues] {
288 | get { Thread.current.threadDictionary[key] as? [EnvironmentValues] ?? [] }
| `- error: cannot find 'Thread' in scope
289 | set { Thread.current.threadDictionary[key] = newValue }
290 | }
/host/spi-builder-workspace/Sources/SwiftLI/Environment.swift:289:15: error: cannot find 'Thread' in scope
287 | private static var stack: [EnvironmentValues] {
288 | get { Thread.current.threadDictionary[key] as? [EnvironmentValues] ?? [] }
289 | set { Thread.current.threadDictionary[key] = newValue }
| `- error: cannot find 'Thread' in scope
290 | }
291 |
[141/162] Compiling SwiftLI Border.swift
/host/spi-builder-workspace/Sources/SwiftLI/Environment.swift:288:15: error: cannot find 'Thread' in scope
286 |
287 | private static var stack: [EnvironmentValues] {
288 | get { Thread.current.threadDictionary[key] as? [EnvironmentValues] ?? [] }
| `- error: cannot find 'Thread' in scope
289 | set { Thread.current.threadDictionary[key] = newValue }
290 | }
/host/spi-builder-workspace/Sources/SwiftLI/Environment.swift:289:15: error: cannot find 'Thread' in scope
287 | private static var stack: [EnvironmentValues] {
288 | get { Thread.current.threadDictionary[key] as? [EnvironmentValues] ?? [] }
289 | set { Thread.current.threadDictionary[key] = newValue }
| `- error: cannot find 'Thread' in scope
290 | }
291 |
[142/162] Compiling SwiftLI FrameModifier.swift
/host/spi-builder-workspace/Sources/SwiftLI/Environment.swift:288:15: error: cannot find 'Thread' in scope
286 |
287 | private static var stack: [EnvironmentValues] {
288 | get { Thread.current.threadDictionary[key] as? [EnvironmentValues] ?? [] }
| `- error: cannot find 'Thread' in scope
289 | set { Thread.current.threadDictionary[key] = newValue }
290 | }
/host/spi-builder-workspace/Sources/SwiftLI/Environment.swift:289:15: error: cannot find 'Thread' in scope
287 | private static var stack: [EnvironmentValues] {
288 | get { Thread.current.threadDictionary[key] as? [EnvironmentValues] ?? [] }
289 | set { Thread.current.threadDictionary[key] = newValue }
| `- error: cannot find 'Thread' in scope
290 | }
291 |
[143/162] Compiling SwiftLI Inspector.swift
/host/spi-builder-workspace/Sources/SwiftLI/Environment.swift:288:15: error: cannot find 'Thread' in scope
286 |
287 | private static var stack: [EnvironmentValues] {
288 | get { Thread.current.threadDictionary[key] as? [EnvironmentValues] ?? [] }
| `- error: cannot find 'Thread' in scope
289 | set { Thread.current.threadDictionary[key] = newValue }
290 | }
/host/spi-builder-workspace/Sources/SwiftLI/Environment.swift:289:15: error: cannot find 'Thread' in scope
287 | private static var stack: [EnvironmentValues] {
288 | get { Thread.current.threadDictionary[key] as? [EnvironmentValues] ?? [] }
289 | set { Thread.current.threadDictionary[key] = newValue }
| `- error: cannot find 'Thread' in scope
290 | }
291 |
[144/162] Compiling SwiftLI LineLimit.swift
/host/spi-builder-workspace/Sources/SwiftLI/Environment.swift:288:15: error: cannot find 'Thread' in scope
286 |
287 | private static var stack: [EnvironmentValues] {
288 | get { Thread.current.threadDictionary[key] as? [EnvironmentValues] ?? [] }
| `- error: cannot find 'Thread' in scope
289 | set { Thread.current.threadDictionary[key] = newValue }
290 | }
/host/spi-builder-workspace/Sources/SwiftLI/Environment.swift:289:15: error: cannot find 'Thread' in scope
287 | private static var stack: [EnvironmentValues] {
288 | get { Thread.current.threadDictionary[key] as? [EnvironmentValues] ?? [] }
289 | set { Thread.current.threadDictionary[key] = newValue }
| `- error: cannot find 'Thread' in scope
290 | }
291 |
[145/162] Compiling SwiftLI Padding.swift
/host/spi-builder-workspace/Sources/SwiftLI/Environment.swift:288:15: error: cannot find 'Thread' in scope
286 |
287 | private static var stack: [EnvironmentValues] {
288 | get { Thread.current.threadDictionary[key] as? [EnvironmentValues] ?? [] }
| `- error: cannot find 'Thread' in scope
289 | set { Thread.current.threadDictionary[key] = newValue }
290 | }
/host/spi-builder-workspace/Sources/SwiftLI/Environment.swift:289:15: error: cannot find 'Thread' in scope
287 | private static var stack: [EnvironmentValues] {
288 | get { Thread.current.threadDictionary[key] as? [EnvironmentValues] ?? [] }
289 | set { Thread.current.threadDictionary[key] = newValue }
| `- error: cannot find 'Thread' in scope
290 | }
291 |
[146/162] Compiling SwiftLI Shadow.swift
/host/spi-builder-workspace/Sources/SwiftLI/Environment.swift:288:15: error: cannot find 'Thread' in scope
286 |
287 | private static var stack: [EnvironmentValues] {
288 | get { Thread.current.threadDictionary[key] as? [EnvironmentValues] ?? [] }
| `- error: cannot find 'Thread' in scope
289 | set { Thread.current.threadDictionary[key] = newValue }
290 | }
/host/spi-builder-workspace/Sources/SwiftLI/Environment.swift:289:15: error: cannot find 'Thread' in scope
287 | private static var stack: [EnvironmentValues] {
288 | get { Thread.current.threadDictionary[key] as? [EnvironmentValues] ?? [] }
289 | set { Thread.current.threadDictionary[key] = newValue }
| `- error: cannot find 'Thread' in scope
290 | }
291 |
[147/162] Compiling SwiftLI Sheet.swift
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:81:31: error: 'current' is unavailable: RunLoop is not available on WASI
79 | performRender()
80 |
81 | let runLoop = RunLoop.current
| `- error: 'current' is unavailable: RunLoop is not available on WASI
82 | while isRunning {
83 | // 100ms timeout keeps the loop responsive to signal-driven stops
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 | open class var current: RunLoop { get }}
| `- note: 'current' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:84:25: error: value of type 'RunLoop' has no member 'run'
82 | while isRunning {
83 | // 100ms timeout keeps the loop responsive to signal-driven stops
84 | _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
| `- error: value of type 'RunLoop' has no member 'run'
85 | }
86 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:84:36: error: cannot infer contextual base in reference to member 'default'
82 | while isRunning {
83 | // 100ms timeout keeps the loop responsive to signal-driven stops
84 | _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
| `- error: cannot infer contextual base in reference to member 'default'
85 | }
86 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:114:9: error: cannot find 'DispatchQueue' in scope
112 |
113 | // Dispatch to main so renders are serialized with timer callbacks.
114 | DispatchQueue.main.async { [weak self] in
| `- error: cannot find 'DispatchQueue' in scope
115 | self?.coalescedRender()
116 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:139:13: error: cannot find 'DispatchQueue' in scope
137 | // Too soon — try again after the remaining interval.
138 | let delay = minRenderInterval - elapsed
139 | DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
| `- error: cannot find 'DispatchQueue' in scope
140 | self?.performRender()
141 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:139:54: error: cannot call value of non-function type 'Date'
137 | // Too soon — try again after the remaining interval.
138 | let delay = minRenderInterval - elapsed
139 | DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
| `- error: cannot call value of non-function type 'Date'
140 | self?.performRender()
141 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:165:9: error: cannot find 'signal' in scope
163 | private func setupSignalHandlers() {
164 | // Ctrl+C: stop the run loop gracefully
165 | signal(SIGINT) { _ in
| `- error: cannot find 'signal' in scope
166 | AppRuntime.shared?.stop()
167 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:165:16: error: cannot find 'SIGINT' in scope
163 | private func setupSignalHandlers() {
164 | // Ctrl+C: stop the run loop gracefully
165 | signal(SIGINT) { _ in
| `- error: cannot find 'SIGINT' in scope
166 | AppRuntime.shared?.stop()
167 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:177:9: error: cannot find 'signal' in scope
175 | poller.start()
176 | #else
177 | signal(SIGWINCH) { _ in
| `- error: cannot find 'signal' in scope
178 | AppRuntime.shared?.scheduleRender()
179 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:177:16: error: cannot find 'SIGWINCH' in scope
175 | poller.start()
176 | #else
177 | signal(SIGWINCH) { _ in
| `- error: cannot find 'SIGWINCH' in scope
178 | AppRuntime.shared?.scheduleRender()
179 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:42:25: error: cannot find type 'DispatchSourceTimer' in scope
40 | /// are naturally serialized without additional locking.
41 | public final class CLITimer: @unchecked Sendable {
42 | private var source: DispatchSourceTimer?
| `- error: cannot find type 'DispatchSourceTimer' in scope
43 | private let interval: TimeInterval
44 | private let queue: DispatchQueue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:44:24: error: cannot find type 'DispatchQueue' in scope
42 | private var source: DispatchSourceTimer?
43 | private let interval: TimeInterval
44 | private let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
45 | private let lock = NSLock()
46 | /// Whether this timer is currently counted as a session redraw driver.
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:55:48: error: cannot find type 'DispatchQueue' in scope
53 | /// - queue: The dispatch queue on which `action` is called.
54 | /// Defaults to `.main`.
55 | public init(interval: TimeInterval, queue: DispatchQueue = .main) {
| `- error: cannot find type 'DispatchQueue' in scope
56 | self.interval = interval
57 | self.queue = queue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:68:25: error: cannot find 'DispatchSource' in scope
66 | public func start(action: @escaping @Sendable () -> Void) {
67 | stop()
68 | let newSource = DispatchSource.makeTimerSource(queue: queue)
| `- error: cannot find 'DispatchSource' in scope
69 | newSource.schedule(deadline: .now() + interval, repeating: interval)
70 | newSource.setEventHandler(handler: action)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:69:39: error: cannot call value of non-function type 'Date'
67 | stop()
68 | let newSource = DispatchSource.makeTimerSource(queue: queue)
69 | newSource.schedule(deadline: .now() + interval, repeating: interval)
| `- error: cannot call value of non-function type 'Date'
70 | newSource.setEventHandler(handler: action)
71 | newSource.resume()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:126:9: error: cannot find 'signal' in scope
124 | // The handler captures nothing so it converts to a C function pointer;
125 | // it hops to the main queue before touching stdout.
126 | signal(SIGWINCH) { _ in
| `- error: cannot find 'signal' in scope
127 | DispatchQueue.main.async {
128 | StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:126:16: error: cannot find 'SIGWINCH' in scope
124 | // The handler captures nothing so it converts to a C function pointer;
125 | // it hops to the main queue before touching stdout.
126 | signal(SIGWINCH) { _ in
| `- error: cannot find 'SIGWINCH' in scope
127 | DispatchQueue.main.async {
128 | StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:127:13: error: cannot find 'DispatchQueue' in scope
125 | // it hops to the main queue before touching stdout.
126 | signal(SIGWINCH) { _ in
127 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
128 | StateObserverRegistry.shared.notifyChange()
129 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:153:9: error: cannot find 'signal' in scope
151 | BodyRenderingStore.shared.resizePoller = nil
152 | #else
153 | signal(SIGWINCH, SIG_DFL)
| `- error: cannot find 'signal' in scope
154 | #endif
155 | KeyInputRouter.shared.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:153:16: error: cannot find 'SIGWINCH' in scope
151 | BodyRenderingStore.shared.resizePoller = nil
152 | #else
153 | signal(SIGWINCH, SIG_DFL)
| `- error: cannot find 'SIGWINCH' in scope
154 | #endif
155 | KeyInputRouter.shared.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:153:26: error: cannot find 'SIG_DFL' in scope
151 | BodyRenderingStore.shared.resizePoller = nil
152 | #else
153 | signal(SIGWINCH, SIG_DFL)
| `- error: cannot find 'SIG_DFL' in scope
154 | #endif
155 | KeyInputRouter.shared.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:99:32: error: cannot find type 'DispatchSourceTimer' in scope
97 | // "flick" feel as native scroll views. A new gesture cancels any in-
98 | // flight momentum and restarts it from the new velocity.
99 | private var momentumTimer: DispatchSourceTimer?
| `- error: cannot find type 'DispatchSourceTimer' in scope
100 | private var momentumScrollID: String?
101 | private var momentumVelocity: Double = 0
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:718:21: error: cannot find 'DispatchSource' in scope
716 | // effective scroll range without changing the per-event delta.
717 | momentumVelocity = velocity * 2.2
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
| `- error: cannot find 'DispatchSource' in scope
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:718:60: error: cannot infer contextual base in reference to member 'main'
716 | // effective scroll range without changing the per-event delta.
717 | momentumVelocity = velocity * 2.2
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
| `- error: cannot infer contextual base in reference to member 'main'
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:719:35: error: cannot call value of non-function type 'Date'
717 | momentumVelocity = velocity * 2.2
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
719 | timer.schedule(deadline: .now() + 0.08,
| `- error: cannot call value of non-function type 'Date'
720 | repeating: .milliseconds(16),
721 | leeway: .milliseconds(2))
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:720:36: error: cannot infer contextual base in reference to member 'milliseconds'
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
| `- error: cannot infer contextual base in reference to member 'milliseconds'
721 | leeway: .milliseconds(2))
722 | timer.setEventHandler { [weak self] in
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:721:33: error: cannot infer contextual base in reference to member 'milliseconds'
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
721 | leeway: .milliseconds(2))
| `- error: cannot infer contextual base in reference to member 'milliseconds'
722 | timer.setEventHandler { [weak self] in
723 | guard let self, self.momentumScrollID == id else { return }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:73:13: error: cannot find 'DispatchQueue' in scope
71 | // Schedule a redraw asynchronously so a focus change made *during* a
72 | // layout pass (e.g. from Tab syncing back) never re-enters rendering.
73 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
74 | AppRuntime.shared?.scheduleRender()
75 | StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:93:17: error: cannot find 'DispatchQueue' in scope
91 | nonmutating set {
92 | box.value = newValue
93 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
94 | AppRuntime.shared?.scheduleRender()
95 | StateObserverRegistry.shared.notifyChange()
[148/162] Compiling SwiftLI AppRuntime.swift
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:81:31: error: 'current' is unavailable: RunLoop is not available on WASI
79 | performRender()
80 |
81 | let runLoop = RunLoop.current
| `- error: 'current' is unavailable: RunLoop is not available on WASI
82 | while isRunning {
83 | // 100ms timeout keeps the loop responsive to signal-driven stops
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 | open class var current: RunLoop { get }}
| `- note: 'current' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:84:25: error: value of type 'RunLoop' has no member 'run'
82 | while isRunning {
83 | // 100ms timeout keeps the loop responsive to signal-driven stops
84 | _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
| `- error: value of type 'RunLoop' has no member 'run'
85 | }
86 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:84:36: error: cannot infer contextual base in reference to member 'default'
82 | while isRunning {
83 | // 100ms timeout keeps the loop responsive to signal-driven stops
84 | _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
| `- error: cannot infer contextual base in reference to member 'default'
85 | }
86 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:114:9: error: cannot find 'DispatchQueue' in scope
112 |
113 | // Dispatch to main so renders are serialized with timer callbacks.
114 | DispatchQueue.main.async { [weak self] in
| `- error: cannot find 'DispatchQueue' in scope
115 | self?.coalescedRender()
116 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:139:13: error: cannot find 'DispatchQueue' in scope
137 | // Too soon — try again after the remaining interval.
138 | let delay = minRenderInterval - elapsed
139 | DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
| `- error: cannot find 'DispatchQueue' in scope
140 | self?.performRender()
141 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:139:54: error: cannot call value of non-function type 'Date'
137 | // Too soon — try again after the remaining interval.
138 | let delay = minRenderInterval - elapsed
139 | DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
| `- error: cannot call value of non-function type 'Date'
140 | self?.performRender()
141 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:165:9: error: cannot find 'signal' in scope
163 | private func setupSignalHandlers() {
164 | // Ctrl+C: stop the run loop gracefully
165 | signal(SIGINT) { _ in
| `- error: cannot find 'signal' in scope
166 | AppRuntime.shared?.stop()
167 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:165:16: error: cannot find 'SIGINT' in scope
163 | private func setupSignalHandlers() {
164 | // Ctrl+C: stop the run loop gracefully
165 | signal(SIGINT) { _ in
| `- error: cannot find 'SIGINT' in scope
166 | AppRuntime.shared?.stop()
167 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:177:9: error: cannot find 'signal' in scope
175 | poller.start()
176 | #else
177 | signal(SIGWINCH) { _ in
| `- error: cannot find 'signal' in scope
178 | AppRuntime.shared?.scheduleRender()
179 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:177:16: error: cannot find 'SIGWINCH' in scope
175 | poller.start()
176 | #else
177 | signal(SIGWINCH) { _ in
| `- error: cannot find 'SIGWINCH' in scope
178 | AppRuntime.shared?.scheduleRender()
179 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:42:25: error: cannot find type 'DispatchSourceTimer' in scope
40 | /// are naturally serialized without additional locking.
41 | public final class CLITimer: @unchecked Sendable {
42 | private var source: DispatchSourceTimer?
| `- error: cannot find type 'DispatchSourceTimer' in scope
43 | private let interval: TimeInterval
44 | private let queue: DispatchQueue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:44:24: error: cannot find type 'DispatchQueue' in scope
42 | private var source: DispatchSourceTimer?
43 | private let interval: TimeInterval
44 | private let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
45 | private let lock = NSLock()
46 | /// Whether this timer is currently counted as a session redraw driver.
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:55:48: error: cannot find type 'DispatchQueue' in scope
53 | /// - queue: The dispatch queue on which `action` is called.
54 | /// Defaults to `.main`.
55 | public init(interval: TimeInterval, queue: DispatchQueue = .main) {
| `- error: cannot find type 'DispatchQueue' in scope
56 | self.interval = interval
57 | self.queue = queue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:68:25: error: cannot find 'DispatchSource' in scope
66 | public func start(action: @escaping @Sendable () -> Void) {
67 | stop()
68 | let newSource = DispatchSource.makeTimerSource(queue: queue)
| `- error: cannot find 'DispatchSource' in scope
69 | newSource.schedule(deadline: .now() + interval, repeating: interval)
70 | newSource.setEventHandler(handler: action)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:69:39: error: cannot call value of non-function type 'Date'
67 | stop()
68 | let newSource = DispatchSource.makeTimerSource(queue: queue)
69 | newSource.schedule(deadline: .now() + interval, repeating: interval)
| `- error: cannot call value of non-function type 'Date'
70 | newSource.setEventHandler(handler: action)
71 | newSource.resume()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:126:9: error: cannot find 'signal' in scope
124 | // The handler captures nothing so it converts to a C function pointer;
125 | // it hops to the main queue before touching stdout.
126 | signal(SIGWINCH) { _ in
| `- error: cannot find 'signal' in scope
127 | DispatchQueue.main.async {
128 | StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:126:16: error: cannot find 'SIGWINCH' in scope
124 | // The handler captures nothing so it converts to a C function pointer;
125 | // it hops to the main queue before touching stdout.
126 | signal(SIGWINCH) { _ in
| `- error: cannot find 'SIGWINCH' in scope
127 | DispatchQueue.main.async {
128 | StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:127:13: error: cannot find 'DispatchQueue' in scope
125 | // it hops to the main queue before touching stdout.
126 | signal(SIGWINCH) { _ in
127 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
128 | StateObserverRegistry.shared.notifyChange()
129 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:153:9: error: cannot find 'signal' in scope
151 | BodyRenderingStore.shared.resizePoller = nil
152 | #else
153 | signal(SIGWINCH, SIG_DFL)
| `- error: cannot find 'signal' in scope
154 | #endif
155 | KeyInputRouter.shared.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:153:16: error: cannot find 'SIGWINCH' in scope
151 | BodyRenderingStore.shared.resizePoller = nil
152 | #else
153 | signal(SIGWINCH, SIG_DFL)
| `- error: cannot find 'SIGWINCH' in scope
154 | #endif
155 | KeyInputRouter.shared.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:153:26: error: cannot find 'SIG_DFL' in scope
151 | BodyRenderingStore.shared.resizePoller = nil
152 | #else
153 | signal(SIGWINCH, SIG_DFL)
| `- error: cannot find 'SIG_DFL' in scope
154 | #endif
155 | KeyInputRouter.shared.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:99:32: error: cannot find type 'DispatchSourceTimer' in scope
97 | // "flick" feel as native scroll views. A new gesture cancels any in-
98 | // flight momentum and restarts it from the new velocity.
99 | private var momentumTimer: DispatchSourceTimer?
| `- error: cannot find type 'DispatchSourceTimer' in scope
100 | private var momentumScrollID: String?
101 | private var momentumVelocity: Double = 0
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:718:21: error: cannot find 'DispatchSource' in scope
716 | // effective scroll range without changing the per-event delta.
717 | momentumVelocity = velocity * 2.2
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
| `- error: cannot find 'DispatchSource' in scope
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:718:60: error: cannot infer contextual base in reference to member 'main'
716 | // effective scroll range without changing the per-event delta.
717 | momentumVelocity = velocity * 2.2
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
| `- error: cannot infer contextual base in reference to member 'main'
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:719:35: error: cannot call value of non-function type 'Date'
717 | momentumVelocity = velocity * 2.2
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
719 | timer.schedule(deadline: .now() + 0.08,
| `- error: cannot call value of non-function type 'Date'
720 | repeating: .milliseconds(16),
721 | leeway: .milliseconds(2))
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:720:36: error: cannot infer contextual base in reference to member 'milliseconds'
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
| `- error: cannot infer contextual base in reference to member 'milliseconds'
721 | leeway: .milliseconds(2))
722 | timer.setEventHandler { [weak self] in
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:721:33: error: cannot infer contextual base in reference to member 'milliseconds'
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
721 | leeway: .milliseconds(2))
| `- error: cannot infer contextual base in reference to member 'milliseconds'
722 | timer.setEventHandler { [weak self] in
723 | guard let self, self.momentumScrollID == id else { return }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:73:13: error: cannot find 'DispatchQueue' in scope
71 | // Schedule a redraw asynchronously so a focus change made *during* a
72 | // layout pass (e.g. from Tab syncing back) never re-enters rendering.
73 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
74 | AppRuntime.shared?.scheduleRender()
75 | StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:93:17: error: cannot find 'DispatchQueue' in scope
91 | nonmutating set {
92 | box.value = newValue
93 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
94 | AppRuntime.shared?.scheduleRender()
95 | StateObserverRegistry.shared.notifyChange()
[149/162] Compiling SwiftLI Bindable.swift
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:81:31: error: 'current' is unavailable: RunLoop is not available on WASI
79 | performRender()
80 |
81 | let runLoop = RunLoop.current
| `- error: 'current' is unavailable: RunLoop is not available on WASI
82 | while isRunning {
83 | // 100ms timeout keeps the loop responsive to signal-driven stops
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 | open class var current: RunLoop { get }}
| `- note: 'current' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:84:25: error: value of type 'RunLoop' has no member 'run'
82 | while isRunning {
83 | // 100ms timeout keeps the loop responsive to signal-driven stops
84 | _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
| `- error: value of type 'RunLoop' has no member 'run'
85 | }
86 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:84:36: error: cannot infer contextual base in reference to member 'default'
82 | while isRunning {
83 | // 100ms timeout keeps the loop responsive to signal-driven stops
84 | _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
| `- error: cannot infer contextual base in reference to member 'default'
85 | }
86 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:114:9: error: cannot find 'DispatchQueue' in scope
112 |
113 | // Dispatch to main so renders are serialized with timer callbacks.
114 | DispatchQueue.main.async { [weak self] in
| `- error: cannot find 'DispatchQueue' in scope
115 | self?.coalescedRender()
116 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:139:13: error: cannot find 'DispatchQueue' in scope
137 | // Too soon — try again after the remaining interval.
138 | let delay = minRenderInterval - elapsed
139 | DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
| `- error: cannot find 'DispatchQueue' in scope
140 | self?.performRender()
141 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:139:54: error: cannot call value of non-function type 'Date'
137 | // Too soon — try again after the remaining interval.
138 | let delay = minRenderInterval - elapsed
139 | DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
| `- error: cannot call value of non-function type 'Date'
140 | self?.performRender()
141 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:165:9: error: cannot find 'signal' in scope
163 | private func setupSignalHandlers() {
164 | // Ctrl+C: stop the run loop gracefully
165 | signal(SIGINT) { _ in
| `- error: cannot find 'signal' in scope
166 | AppRuntime.shared?.stop()
167 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:165:16: error: cannot find 'SIGINT' in scope
163 | private func setupSignalHandlers() {
164 | // Ctrl+C: stop the run loop gracefully
165 | signal(SIGINT) { _ in
| `- error: cannot find 'SIGINT' in scope
166 | AppRuntime.shared?.stop()
167 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:177:9: error: cannot find 'signal' in scope
175 | poller.start()
176 | #else
177 | signal(SIGWINCH) { _ in
| `- error: cannot find 'signal' in scope
178 | AppRuntime.shared?.scheduleRender()
179 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:177:16: error: cannot find 'SIGWINCH' in scope
175 | poller.start()
176 | #else
177 | signal(SIGWINCH) { _ in
| `- error: cannot find 'SIGWINCH' in scope
178 | AppRuntime.shared?.scheduleRender()
179 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:42:25: error: cannot find type 'DispatchSourceTimer' in scope
40 | /// are naturally serialized without additional locking.
41 | public final class CLITimer: @unchecked Sendable {
42 | private var source: DispatchSourceTimer?
| `- error: cannot find type 'DispatchSourceTimer' in scope
43 | private let interval: TimeInterval
44 | private let queue: DispatchQueue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:44:24: error: cannot find type 'DispatchQueue' in scope
42 | private var source: DispatchSourceTimer?
43 | private let interval: TimeInterval
44 | private let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
45 | private let lock = NSLock()
46 | /// Whether this timer is currently counted as a session redraw driver.
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:55:48: error: cannot find type 'DispatchQueue' in scope
53 | /// - queue: The dispatch queue on which `action` is called.
54 | /// Defaults to `.main`.
55 | public init(interval: TimeInterval, queue: DispatchQueue = .main) {
| `- error: cannot find type 'DispatchQueue' in scope
56 | self.interval = interval
57 | self.queue = queue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:68:25: error: cannot find 'DispatchSource' in scope
66 | public func start(action: @escaping @Sendable () -> Void) {
67 | stop()
68 | let newSource = DispatchSource.makeTimerSource(queue: queue)
| `- error: cannot find 'DispatchSource' in scope
69 | newSource.schedule(deadline: .now() + interval, repeating: interval)
70 | newSource.setEventHandler(handler: action)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:69:39: error: cannot call value of non-function type 'Date'
67 | stop()
68 | let newSource = DispatchSource.makeTimerSource(queue: queue)
69 | newSource.schedule(deadline: .now() + interval, repeating: interval)
| `- error: cannot call value of non-function type 'Date'
70 | newSource.setEventHandler(handler: action)
71 | newSource.resume()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:126:9: error: cannot find 'signal' in scope
124 | // The handler captures nothing so it converts to a C function pointer;
125 | // it hops to the main queue before touching stdout.
126 | signal(SIGWINCH) { _ in
| `- error: cannot find 'signal' in scope
127 | DispatchQueue.main.async {
128 | StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:126:16: error: cannot find 'SIGWINCH' in scope
124 | // The handler captures nothing so it converts to a C function pointer;
125 | // it hops to the main queue before touching stdout.
126 | signal(SIGWINCH) { _ in
| `- error: cannot find 'SIGWINCH' in scope
127 | DispatchQueue.main.async {
128 | StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:127:13: error: cannot find 'DispatchQueue' in scope
125 | // it hops to the main queue before touching stdout.
126 | signal(SIGWINCH) { _ in
127 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
128 | StateObserverRegistry.shared.notifyChange()
129 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:153:9: error: cannot find 'signal' in scope
151 | BodyRenderingStore.shared.resizePoller = nil
152 | #else
153 | signal(SIGWINCH, SIG_DFL)
| `- error: cannot find 'signal' in scope
154 | #endif
155 | KeyInputRouter.shared.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:153:16: error: cannot find 'SIGWINCH' in scope
151 | BodyRenderingStore.shared.resizePoller = nil
152 | #else
153 | signal(SIGWINCH, SIG_DFL)
| `- error: cannot find 'SIGWINCH' in scope
154 | #endif
155 | KeyInputRouter.shared.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:153:26: error: cannot find 'SIG_DFL' in scope
151 | BodyRenderingStore.shared.resizePoller = nil
152 | #else
153 | signal(SIGWINCH, SIG_DFL)
| `- error: cannot find 'SIG_DFL' in scope
154 | #endif
155 | KeyInputRouter.shared.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:99:32: error: cannot find type 'DispatchSourceTimer' in scope
97 | // "flick" feel as native scroll views. A new gesture cancels any in-
98 | // flight momentum and restarts it from the new velocity.
99 | private var momentumTimer: DispatchSourceTimer?
| `- error: cannot find type 'DispatchSourceTimer' in scope
100 | private var momentumScrollID: String?
101 | private var momentumVelocity: Double = 0
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:718:21: error: cannot find 'DispatchSource' in scope
716 | // effective scroll range without changing the per-event delta.
717 | momentumVelocity = velocity * 2.2
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
| `- error: cannot find 'DispatchSource' in scope
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:718:60: error: cannot infer contextual base in reference to member 'main'
716 | // effective scroll range without changing the per-event delta.
717 | momentumVelocity = velocity * 2.2
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
| `- error: cannot infer contextual base in reference to member 'main'
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:719:35: error: cannot call value of non-function type 'Date'
717 | momentumVelocity = velocity * 2.2
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
719 | timer.schedule(deadline: .now() + 0.08,
| `- error: cannot call value of non-function type 'Date'
720 | repeating: .milliseconds(16),
721 | leeway: .milliseconds(2))
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:720:36: error: cannot infer contextual base in reference to member 'milliseconds'
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
| `- error: cannot infer contextual base in reference to member 'milliseconds'
721 | leeway: .milliseconds(2))
722 | timer.setEventHandler { [weak self] in
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:721:33: error: cannot infer contextual base in reference to member 'milliseconds'
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
721 | leeway: .milliseconds(2))
| `- error: cannot infer contextual base in reference to member 'milliseconds'
722 | timer.setEventHandler { [weak self] in
723 | guard let self, self.momentumScrollID == id else { return }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:73:13: error: cannot find 'DispatchQueue' in scope
71 | // Schedule a redraw asynchronously so a focus change made *during* a
72 | // layout pass (e.g. from Tab syncing back) never re-enters rendering.
73 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
74 | AppRuntime.shared?.scheduleRender()
75 | StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:93:17: error: cannot find 'DispatchQueue' in scope
91 | nonmutating set {
92 | box.value = newValue
93 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
94 | AppRuntime.shared?.scheduleRender()
95 | StateObserverRegistry.shared.notifyChange()
[150/162] Compiling SwiftLI Binding.swift
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:81:31: error: 'current' is unavailable: RunLoop is not available on WASI
79 | performRender()
80 |
81 | let runLoop = RunLoop.current
| `- error: 'current' is unavailable: RunLoop is not available on WASI
82 | while isRunning {
83 | // 100ms timeout keeps the loop responsive to signal-driven stops
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 | open class var current: RunLoop { get }}
| `- note: 'current' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:84:25: error: value of type 'RunLoop' has no member 'run'
82 | while isRunning {
83 | // 100ms timeout keeps the loop responsive to signal-driven stops
84 | _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
| `- error: value of type 'RunLoop' has no member 'run'
85 | }
86 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:84:36: error: cannot infer contextual base in reference to member 'default'
82 | while isRunning {
83 | // 100ms timeout keeps the loop responsive to signal-driven stops
84 | _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
| `- error: cannot infer contextual base in reference to member 'default'
85 | }
86 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:114:9: error: cannot find 'DispatchQueue' in scope
112 |
113 | // Dispatch to main so renders are serialized with timer callbacks.
114 | DispatchQueue.main.async { [weak self] in
| `- error: cannot find 'DispatchQueue' in scope
115 | self?.coalescedRender()
116 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:139:13: error: cannot find 'DispatchQueue' in scope
137 | // Too soon — try again after the remaining interval.
138 | let delay = minRenderInterval - elapsed
139 | DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
| `- error: cannot find 'DispatchQueue' in scope
140 | self?.performRender()
141 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:139:54: error: cannot call value of non-function type 'Date'
137 | // Too soon — try again after the remaining interval.
138 | let delay = minRenderInterval - elapsed
139 | DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
| `- error: cannot call value of non-function type 'Date'
140 | self?.performRender()
141 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:165:9: error: cannot find 'signal' in scope
163 | private func setupSignalHandlers() {
164 | // Ctrl+C: stop the run loop gracefully
165 | signal(SIGINT) { _ in
| `- error: cannot find 'signal' in scope
166 | AppRuntime.shared?.stop()
167 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:165:16: error: cannot find 'SIGINT' in scope
163 | private func setupSignalHandlers() {
164 | // Ctrl+C: stop the run loop gracefully
165 | signal(SIGINT) { _ in
| `- error: cannot find 'SIGINT' in scope
166 | AppRuntime.shared?.stop()
167 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:177:9: error: cannot find 'signal' in scope
175 | poller.start()
176 | #else
177 | signal(SIGWINCH) { _ in
| `- error: cannot find 'signal' in scope
178 | AppRuntime.shared?.scheduleRender()
179 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:177:16: error: cannot find 'SIGWINCH' in scope
175 | poller.start()
176 | #else
177 | signal(SIGWINCH) { _ in
| `- error: cannot find 'SIGWINCH' in scope
178 | AppRuntime.shared?.scheduleRender()
179 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:42:25: error: cannot find type 'DispatchSourceTimer' in scope
40 | /// are naturally serialized without additional locking.
41 | public final class CLITimer: @unchecked Sendable {
42 | private var source: DispatchSourceTimer?
| `- error: cannot find type 'DispatchSourceTimer' in scope
43 | private let interval: TimeInterval
44 | private let queue: DispatchQueue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:44:24: error: cannot find type 'DispatchQueue' in scope
42 | private var source: DispatchSourceTimer?
43 | private let interval: TimeInterval
44 | private let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
45 | private let lock = NSLock()
46 | /// Whether this timer is currently counted as a session redraw driver.
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:55:48: error: cannot find type 'DispatchQueue' in scope
53 | /// - queue: The dispatch queue on which `action` is called.
54 | /// Defaults to `.main`.
55 | public init(interval: TimeInterval, queue: DispatchQueue = .main) {
| `- error: cannot find type 'DispatchQueue' in scope
56 | self.interval = interval
57 | self.queue = queue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:68:25: error: cannot find 'DispatchSource' in scope
66 | public func start(action: @escaping @Sendable () -> Void) {
67 | stop()
68 | let newSource = DispatchSource.makeTimerSource(queue: queue)
| `- error: cannot find 'DispatchSource' in scope
69 | newSource.schedule(deadline: .now() + interval, repeating: interval)
70 | newSource.setEventHandler(handler: action)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:69:39: error: cannot call value of non-function type 'Date'
67 | stop()
68 | let newSource = DispatchSource.makeTimerSource(queue: queue)
69 | newSource.schedule(deadline: .now() + interval, repeating: interval)
| `- error: cannot call value of non-function type 'Date'
70 | newSource.setEventHandler(handler: action)
71 | newSource.resume()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:126:9: error: cannot find 'signal' in scope
124 | // The handler captures nothing so it converts to a C function pointer;
125 | // it hops to the main queue before touching stdout.
126 | signal(SIGWINCH) { _ in
| `- error: cannot find 'signal' in scope
127 | DispatchQueue.main.async {
128 | StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:126:16: error: cannot find 'SIGWINCH' in scope
124 | // The handler captures nothing so it converts to a C function pointer;
125 | // it hops to the main queue before touching stdout.
126 | signal(SIGWINCH) { _ in
| `- error: cannot find 'SIGWINCH' in scope
127 | DispatchQueue.main.async {
128 | StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:127:13: error: cannot find 'DispatchQueue' in scope
125 | // it hops to the main queue before touching stdout.
126 | signal(SIGWINCH) { _ in
127 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
128 | StateObserverRegistry.shared.notifyChange()
129 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:153:9: error: cannot find 'signal' in scope
151 | BodyRenderingStore.shared.resizePoller = nil
152 | #else
153 | signal(SIGWINCH, SIG_DFL)
| `- error: cannot find 'signal' in scope
154 | #endif
155 | KeyInputRouter.shared.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:153:16: error: cannot find 'SIGWINCH' in scope
151 | BodyRenderingStore.shared.resizePoller = nil
152 | #else
153 | signal(SIGWINCH, SIG_DFL)
| `- error: cannot find 'SIGWINCH' in scope
154 | #endif
155 | KeyInputRouter.shared.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:153:26: error: cannot find 'SIG_DFL' in scope
151 | BodyRenderingStore.shared.resizePoller = nil
152 | #else
153 | signal(SIGWINCH, SIG_DFL)
| `- error: cannot find 'SIG_DFL' in scope
154 | #endif
155 | KeyInputRouter.shared.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:99:32: error: cannot find type 'DispatchSourceTimer' in scope
97 | // "flick" feel as native scroll views. A new gesture cancels any in-
98 | // flight momentum and restarts it from the new velocity.
99 | private var momentumTimer: DispatchSourceTimer?
| `- error: cannot find type 'DispatchSourceTimer' in scope
100 | private var momentumScrollID: String?
101 | private var momentumVelocity: Double = 0
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:718:21: error: cannot find 'DispatchSource' in scope
716 | // effective scroll range without changing the per-event delta.
717 | momentumVelocity = velocity * 2.2
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
| `- error: cannot find 'DispatchSource' in scope
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:718:60: error: cannot infer contextual base in reference to member 'main'
716 | // effective scroll range without changing the per-event delta.
717 | momentumVelocity = velocity * 2.2
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
| `- error: cannot infer contextual base in reference to member 'main'
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:719:35: error: cannot call value of non-function type 'Date'
717 | momentumVelocity = velocity * 2.2
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
719 | timer.schedule(deadline: .now() + 0.08,
| `- error: cannot call value of non-function type 'Date'
720 | repeating: .milliseconds(16),
721 | leeway: .milliseconds(2))
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:720:36: error: cannot infer contextual base in reference to member 'milliseconds'
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
| `- error: cannot infer contextual base in reference to member 'milliseconds'
721 | leeway: .milliseconds(2))
722 | timer.setEventHandler { [weak self] in
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:721:33: error: cannot infer contextual base in reference to member 'milliseconds'
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
721 | leeway: .milliseconds(2))
| `- error: cannot infer contextual base in reference to member 'milliseconds'
722 | timer.setEventHandler { [weak self] in
723 | guard let self, self.momentumScrollID == id else { return }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:73:13: error: cannot find 'DispatchQueue' in scope
71 | // Schedule a redraw asynchronously so a focus change made *during* a
72 | // layout pass (e.g. from Tab syncing back) never re-enters rendering.
73 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
74 | AppRuntime.shared?.scheduleRender()
75 | StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:93:17: error: cannot find 'DispatchQueue' in scope
91 | nonmutating set {
92 | box.value = newValue
93 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
94 | AppRuntime.shared?.scheduleRender()
95 | StateObserverRegistry.shared.notifyChange()
[151/162] Compiling SwiftLI CLIApp.swift
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:81:31: error: 'current' is unavailable: RunLoop is not available on WASI
79 | performRender()
80 |
81 | let runLoop = RunLoop.current
| `- error: 'current' is unavailable: RunLoop is not available on WASI
82 | while isRunning {
83 | // 100ms timeout keeps the loop responsive to signal-driven stops
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 | open class var current: RunLoop { get }}
| `- note: 'current' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:84:25: error: value of type 'RunLoop' has no member 'run'
82 | while isRunning {
83 | // 100ms timeout keeps the loop responsive to signal-driven stops
84 | _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
| `- error: value of type 'RunLoop' has no member 'run'
85 | }
86 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:84:36: error: cannot infer contextual base in reference to member 'default'
82 | while isRunning {
83 | // 100ms timeout keeps the loop responsive to signal-driven stops
84 | _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
| `- error: cannot infer contextual base in reference to member 'default'
85 | }
86 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:114:9: error: cannot find 'DispatchQueue' in scope
112 |
113 | // Dispatch to main so renders are serialized with timer callbacks.
114 | DispatchQueue.main.async { [weak self] in
| `- error: cannot find 'DispatchQueue' in scope
115 | self?.coalescedRender()
116 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:139:13: error: cannot find 'DispatchQueue' in scope
137 | // Too soon — try again after the remaining interval.
138 | let delay = minRenderInterval - elapsed
139 | DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
| `- error: cannot find 'DispatchQueue' in scope
140 | self?.performRender()
141 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:139:54: error: cannot call value of non-function type 'Date'
137 | // Too soon — try again after the remaining interval.
138 | let delay = minRenderInterval - elapsed
139 | DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
| `- error: cannot call value of non-function type 'Date'
140 | self?.performRender()
141 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:165:9: error: cannot find 'signal' in scope
163 | private func setupSignalHandlers() {
164 | // Ctrl+C: stop the run loop gracefully
165 | signal(SIGINT) { _ in
| `- error: cannot find 'signal' in scope
166 | AppRuntime.shared?.stop()
167 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:165:16: error: cannot find 'SIGINT' in scope
163 | private func setupSignalHandlers() {
164 | // Ctrl+C: stop the run loop gracefully
165 | signal(SIGINT) { _ in
| `- error: cannot find 'SIGINT' in scope
166 | AppRuntime.shared?.stop()
167 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:177:9: error: cannot find 'signal' in scope
175 | poller.start()
176 | #else
177 | signal(SIGWINCH) { _ in
| `- error: cannot find 'signal' in scope
178 | AppRuntime.shared?.scheduleRender()
179 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:177:16: error: cannot find 'SIGWINCH' in scope
175 | poller.start()
176 | #else
177 | signal(SIGWINCH) { _ in
| `- error: cannot find 'SIGWINCH' in scope
178 | AppRuntime.shared?.scheduleRender()
179 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:42:25: error: cannot find type 'DispatchSourceTimer' in scope
40 | /// are naturally serialized without additional locking.
41 | public final class CLITimer: @unchecked Sendable {
42 | private var source: DispatchSourceTimer?
| `- error: cannot find type 'DispatchSourceTimer' in scope
43 | private let interval: TimeInterval
44 | private let queue: DispatchQueue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:44:24: error: cannot find type 'DispatchQueue' in scope
42 | private var source: DispatchSourceTimer?
43 | private let interval: TimeInterval
44 | private let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
45 | private let lock = NSLock()
46 | /// Whether this timer is currently counted as a session redraw driver.
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:55:48: error: cannot find type 'DispatchQueue' in scope
53 | /// - queue: The dispatch queue on which `action` is called.
54 | /// Defaults to `.main`.
55 | public init(interval: TimeInterval, queue: DispatchQueue = .main) {
| `- error: cannot find type 'DispatchQueue' in scope
56 | self.interval = interval
57 | self.queue = queue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:68:25: error: cannot find 'DispatchSource' in scope
66 | public func start(action: @escaping @Sendable () -> Void) {
67 | stop()
68 | let newSource = DispatchSource.makeTimerSource(queue: queue)
| `- error: cannot find 'DispatchSource' in scope
69 | newSource.schedule(deadline: .now() + interval, repeating: interval)
70 | newSource.setEventHandler(handler: action)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:69:39: error: cannot call value of non-function type 'Date'
67 | stop()
68 | let newSource = DispatchSource.makeTimerSource(queue: queue)
69 | newSource.schedule(deadline: .now() + interval, repeating: interval)
| `- error: cannot call value of non-function type 'Date'
70 | newSource.setEventHandler(handler: action)
71 | newSource.resume()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:126:9: error: cannot find 'signal' in scope
124 | // The handler captures nothing so it converts to a C function pointer;
125 | // it hops to the main queue before touching stdout.
126 | signal(SIGWINCH) { _ in
| `- error: cannot find 'signal' in scope
127 | DispatchQueue.main.async {
128 | StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:126:16: error: cannot find 'SIGWINCH' in scope
124 | // The handler captures nothing so it converts to a C function pointer;
125 | // it hops to the main queue before touching stdout.
126 | signal(SIGWINCH) { _ in
| `- error: cannot find 'SIGWINCH' in scope
127 | DispatchQueue.main.async {
128 | StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:127:13: error: cannot find 'DispatchQueue' in scope
125 | // it hops to the main queue before touching stdout.
126 | signal(SIGWINCH) { _ in
127 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
128 | StateObserverRegistry.shared.notifyChange()
129 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:153:9: error: cannot find 'signal' in scope
151 | BodyRenderingStore.shared.resizePoller = nil
152 | #else
153 | signal(SIGWINCH, SIG_DFL)
| `- error: cannot find 'signal' in scope
154 | #endif
155 | KeyInputRouter.shared.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:153:16: error: cannot find 'SIGWINCH' in scope
151 | BodyRenderingStore.shared.resizePoller = nil
152 | #else
153 | signal(SIGWINCH, SIG_DFL)
| `- error: cannot find 'SIGWINCH' in scope
154 | #endif
155 | KeyInputRouter.shared.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:153:26: error: cannot find 'SIG_DFL' in scope
151 | BodyRenderingStore.shared.resizePoller = nil
152 | #else
153 | signal(SIGWINCH, SIG_DFL)
| `- error: cannot find 'SIG_DFL' in scope
154 | #endif
155 | KeyInputRouter.shared.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:99:32: error: cannot find type 'DispatchSourceTimer' in scope
97 | // "flick" feel as native scroll views. A new gesture cancels any in-
98 | // flight momentum and restarts it from the new velocity.
99 | private var momentumTimer: DispatchSourceTimer?
| `- error: cannot find type 'DispatchSourceTimer' in scope
100 | private var momentumScrollID: String?
101 | private var momentumVelocity: Double = 0
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:718:21: error: cannot find 'DispatchSource' in scope
716 | // effective scroll range without changing the per-event delta.
717 | momentumVelocity = velocity * 2.2
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
| `- error: cannot find 'DispatchSource' in scope
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:718:60: error: cannot infer contextual base in reference to member 'main'
716 | // effective scroll range without changing the per-event delta.
717 | momentumVelocity = velocity * 2.2
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
| `- error: cannot infer contextual base in reference to member 'main'
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:719:35: error: cannot call value of non-function type 'Date'
717 | momentumVelocity = velocity * 2.2
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
719 | timer.schedule(deadline: .now() + 0.08,
| `- error: cannot call value of non-function type 'Date'
720 | repeating: .milliseconds(16),
721 | leeway: .milliseconds(2))
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:720:36: error: cannot infer contextual base in reference to member 'milliseconds'
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
| `- error: cannot infer contextual base in reference to member 'milliseconds'
721 | leeway: .milliseconds(2))
722 | timer.setEventHandler { [weak self] in
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:721:33: error: cannot infer contextual base in reference to member 'milliseconds'
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
721 | leeway: .milliseconds(2))
| `- error: cannot infer contextual base in reference to member 'milliseconds'
722 | timer.setEventHandler { [weak self] in
723 | guard let self, self.momentumScrollID == id else { return }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:73:13: error: cannot find 'DispatchQueue' in scope
71 | // Schedule a redraw asynchronously so a focus change made *during* a
72 | // layout pass (e.g. from Tab syncing back) never re-enters rendering.
73 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
74 | AppRuntime.shared?.scheduleRender()
75 | StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:93:17: error: cannot find 'DispatchQueue' in scope
91 | nonmutating set {
92 | box.value = newValue
93 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
94 | AppRuntime.shared?.scheduleRender()
95 | StateObserverRegistry.shared.notifyChange()
[152/162] Compiling SwiftLI CLITimer.swift
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:81:31: error: 'current' is unavailable: RunLoop is not available on WASI
79 | performRender()
80 |
81 | let runLoop = RunLoop.current
| `- error: 'current' is unavailable: RunLoop is not available on WASI
82 | while isRunning {
83 | // 100ms timeout keeps the loop responsive to signal-driven stops
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 | open class var current: RunLoop { get }}
| `- note: 'current' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:84:25: error: value of type 'RunLoop' has no member 'run'
82 | while isRunning {
83 | // 100ms timeout keeps the loop responsive to signal-driven stops
84 | _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
| `- error: value of type 'RunLoop' has no member 'run'
85 | }
86 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:84:36: error: cannot infer contextual base in reference to member 'default'
82 | while isRunning {
83 | // 100ms timeout keeps the loop responsive to signal-driven stops
84 | _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
| `- error: cannot infer contextual base in reference to member 'default'
85 | }
86 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:114:9: error: cannot find 'DispatchQueue' in scope
112 |
113 | // Dispatch to main so renders are serialized with timer callbacks.
114 | DispatchQueue.main.async { [weak self] in
| `- error: cannot find 'DispatchQueue' in scope
115 | self?.coalescedRender()
116 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:139:13: error: cannot find 'DispatchQueue' in scope
137 | // Too soon — try again after the remaining interval.
138 | let delay = minRenderInterval - elapsed
139 | DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
| `- error: cannot find 'DispatchQueue' in scope
140 | self?.performRender()
141 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:139:54: error: cannot call value of non-function type 'Date'
137 | // Too soon — try again after the remaining interval.
138 | let delay = minRenderInterval - elapsed
139 | DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
| `- error: cannot call value of non-function type 'Date'
140 | self?.performRender()
141 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:165:9: error: cannot find 'signal' in scope
163 | private func setupSignalHandlers() {
164 | // Ctrl+C: stop the run loop gracefully
165 | signal(SIGINT) { _ in
| `- error: cannot find 'signal' in scope
166 | AppRuntime.shared?.stop()
167 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:165:16: error: cannot find 'SIGINT' in scope
163 | private func setupSignalHandlers() {
164 | // Ctrl+C: stop the run loop gracefully
165 | signal(SIGINT) { _ in
| `- error: cannot find 'SIGINT' in scope
166 | AppRuntime.shared?.stop()
167 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:177:9: error: cannot find 'signal' in scope
175 | poller.start()
176 | #else
177 | signal(SIGWINCH) { _ in
| `- error: cannot find 'signal' in scope
178 | AppRuntime.shared?.scheduleRender()
179 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:177:16: error: cannot find 'SIGWINCH' in scope
175 | poller.start()
176 | #else
177 | signal(SIGWINCH) { _ in
| `- error: cannot find 'SIGWINCH' in scope
178 | AppRuntime.shared?.scheduleRender()
179 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:42:25: error: cannot find type 'DispatchSourceTimer' in scope
40 | /// are naturally serialized without additional locking.
41 | public final class CLITimer: @unchecked Sendable {
42 | private var source: DispatchSourceTimer?
| `- error: cannot find type 'DispatchSourceTimer' in scope
43 | private let interval: TimeInterval
44 | private let queue: DispatchQueue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:44:24: error: cannot find type 'DispatchQueue' in scope
42 | private var source: DispatchSourceTimer?
43 | private let interval: TimeInterval
44 | private let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
45 | private let lock = NSLock()
46 | /// Whether this timer is currently counted as a session redraw driver.
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:55:48: error: cannot find type 'DispatchQueue' in scope
53 | /// - queue: The dispatch queue on which `action` is called.
54 | /// Defaults to `.main`.
55 | public init(interval: TimeInterval, queue: DispatchQueue = .main) {
| `- error: cannot find type 'DispatchQueue' in scope
56 | self.interval = interval
57 | self.queue = queue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:68:25: error: cannot find 'DispatchSource' in scope
66 | public func start(action: @escaping @Sendable () -> Void) {
67 | stop()
68 | let newSource = DispatchSource.makeTimerSource(queue: queue)
| `- error: cannot find 'DispatchSource' in scope
69 | newSource.schedule(deadline: .now() + interval, repeating: interval)
70 | newSource.setEventHandler(handler: action)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:69:39: error: cannot call value of non-function type 'Date'
67 | stop()
68 | let newSource = DispatchSource.makeTimerSource(queue: queue)
69 | newSource.schedule(deadline: .now() + interval, repeating: interval)
| `- error: cannot call value of non-function type 'Date'
70 | newSource.setEventHandler(handler: action)
71 | newSource.resume()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:126:9: error: cannot find 'signal' in scope
124 | // The handler captures nothing so it converts to a C function pointer;
125 | // it hops to the main queue before touching stdout.
126 | signal(SIGWINCH) { _ in
| `- error: cannot find 'signal' in scope
127 | DispatchQueue.main.async {
128 | StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:126:16: error: cannot find 'SIGWINCH' in scope
124 | // The handler captures nothing so it converts to a C function pointer;
125 | // it hops to the main queue before touching stdout.
126 | signal(SIGWINCH) { _ in
| `- error: cannot find 'SIGWINCH' in scope
127 | DispatchQueue.main.async {
128 | StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:127:13: error: cannot find 'DispatchQueue' in scope
125 | // it hops to the main queue before touching stdout.
126 | signal(SIGWINCH) { _ in
127 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
128 | StateObserverRegistry.shared.notifyChange()
129 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:153:9: error: cannot find 'signal' in scope
151 | BodyRenderingStore.shared.resizePoller = nil
152 | #else
153 | signal(SIGWINCH, SIG_DFL)
| `- error: cannot find 'signal' in scope
154 | #endif
155 | KeyInputRouter.shared.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:153:16: error: cannot find 'SIGWINCH' in scope
151 | BodyRenderingStore.shared.resizePoller = nil
152 | #else
153 | signal(SIGWINCH, SIG_DFL)
| `- error: cannot find 'SIGWINCH' in scope
154 | #endif
155 | KeyInputRouter.shared.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:153:26: error: cannot find 'SIG_DFL' in scope
151 | BodyRenderingStore.shared.resizePoller = nil
152 | #else
153 | signal(SIGWINCH, SIG_DFL)
| `- error: cannot find 'SIG_DFL' in scope
154 | #endif
155 | KeyInputRouter.shared.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:99:32: error: cannot find type 'DispatchSourceTimer' in scope
97 | // "flick" feel as native scroll views. A new gesture cancels any in-
98 | // flight momentum and restarts it from the new velocity.
99 | private var momentumTimer: DispatchSourceTimer?
| `- error: cannot find type 'DispatchSourceTimer' in scope
100 | private var momentumScrollID: String?
101 | private var momentumVelocity: Double = 0
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:718:21: error: cannot find 'DispatchSource' in scope
716 | // effective scroll range without changing the per-event delta.
717 | momentumVelocity = velocity * 2.2
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
| `- error: cannot find 'DispatchSource' in scope
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:718:60: error: cannot infer contextual base in reference to member 'main'
716 | // effective scroll range without changing the per-event delta.
717 | momentumVelocity = velocity * 2.2
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
| `- error: cannot infer contextual base in reference to member 'main'
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:719:35: error: cannot call value of non-function type 'Date'
717 | momentumVelocity = velocity * 2.2
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
719 | timer.schedule(deadline: .now() + 0.08,
| `- error: cannot call value of non-function type 'Date'
720 | repeating: .milliseconds(16),
721 | leeway: .milliseconds(2))
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:720:36: error: cannot infer contextual base in reference to member 'milliseconds'
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
| `- error: cannot infer contextual base in reference to member 'milliseconds'
721 | leeway: .milliseconds(2))
722 | timer.setEventHandler { [weak self] in
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:721:33: error: cannot infer contextual base in reference to member 'milliseconds'
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
721 | leeway: .milliseconds(2))
| `- error: cannot infer contextual base in reference to member 'milliseconds'
722 | timer.setEventHandler { [weak self] in
723 | guard let self, self.momentumScrollID == id else { return }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:73:13: error: cannot find 'DispatchQueue' in scope
71 | // Schedule a redraw asynchronously so a focus change made *during* a
72 | // layout pass (e.g. from Tab syncing back) never re-enters rendering.
73 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
74 | AppRuntime.shared?.scheduleRender()
75 | StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:93:17: error: cannot find 'DispatchQueue' in scope
91 | nonmutating set {
92 | box.value = newValue
93 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
94 | AppRuntime.shared?.scheduleRender()
95 | StateObserverRegistry.shared.notifyChange()
[153/162] Compiling SwiftLI Command.swift
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:81:31: error: 'current' is unavailable: RunLoop is not available on WASI
79 | performRender()
80 |
81 | let runLoop = RunLoop.current
| `- error: 'current' is unavailable: RunLoop is not available on WASI
82 | while isRunning {
83 | // 100ms timeout keeps the loop responsive to signal-driven stops
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 | open class var current: RunLoop { get }}
| `- note: 'current' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:84:25: error: value of type 'RunLoop' has no member 'run'
82 | while isRunning {
83 | // 100ms timeout keeps the loop responsive to signal-driven stops
84 | _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
| `- error: value of type 'RunLoop' has no member 'run'
85 | }
86 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:84:36: error: cannot infer contextual base in reference to member 'default'
82 | while isRunning {
83 | // 100ms timeout keeps the loop responsive to signal-driven stops
84 | _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
| `- error: cannot infer contextual base in reference to member 'default'
85 | }
86 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:114:9: error: cannot find 'DispatchQueue' in scope
112 |
113 | // Dispatch to main so renders are serialized with timer callbacks.
114 | DispatchQueue.main.async { [weak self] in
| `- error: cannot find 'DispatchQueue' in scope
115 | self?.coalescedRender()
116 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:139:13: error: cannot find 'DispatchQueue' in scope
137 | // Too soon — try again after the remaining interval.
138 | let delay = minRenderInterval - elapsed
139 | DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
| `- error: cannot find 'DispatchQueue' in scope
140 | self?.performRender()
141 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:139:54: error: cannot call value of non-function type 'Date'
137 | // Too soon — try again after the remaining interval.
138 | let delay = minRenderInterval - elapsed
139 | DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
| `- error: cannot call value of non-function type 'Date'
140 | self?.performRender()
141 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:165:9: error: cannot find 'signal' in scope
163 | private func setupSignalHandlers() {
164 | // Ctrl+C: stop the run loop gracefully
165 | signal(SIGINT) { _ in
| `- error: cannot find 'signal' in scope
166 | AppRuntime.shared?.stop()
167 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:165:16: error: cannot find 'SIGINT' in scope
163 | private func setupSignalHandlers() {
164 | // Ctrl+C: stop the run loop gracefully
165 | signal(SIGINT) { _ in
| `- error: cannot find 'SIGINT' in scope
166 | AppRuntime.shared?.stop()
167 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:177:9: error: cannot find 'signal' in scope
175 | poller.start()
176 | #else
177 | signal(SIGWINCH) { _ in
| `- error: cannot find 'signal' in scope
178 | AppRuntime.shared?.scheduleRender()
179 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:177:16: error: cannot find 'SIGWINCH' in scope
175 | poller.start()
176 | #else
177 | signal(SIGWINCH) { _ in
| `- error: cannot find 'SIGWINCH' in scope
178 | AppRuntime.shared?.scheduleRender()
179 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:42:25: error: cannot find type 'DispatchSourceTimer' in scope
40 | /// are naturally serialized without additional locking.
41 | public final class CLITimer: @unchecked Sendable {
42 | private var source: DispatchSourceTimer?
| `- error: cannot find type 'DispatchSourceTimer' in scope
43 | private let interval: TimeInterval
44 | private let queue: DispatchQueue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:44:24: error: cannot find type 'DispatchQueue' in scope
42 | private var source: DispatchSourceTimer?
43 | private let interval: TimeInterval
44 | private let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
45 | private let lock = NSLock()
46 | /// Whether this timer is currently counted as a session redraw driver.
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:55:48: error: cannot find type 'DispatchQueue' in scope
53 | /// - queue: The dispatch queue on which `action` is called.
54 | /// Defaults to `.main`.
55 | public init(interval: TimeInterval, queue: DispatchQueue = .main) {
| `- error: cannot find type 'DispatchQueue' in scope
56 | self.interval = interval
57 | self.queue = queue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:68:25: error: cannot find 'DispatchSource' in scope
66 | public func start(action: @escaping @Sendable () -> Void) {
67 | stop()
68 | let newSource = DispatchSource.makeTimerSource(queue: queue)
| `- error: cannot find 'DispatchSource' in scope
69 | newSource.schedule(deadline: .now() + interval, repeating: interval)
70 | newSource.setEventHandler(handler: action)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:69:39: error: cannot call value of non-function type 'Date'
67 | stop()
68 | let newSource = DispatchSource.makeTimerSource(queue: queue)
69 | newSource.schedule(deadline: .now() + interval, repeating: interval)
| `- error: cannot call value of non-function type 'Date'
70 | newSource.setEventHandler(handler: action)
71 | newSource.resume()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:126:9: error: cannot find 'signal' in scope
124 | // The handler captures nothing so it converts to a C function pointer;
125 | // it hops to the main queue before touching stdout.
126 | signal(SIGWINCH) { _ in
| `- error: cannot find 'signal' in scope
127 | DispatchQueue.main.async {
128 | StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:126:16: error: cannot find 'SIGWINCH' in scope
124 | // The handler captures nothing so it converts to a C function pointer;
125 | // it hops to the main queue before touching stdout.
126 | signal(SIGWINCH) { _ in
| `- error: cannot find 'SIGWINCH' in scope
127 | DispatchQueue.main.async {
128 | StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:127:13: error: cannot find 'DispatchQueue' in scope
125 | // it hops to the main queue before touching stdout.
126 | signal(SIGWINCH) { _ in
127 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
128 | StateObserverRegistry.shared.notifyChange()
129 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:153:9: error: cannot find 'signal' in scope
151 | BodyRenderingStore.shared.resizePoller = nil
152 | #else
153 | signal(SIGWINCH, SIG_DFL)
| `- error: cannot find 'signal' in scope
154 | #endif
155 | KeyInputRouter.shared.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:153:16: error: cannot find 'SIGWINCH' in scope
151 | BodyRenderingStore.shared.resizePoller = nil
152 | #else
153 | signal(SIGWINCH, SIG_DFL)
| `- error: cannot find 'SIGWINCH' in scope
154 | #endif
155 | KeyInputRouter.shared.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:153:26: error: cannot find 'SIG_DFL' in scope
151 | BodyRenderingStore.shared.resizePoller = nil
152 | #else
153 | signal(SIGWINCH, SIG_DFL)
| `- error: cannot find 'SIG_DFL' in scope
154 | #endif
155 | KeyInputRouter.shared.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:99:32: error: cannot find type 'DispatchSourceTimer' in scope
97 | // "flick" feel as native scroll views. A new gesture cancels any in-
98 | // flight momentum and restarts it from the new velocity.
99 | private var momentumTimer: DispatchSourceTimer?
| `- error: cannot find type 'DispatchSourceTimer' in scope
100 | private var momentumScrollID: String?
101 | private var momentumVelocity: Double = 0
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:718:21: error: cannot find 'DispatchSource' in scope
716 | // effective scroll range without changing the per-event delta.
717 | momentumVelocity = velocity * 2.2
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
| `- error: cannot find 'DispatchSource' in scope
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:718:60: error: cannot infer contextual base in reference to member 'main'
716 | // effective scroll range without changing the per-event delta.
717 | momentumVelocity = velocity * 2.2
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
| `- error: cannot infer contextual base in reference to member 'main'
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:719:35: error: cannot call value of non-function type 'Date'
717 | momentumVelocity = velocity * 2.2
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
719 | timer.schedule(deadline: .now() + 0.08,
| `- error: cannot call value of non-function type 'Date'
720 | repeating: .milliseconds(16),
721 | leeway: .milliseconds(2))
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:720:36: error: cannot infer contextual base in reference to member 'milliseconds'
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
| `- error: cannot infer contextual base in reference to member 'milliseconds'
721 | leeway: .milliseconds(2))
722 | timer.setEventHandler { [weak self] in
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:721:33: error: cannot infer contextual base in reference to member 'milliseconds'
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
721 | leeway: .milliseconds(2))
| `- error: cannot infer contextual base in reference to member 'milliseconds'
722 | timer.setEventHandler { [weak self] in
723 | guard let self, self.momentumScrollID == id else { return }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:73:13: error: cannot find 'DispatchQueue' in scope
71 | // Schedule a redraw asynchronously so a focus change made *during* a
72 | // layout pass (e.g. from Tab syncing back) never re-enters rendering.
73 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
74 | AppRuntime.shared?.scheduleRender()
75 | StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:93:17: error: cannot find 'DispatchQueue' in scope
91 | nonmutating set {
92 | box.value = newValue
93 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
94 | AppRuntime.shared?.scheduleRender()
95 | StateObserverRegistry.shared.notifyChange()
[154/162] Compiling SwiftLI CommandState.swift
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:81:31: error: 'current' is unavailable: RunLoop is not available on WASI
79 | performRender()
80 |
81 | let runLoop = RunLoop.current
| `- error: 'current' is unavailable: RunLoop is not available on WASI
82 | while isRunning {
83 | // 100ms timeout keeps the loop responsive to signal-driven stops
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 | open class var current: RunLoop { get }}
| `- note: 'current' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:84:25: error: value of type 'RunLoop' has no member 'run'
82 | while isRunning {
83 | // 100ms timeout keeps the loop responsive to signal-driven stops
84 | _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
| `- error: value of type 'RunLoop' has no member 'run'
85 | }
86 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:84:36: error: cannot infer contextual base in reference to member 'default'
82 | while isRunning {
83 | // 100ms timeout keeps the loop responsive to signal-driven stops
84 | _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
| `- error: cannot infer contextual base in reference to member 'default'
85 | }
86 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:114:9: error: cannot find 'DispatchQueue' in scope
112 |
113 | // Dispatch to main so renders are serialized with timer callbacks.
114 | DispatchQueue.main.async { [weak self] in
| `- error: cannot find 'DispatchQueue' in scope
115 | self?.coalescedRender()
116 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:139:13: error: cannot find 'DispatchQueue' in scope
137 | // Too soon — try again after the remaining interval.
138 | let delay = minRenderInterval - elapsed
139 | DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
| `- error: cannot find 'DispatchQueue' in scope
140 | self?.performRender()
141 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:139:54: error: cannot call value of non-function type 'Date'
137 | // Too soon — try again after the remaining interval.
138 | let delay = minRenderInterval - elapsed
139 | DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
| `- error: cannot call value of non-function type 'Date'
140 | self?.performRender()
141 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:165:9: error: cannot find 'signal' in scope
163 | private func setupSignalHandlers() {
164 | // Ctrl+C: stop the run loop gracefully
165 | signal(SIGINT) { _ in
| `- error: cannot find 'signal' in scope
166 | AppRuntime.shared?.stop()
167 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:165:16: error: cannot find 'SIGINT' in scope
163 | private func setupSignalHandlers() {
164 | // Ctrl+C: stop the run loop gracefully
165 | signal(SIGINT) { _ in
| `- error: cannot find 'SIGINT' in scope
166 | AppRuntime.shared?.stop()
167 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:177:9: error: cannot find 'signal' in scope
175 | poller.start()
176 | #else
177 | signal(SIGWINCH) { _ in
| `- error: cannot find 'signal' in scope
178 | AppRuntime.shared?.scheduleRender()
179 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:177:16: error: cannot find 'SIGWINCH' in scope
175 | poller.start()
176 | #else
177 | signal(SIGWINCH) { _ in
| `- error: cannot find 'SIGWINCH' in scope
178 | AppRuntime.shared?.scheduleRender()
179 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:42:25: error: cannot find type 'DispatchSourceTimer' in scope
40 | /// are naturally serialized without additional locking.
41 | public final class CLITimer: @unchecked Sendable {
42 | private var source: DispatchSourceTimer?
| `- error: cannot find type 'DispatchSourceTimer' in scope
43 | private let interval: TimeInterval
44 | private let queue: DispatchQueue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:44:24: error: cannot find type 'DispatchQueue' in scope
42 | private var source: DispatchSourceTimer?
43 | private let interval: TimeInterval
44 | private let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
45 | private let lock = NSLock()
46 | /// Whether this timer is currently counted as a session redraw driver.
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:55:48: error: cannot find type 'DispatchQueue' in scope
53 | /// - queue: The dispatch queue on which `action` is called.
54 | /// Defaults to `.main`.
55 | public init(interval: TimeInterval, queue: DispatchQueue = .main) {
| `- error: cannot find type 'DispatchQueue' in scope
56 | self.interval = interval
57 | self.queue = queue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:68:25: error: cannot find 'DispatchSource' in scope
66 | public func start(action: @escaping @Sendable () -> Void) {
67 | stop()
68 | let newSource = DispatchSource.makeTimerSource(queue: queue)
| `- error: cannot find 'DispatchSource' in scope
69 | newSource.schedule(deadline: .now() + interval, repeating: interval)
70 | newSource.setEventHandler(handler: action)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:69:39: error: cannot call value of non-function type 'Date'
67 | stop()
68 | let newSource = DispatchSource.makeTimerSource(queue: queue)
69 | newSource.schedule(deadline: .now() + interval, repeating: interval)
| `- error: cannot call value of non-function type 'Date'
70 | newSource.setEventHandler(handler: action)
71 | newSource.resume()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:126:9: error: cannot find 'signal' in scope
124 | // The handler captures nothing so it converts to a C function pointer;
125 | // it hops to the main queue before touching stdout.
126 | signal(SIGWINCH) { _ in
| `- error: cannot find 'signal' in scope
127 | DispatchQueue.main.async {
128 | StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:126:16: error: cannot find 'SIGWINCH' in scope
124 | // The handler captures nothing so it converts to a C function pointer;
125 | // it hops to the main queue before touching stdout.
126 | signal(SIGWINCH) { _ in
| `- error: cannot find 'SIGWINCH' in scope
127 | DispatchQueue.main.async {
128 | StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:127:13: error: cannot find 'DispatchQueue' in scope
125 | // it hops to the main queue before touching stdout.
126 | signal(SIGWINCH) { _ in
127 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
128 | StateObserverRegistry.shared.notifyChange()
129 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:153:9: error: cannot find 'signal' in scope
151 | BodyRenderingStore.shared.resizePoller = nil
152 | #else
153 | signal(SIGWINCH, SIG_DFL)
| `- error: cannot find 'signal' in scope
154 | #endif
155 | KeyInputRouter.shared.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:153:16: error: cannot find 'SIGWINCH' in scope
151 | BodyRenderingStore.shared.resizePoller = nil
152 | #else
153 | signal(SIGWINCH, SIG_DFL)
| `- error: cannot find 'SIGWINCH' in scope
154 | #endif
155 | KeyInputRouter.shared.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:153:26: error: cannot find 'SIG_DFL' in scope
151 | BodyRenderingStore.shared.resizePoller = nil
152 | #else
153 | signal(SIGWINCH, SIG_DFL)
| `- error: cannot find 'SIG_DFL' in scope
154 | #endif
155 | KeyInputRouter.shared.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:99:32: error: cannot find type 'DispatchSourceTimer' in scope
97 | // "flick" feel as native scroll views. A new gesture cancels any in-
98 | // flight momentum and restarts it from the new velocity.
99 | private var momentumTimer: DispatchSourceTimer?
| `- error: cannot find type 'DispatchSourceTimer' in scope
100 | private var momentumScrollID: String?
101 | private var momentumVelocity: Double = 0
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:718:21: error: cannot find 'DispatchSource' in scope
716 | // effective scroll range without changing the per-event delta.
717 | momentumVelocity = velocity * 2.2
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
| `- error: cannot find 'DispatchSource' in scope
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:718:60: error: cannot infer contextual base in reference to member 'main'
716 | // effective scroll range without changing the per-event delta.
717 | momentumVelocity = velocity * 2.2
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
| `- error: cannot infer contextual base in reference to member 'main'
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:719:35: error: cannot call value of non-function type 'Date'
717 | momentumVelocity = velocity * 2.2
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
719 | timer.schedule(deadline: .now() + 0.08,
| `- error: cannot call value of non-function type 'Date'
720 | repeating: .milliseconds(16),
721 | leeway: .milliseconds(2))
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:720:36: error: cannot infer contextual base in reference to member 'milliseconds'
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
| `- error: cannot infer contextual base in reference to member 'milliseconds'
721 | leeway: .milliseconds(2))
722 | timer.setEventHandler { [weak self] in
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:721:33: error: cannot infer contextual base in reference to member 'milliseconds'
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
721 | leeway: .milliseconds(2))
| `- error: cannot infer contextual base in reference to member 'milliseconds'
722 | timer.setEventHandler { [weak self] in
723 | guard let self, self.momentumScrollID == id else { return }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:73:13: error: cannot find 'DispatchQueue' in scope
71 | // Schedule a redraw asynchronously so a focus change made *during* a
72 | // layout pass (e.g. from Tab syncing back) never re-enters rendering.
73 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
74 | AppRuntime.shared?.scheduleRender()
75 | StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:93:17: error: cannot find 'DispatchQueue' in scope
91 | nonmutating set {
92 | box.value = newValue
93 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
94 | AppRuntime.shared?.scheduleRender()
95 | StateObserverRegistry.shared.notifyChange()
[155/162] Compiling SwiftLI FocusCoordinator.swift
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:81:31: error: 'current' is unavailable: RunLoop is not available on WASI
79 | performRender()
80 |
81 | let runLoop = RunLoop.current
| `- error: 'current' is unavailable: RunLoop is not available on WASI
82 | while isRunning {
83 | // 100ms timeout keeps the loop responsive to signal-driven stops
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 | open class var current: RunLoop { get }}
| `- note: 'current' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:84:25: error: value of type 'RunLoop' has no member 'run'
82 | while isRunning {
83 | // 100ms timeout keeps the loop responsive to signal-driven stops
84 | _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
| `- error: value of type 'RunLoop' has no member 'run'
85 | }
86 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:84:36: error: cannot infer contextual base in reference to member 'default'
82 | while isRunning {
83 | // 100ms timeout keeps the loop responsive to signal-driven stops
84 | _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
| `- error: cannot infer contextual base in reference to member 'default'
85 | }
86 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:114:9: error: cannot find 'DispatchQueue' in scope
112 |
113 | // Dispatch to main so renders are serialized with timer callbacks.
114 | DispatchQueue.main.async { [weak self] in
| `- error: cannot find 'DispatchQueue' in scope
115 | self?.coalescedRender()
116 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:139:13: error: cannot find 'DispatchQueue' in scope
137 | // Too soon — try again after the remaining interval.
138 | let delay = minRenderInterval - elapsed
139 | DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
| `- error: cannot find 'DispatchQueue' in scope
140 | self?.performRender()
141 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:139:54: error: cannot call value of non-function type 'Date'
137 | // Too soon — try again after the remaining interval.
138 | let delay = minRenderInterval - elapsed
139 | DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
| `- error: cannot call value of non-function type 'Date'
140 | self?.performRender()
141 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:165:9: error: cannot find 'signal' in scope
163 | private func setupSignalHandlers() {
164 | // Ctrl+C: stop the run loop gracefully
165 | signal(SIGINT) { _ in
| `- error: cannot find 'signal' in scope
166 | AppRuntime.shared?.stop()
167 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:165:16: error: cannot find 'SIGINT' in scope
163 | private func setupSignalHandlers() {
164 | // Ctrl+C: stop the run loop gracefully
165 | signal(SIGINT) { _ in
| `- error: cannot find 'SIGINT' in scope
166 | AppRuntime.shared?.stop()
167 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:177:9: error: cannot find 'signal' in scope
175 | poller.start()
176 | #else
177 | signal(SIGWINCH) { _ in
| `- error: cannot find 'signal' in scope
178 | AppRuntime.shared?.scheduleRender()
179 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:177:16: error: cannot find 'SIGWINCH' in scope
175 | poller.start()
176 | #else
177 | signal(SIGWINCH) { _ in
| `- error: cannot find 'SIGWINCH' in scope
178 | AppRuntime.shared?.scheduleRender()
179 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:42:25: error: cannot find type 'DispatchSourceTimer' in scope
40 | /// are naturally serialized without additional locking.
41 | public final class CLITimer: @unchecked Sendable {
42 | private var source: DispatchSourceTimer?
| `- error: cannot find type 'DispatchSourceTimer' in scope
43 | private let interval: TimeInterval
44 | private let queue: DispatchQueue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:44:24: error: cannot find type 'DispatchQueue' in scope
42 | private var source: DispatchSourceTimer?
43 | private let interval: TimeInterval
44 | private let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
45 | private let lock = NSLock()
46 | /// Whether this timer is currently counted as a session redraw driver.
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:55:48: error: cannot find type 'DispatchQueue' in scope
53 | /// - queue: The dispatch queue on which `action` is called.
54 | /// Defaults to `.main`.
55 | public init(interval: TimeInterval, queue: DispatchQueue = .main) {
| `- error: cannot find type 'DispatchQueue' in scope
56 | self.interval = interval
57 | self.queue = queue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:68:25: error: cannot find 'DispatchSource' in scope
66 | public func start(action: @escaping @Sendable () -> Void) {
67 | stop()
68 | let newSource = DispatchSource.makeTimerSource(queue: queue)
| `- error: cannot find 'DispatchSource' in scope
69 | newSource.schedule(deadline: .now() + interval, repeating: interval)
70 | newSource.setEventHandler(handler: action)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:69:39: error: cannot call value of non-function type 'Date'
67 | stop()
68 | let newSource = DispatchSource.makeTimerSource(queue: queue)
69 | newSource.schedule(deadline: .now() + interval, repeating: interval)
| `- error: cannot call value of non-function type 'Date'
70 | newSource.setEventHandler(handler: action)
71 | newSource.resume()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:126:9: error: cannot find 'signal' in scope
124 | // The handler captures nothing so it converts to a C function pointer;
125 | // it hops to the main queue before touching stdout.
126 | signal(SIGWINCH) { _ in
| `- error: cannot find 'signal' in scope
127 | DispatchQueue.main.async {
128 | StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:126:16: error: cannot find 'SIGWINCH' in scope
124 | // The handler captures nothing so it converts to a C function pointer;
125 | // it hops to the main queue before touching stdout.
126 | signal(SIGWINCH) { _ in
| `- error: cannot find 'SIGWINCH' in scope
127 | DispatchQueue.main.async {
128 | StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:127:13: error: cannot find 'DispatchQueue' in scope
125 | // it hops to the main queue before touching stdout.
126 | signal(SIGWINCH) { _ in
127 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
128 | StateObserverRegistry.shared.notifyChange()
129 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:153:9: error: cannot find 'signal' in scope
151 | BodyRenderingStore.shared.resizePoller = nil
152 | #else
153 | signal(SIGWINCH, SIG_DFL)
| `- error: cannot find 'signal' in scope
154 | #endif
155 | KeyInputRouter.shared.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:153:16: error: cannot find 'SIGWINCH' in scope
151 | BodyRenderingStore.shared.resizePoller = nil
152 | #else
153 | signal(SIGWINCH, SIG_DFL)
| `- error: cannot find 'SIGWINCH' in scope
154 | #endif
155 | KeyInputRouter.shared.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:153:26: error: cannot find 'SIG_DFL' in scope
151 | BodyRenderingStore.shared.resizePoller = nil
152 | #else
153 | signal(SIGWINCH, SIG_DFL)
| `- error: cannot find 'SIG_DFL' in scope
154 | #endif
155 | KeyInputRouter.shared.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:99:32: error: cannot find type 'DispatchSourceTimer' in scope
97 | // "flick" feel as native scroll views. A new gesture cancels any in-
98 | // flight momentum and restarts it from the new velocity.
99 | private var momentumTimer: DispatchSourceTimer?
| `- error: cannot find type 'DispatchSourceTimer' in scope
100 | private var momentumScrollID: String?
101 | private var momentumVelocity: Double = 0
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:718:21: error: cannot find 'DispatchSource' in scope
716 | // effective scroll range without changing the per-event delta.
717 | momentumVelocity = velocity * 2.2
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
| `- error: cannot find 'DispatchSource' in scope
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:718:60: error: cannot infer contextual base in reference to member 'main'
716 | // effective scroll range without changing the per-event delta.
717 | momentumVelocity = velocity * 2.2
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
| `- error: cannot infer contextual base in reference to member 'main'
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:719:35: error: cannot call value of non-function type 'Date'
717 | momentumVelocity = velocity * 2.2
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
719 | timer.schedule(deadline: .now() + 0.08,
| `- error: cannot call value of non-function type 'Date'
720 | repeating: .milliseconds(16),
721 | leeway: .milliseconds(2))
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:720:36: error: cannot infer contextual base in reference to member 'milliseconds'
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
| `- error: cannot infer contextual base in reference to member 'milliseconds'
721 | leeway: .milliseconds(2))
722 | timer.setEventHandler { [weak self] in
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:721:33: error: cannot infer contextual base in reference to member 'milliseconds'
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
721 | leeway: .milliseconds(2))
| `- error: cannot infer contextual base in reference to member 'milliseconds'
722 | timer.setEventHandler { [weak self] in
723 | guard let self, self.momentumScrollID == id else { return }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:73:13: error: cannot find 'DispatchQueue' in scope
71 | // Schedule a redraw asynchronously so a focus change made *during* a
72 | // layout pass (e.g. from Tab syncing back) never re-enters rendering.
73 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
74 | AppRuntime.shared?.scheduleRender()
75 | StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:93:17: error: cannot find 'DispatchQueue' in scope
91 | nonmutating set {
92 | box.value = newValue
93 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
94 | AppRuntime.shared?.scheduleRender()
95 | StateObserverRegistry.shared.notifyChange()
[156/162] Compiling SwiftLI FocusState.swift
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:81:31: error: 'current' is unavailable: RunLoop is not available on WASI
79 | performRender()
80 |
81 | let runLoop = RunLoop.current
| `- error: 'current' is unavailable: RunLoop is not available on WASI
82 | while isRunning {
83 | // 100ms timeout keeps the loop responsive to signal-driven stops
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 | open class var current: RunLoop { get }}
| `- note: 'current' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:84:25: error: value of type 'RunLoop' has no member 'run'
82 | while isRunning {
83 | // 100ms timeout keeps the loop responsive to signal-driven stops
84 | _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
| `- error: value of type 'RunLoop' has no member 'run'
85 | }
86 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:84:36: error: cannot infer contextual base in reference to member 'default'
82 | while isRunning {
83 | // 100ms timeout keeps the loop responsive to signal-driven stops
84 | _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
| `- error: cannot infer contextual base in reference to member 'default'
85 | }
86 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:114:9: error: cannot find 'DispatchQueue' in scope
112 |
113 | // Dispatch to main so renders are serialized with timer callbacks.
114 | DispatchQueue.main.async { [weak self] in
| `- error: cannot find 'DispatchQueue' in scope
115 | self?.coalescedRender()
116 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:139:13: error: cannot find 'DispatchQueue' in scope
137 | // Too soon — try again after the remaining interval.
138 | let delay = minRenderInterval - elapsed
139 | DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
| `- error: cannot find 'DispatchQueue' in scope
140 | self?.performRender()
141 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:139:54: error: cannot call value of non-function type 'Date'
137 | // Too soon — try again after the remaining interval.
138 | let delay = minRenderInterval - elapsed
139 | DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
| `- error: cannot call value of non-function type 'Date'
140 | self?.performRender()
141 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:165:9: error: cannot find 'signal' in scope
163 | private func setupSignalHandlers() {
164 | // Ctrl+C: stop the run loop gracefully
165 | signal(SIGINT) { _ in
| `- error: cannot find 'signal' in scope
166 | AppRuntime.shared?.stop()
167 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:165:16: error: cannot find 'SIGINT' in scope
163 | private func setupSignalHandlers() {
164 | // Ctrl+C: stop the run loop gracefully
165 | signal(SIGINT) { _ in
| `- error: cannot find 'SIGINT' in scope
166 | AppRuntime.shared?.stop()
167 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:177:9: error: cannot find 'signal' in scope
175 | poller.start()
176 | #else
177 | signal(SIGWINCH) { _ in
| `- error: cannot find 'signal' in scope
178 | AppRuntime.shared?.scheduleRender()
179 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:177:16: error: cannot find 'SIGWINCH' in scope
175 | poller.start()
176 | #else
177 | signal(SIGWINCH) { _ in
| `- error: cannot find 'SIGWINCH' in scope
178 | AppRuntime.shared?.scheduleRender()
179 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:42:25: error: cannot find type 'DispatchSourceTimer' in scope
40 | /// are naturally serialized without additional locking.
41 | public final class CLITimer: @unchecked Sendable {
42 | private var source: DispatchSourceTimer?
| `- error: cannot find type 'DispatchSourceTimer' in scope
43 | private let interval: TimeInterval
44 | private let queue: DispatchQueue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:44:24: error: cannot find type 'DispatchQueue' in scope
42 | private var source: DispatchSourceTimer?
43 | private let interval: TimeInterval
44 | private let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
45 | private let lock = NSLock()
46 | /// Whether this timer is currently counted as a session redraw driver.
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:55:48: error: cannot find type 'DispatchQueue' in scope
53 | /// - queue: The dispatch queue on which `action` is called.
54 | /// Defaults to `.main`.
55 | public init(interval: TimeInterval, queue: DispatchQueue = .main) {
| `- error: cannot find type 'DispatchQueue' in scope
56 | self.interval = interval
57 | self.queue = queue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:68:25: error: cannot find 'DispatchSource' in scope
66 | public func start(action: @escaping @Sendable () -> Void) {
67 | stop()
68 | let newSource = DispatchSource.makeTimerSource(queue: queue)
| `- error: cannot find 'DispatchSource' in scope
69 | newSource.schedule(deadline: .now() + interval, repeating: interval)
70 | newSource.setEventHandler(handler: action)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:69:39: error: cannot call value of non-function type 'Date'
67 | stop()
68 | let newSource = DispatchSource.makeTimerSource(queue: queue)
69 | newSource.schedule(deadline: .now() + interval, repeating: interval)
| `- error: cannot call value of non-function type 'Date'
70 | newSource.setEventHandler(handler: action)
71 | newSource.resume()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:126:9: error: cannot find 'signal' in scope
124 | // The handler captures nothing so it converts to a C function pointer;
125 | // it hops to the main queue before touching stdout.
126 | signal(SIGWINCH) { _ in
| `- error: cannot find 'signal' in scope
127 | DispatchQueue.main.async {
128 | StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:126:16: error: cannot find 'SIGWINCH' in scope
124 | // The handler captures nothing so it converts to a C function pointer;
125 | // it hops to the main queue before touching stdout.
126 | signal(SIGWINCH) { _ in
| `- error: cannot find 'SIGWINCH' in scope
127 | DispatchQueue.main.async {
128 | StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:127:13: error: cannot find 'DispatchQueue' in scope
125 | // it hops to the main queue before touching stdout.
126 | signal(SIGWINCH) { _ in
127 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
128 | StateObserverRegistry.shared.notifyChange()
129 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:153:9: error: cannot find 'signal' in scope
151 | BodyRenderingStore.shared.resizePoller = nil
152 | #else
153 | signal(SIGWINCH, SIG_DFL)
| `- error: cannot find 'signal' in scope
154 | #endif
155 | KeyInputRouter.shared.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:153:16: error: cannot find 'SIGWINCH' in scope
151 | BodyRenderingStore.shared.resizePoller = nil
152 | #else
153 | signal(SIGWINCH, SIG_DFL)
| `- error: cannot find 'SIGWINCH' in scope
154 | #endif
155 | KeyInputRouter.shared.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:153:26: error: cannot find 'SIG_DFL' in scope
151 | BodyRenderingStore.shared.resizePoller = nil
152 | #else
153 | signal(SIGWINCH, SIG_DFL)
| `- error: cannot find 'SIG_DFL' in scope
154 | #endif
155 | KeyInputRouter.shared.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:99:32: error: cannot find type 'DispatchSourceTimer' in scope
97 | // "flick" feel as native scroll views. A new gesture cancels any in-
98 | // flight momentum and restarts it from the new velocity.
99 | private var momentumTimer: DispatchSourceTimer?
| `- error: cannot find type 'DispatchSourceTimer' in scope
100 | private var momentumScrollID: String?
101 | private var momentumVelocity: Double = 0
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:718:21: error: cannot find 'DispatchSource' in scope
716 | // effective scroll range without changing the per-event delta.
717 | momentumVelocity = velocity * 2.2
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
| `- error: cannot find 'DispatchSource' in scope
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:718:60: error: cannot infer contextual base in reference to member 'main'
716 | // effective scroll range without changing the per-event delta.
717 | momentumVelocity = velocity * 2.2
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
| `- error: cannot infer contextual base in reference to member 'main'
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:719:35: error: cannot call value of non-function type 'Date'
717 | momentumVelocity = velocity * 2.2
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
719 | timer.schedule(deadline: .now() + 0.08,
| `- error: cannot call value of non-function type 'Date'
720 | repeating: .milliseconds(16),
721 | leeway: .milliseconds(2))
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:720:36: error: cannot infer contextual base in reference to member 'milliseconds'
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
| `- error: cannot infer contextual base in reference to member 'milliseconds'
721 | leeway: .milliseconds(2))
722 | timer.setEventHandler { [weak self] in
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:721:33: error: cannot infer contextual base in reference to member 'milliseconds'
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
721 | leeway: .milliseconds(2))
| `- error: cannot infer contextual base in reference to member 'milliseconds'
722 | timer.setEventHandler { [weak self] in
723 | guard let self, self.momentumScrollID == id else { return }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:73:13: error: cannot find 'DispatchQueue' in scope
71 | // Schedule a redraw asynchronously so a focus change made *during* a
72 | // layout pass (e.g. from Tab syncing back) never re-enters rendering.
73 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
74 | AppRuntime.shared?.scheduleRender()
75 | StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:93:17: error: cannot find 'DispatchQueue' in scope
91 | nonmutating set {
92 | box.value = newValue
93 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
94 | AppRuntime.shared?.scheduleRender()
95 | StateObserverRegistry.shared.notifyChange()
[157/162] Compiling SwiftLI FocusedValue.swift
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:81:31: error: 'current' is unavailable: RunLoop is not available on WASI
79 | performRender()
80 |
81 | let runLoop = RunLoop.current
| `- error: 'current' is unavailable: RunLoop is not available on WASI
82 | while isRunning {
83 | // 100ms timeout keeps the loop responsive to signal-driven stops
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 | open class var current: RunLoop { get }}
| `- note: 'current' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:84:25: error: value of type 'RunLoop' has no member 'run'
82 | while isRunning {
83 | // 100ms timeout keeps the loop responsive to signal-driven stops
84 | _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
| `- error: value of type 'RunLoop' has no member 'run'
85 | }
86 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:84:36: error: cannot infer contextual base in reference to member 'default'
82 | while isRunning {
83 | // 100ms timeout keeps the loop responsive to signal-driven stops
84 | _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
| `- error: cannot infer contextual base in reference to member 'default'
85 | }
86 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:114:9: error: cannot find 'DispatchQueue' in scope
112 |
113 | // Dispatch to main so renders are serialized with timer callbacks.
114 | DispatchQueue.main.async { [weak self] in
| `- error: cannot find 'DispatchQueue' in scope
115 | self?.coalescedRender()
116 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:139:13: error: cannot find 'DispatchQueue' in scope
137 | // Too soon — try again after the remaining interval.
138 | let delay = minRenderInterval - elapsed
139 | DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
| `- error: cannot find 'DispatchQueue' in scope
140 | self?.performRender()
141 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:139:54: error: cannot call value of non-function type 'Date'
137 | // Too soon — try again after the remaining interval.
138 | let delay = minRenderInterval - elapsed
139 | DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
| `- error: cannot call value of non-function type 'Date'
140 | self?.performRender()
141 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:165:9: error: cannot find 'signal' in scope
163 | private func setupSignalHandlers() {
164 | // Ctrl+C: stop the run loop gracefully
165 | signal(SIGINT) { _ in
| `- error: cannot find 'signal' in scope
166 | AppRuntime.shared?.stop()
167 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:165:16: error: cannot find 'SIGINT' in scope
163 | private func setupSignalHandlers() {
164 | // Ctrl+C: stop the run loop gracefully
165 | signal(SIGINT) { _ in
| `- error: cannot find 'SIGINT' in scope
166 | AppRuntime.shared?.stop()
167 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:177:9: error: cannot find 'signal' in scope
175 | poller.start()
176 | #else
177 | signal(SIGWINCH) { _ in
| `- error: cannot find 'signal' in scope
178 | AppRuntime.shared?.scheduleRender()
179 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:177:16: error: cannot find 'SIGWINCH' in scope
175 | poller.start()
176 | #else
177 | signal(SIGWINCH) { _ in
| `- error: cannot find 'SIGWINCH' in scope
178 | AppRuntime.shared?.scheduleRender()
179 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:42:25: error: cannot find type 'DispatchSourceTimer' in scope
40 | /// are naturally serialized without additional locking.
41 | public final class CLITimer: @unchecked Sendable {
42 | private var source: DispatchSourceTimer?
| `- error: cannot find type 'DispatchSourceTimer' in scope
43 | private let interval: TimeInterval
44 | private let queue: DispatchQueue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:44:24: error: cannot find type 'DispatchQueue' in scope
42 | private var source: DispatchSourceTimer?
43 | private let interval: TimeInterval
44 | private let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
45 | private let lock = NSLock()
46 | /// Whether this timer is currently counted as a session redraw driver.
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:55:48: error: cannot find type 'DispatchQueue' in scope
53 | /// - queue: The dispatch queue on which `action` is called.
54 | /// Defaults to `.main`.
55 | public init(interval: TimeInterval, queue: DispatchQueue = .main) {
| `- error: cannot find type 'DispatchQueue' in scope
56 | self.interval = interval
57 | self.queue = queue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:68:25: error: cannot find 'DispatchSource' in scope
66 | public func start(action: @escaping @Sendable () -> Void) {
67 | stop()
68 | let newSource = DispatchSource.makeTimerSource(queue: queue)
| `- error: cannot find 'DispatchSource' in scope
69 | newSource.schedule(deadline: .now() + interval, repeating: interval)
70 | newSource.setEventHandler(handler: action)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:69:39: error: cannot call value of non-function type 'Date'
67 | stop()
68 | let newSource = DispatchSource.makeTimerSource(queue: queue)
69 | newSource.schedule(deadline: .now() + interval, repeating: interval)
| `- error: cannot call value of non-function type 'Date'
70 | newSource.setEventHandler(handler: action)
71 | newSource.resume()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:126:9: error: cannot find 'signal' in scope
124 | // The handler captures nothing so it converts to a C function pointer;
125 | // it hops to the main queue before touching stdout.
126 | signal(SIGWINCH) { _ in
| `- error: cannot find 'signal' in scope
127 | DispatchQueue.main.async {
128 | StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:126:16: error: cannot find 'SIGWINCH' in scope
124 | // The handler captures nothing so it converts to a C function pointer;
125 | // it hops to the main queue before touching stdout.
126 | signal(SIGWINCH) { _ in
| `- error: cannot find 'SIGWINCH' in scope
127 | DispatchQueue.main.async {
128 | StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:127:13: error: cannot find 'DispatchQueue' in scope
125 | // it hops to the main queue before touching stdout.
126 | signal(SIGWINCH) { _ in
127 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
128 | StateObserverRegistry.shared.notifyChange()
129 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:153:9: error: cannot find 'signal' in scope
151 | BodyRenderingStore.shared.resizePoller = nil
152 | #else
153 | signal(SIGWINCH, SIG_DFL)
| `- error: cannot find 'signal' in scope
154 | #endif
155 | KeyInputRouter.shared.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:153:16: error: cannot find 'SIGWINCH' in scope
151 | BodyRenderingStore.shared.resizePoller = nil
152 | #else
153 | signal(SIGWINCH, SIG_DFL)
| `- error: cannot find 'SIGWINCH' in scope
154 | #endif
155 | KeyInputRouter.shared.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:153:26: error: cannot find 'SIG_DFL' in scope
151 | BodyRenderingStore.shared.resizePoller = nil
152 | #else
153 | signal(SIGWINCH, SIG_DFL)
| `- error: cannot find 'SIG_DFL' in scope
154 | #endif
155 | KeyInputRouter.shared.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:99:32: error: cannot find type 'DispatchSourceTimer' in scope
97 | // "flick" feel as native scroll views. A new gesture cancels any in-
98 | // flight momentum and restarts it from the new velocity.
99 | private var momentumTimer: DispatchSourceTimer?
| `- error: cannot find type 'DispatchSourceTimer' in scope
100 | private var momentumScrollID: String?
101 | private var momentumVelocity: Double = 0
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:718:21: error: cannot find 'DispatchSource' in scope
716 | // effective scroll range without changing the per-event delta.
717 | momentumVelocity = velocity * 2.2
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
| `- error: cannot find 'DispatchSource' in scope
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:718:60: error: cannot infer contextual base in reference to member 'main'
716 | // effective scroll range without changing the per-event delta.
717 | momentumVelocity = velocity * 2.2
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
| `- error: cannot infer contextual base in reference to member 'main'
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:719:35: error: cannot call value of non-function type 'Date'
717 | momentumVelocity = velocity * 2.2
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
719 | timer.schedule(deadline: .now() + 0.08,
| `- error: cannot call value of non-function type 'Date'
720 | repeating: .milliseconds(16),
721 | leeway: .milliseconds(2))
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:720:36: error: cannot infer contextual base in reference to member 'milliseconds'
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
| `- error: cannot infer contextual base in reference to member 'milliseconds'
721 | leeway: .milliseconds(2))
722 | timer.setEventHandler { [weak self] in
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:721:33: error: cannot infer contextual base in reference to member 'milliseconds'
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
721 | leeway: .milliseconds(2))
| `- error: cannot infer contextual base in reference to member 'milliseconds'
722 | timer.setEventHandler { [weak self] in
723 | guard let self, self.momentumScrollID == id else { return }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:73:13: error: cannot find 'DispatchQueue' in scope
71 | // Schedule a redraw asynchronously so a focus change made *during* a
72 | // layout pass (e.g. from Tab syncing back) never re-enters rendering.
73 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
74 | AppRuntime.shared?.scheduleRender()
75 | StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:93:17: error: cannot find 'DispatchQueue' in scope
91 | nonmutating set {
92 | box.value = newValue
93 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
94 | AppRuntime.shared?.scheduleRender()
95 | StateObserverRegistry.shared.notifyChange()
[158/162] Compiling SwiftLI InlineRenderer.swift
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:81:31: error: 'current' is unavailable: RunLoop is not available on WASI
79 | performRender()
80 |
81 | let runLoop = RunLoop.current
| `- error: 'current' is unavailable: RunLoop is not available on WASI
82 | while isRunning {
83 | // 100ms timeout keeps the loop responsive to signal-driven stops
Foundation.RunLoop.current:3:18: note: 'current' has been explicitly marked unavailable here
1 | class RunLoop {
2 | @available(*, unavailable, message: "RunLoop is not available on WASI")
3 | open class var current: RunLoop { get }}
| `- note: 'current' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:84:25: error: value of type 'RunLoop' has no member 'run'
82 | while isRunning {
83 | // 100ms timeout keeps the loop responsive to signal-driven stops
84 | _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
| `- error: value of type 'RunLoop' has no member 'run'
85 | }
86 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:84:36: error: cannot infer contextual base in reference to member 'default'
82 | while isRunning {
83 | // 100ms timeout keeps the loop responsive to signal-driven stops
84 | _ = runLoop.run(mode: .default, before: Date(timeIntervalSinceNow: 0.1))
| `- error: cannot infer contextual base in reference to member 'default'
85 | }
86 |
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:114:9: error: cannot find 'DispatchQueue' in scope
112 |
113 | // Dispatch to main so renders are serialized with timer callbacks.
114 | DispatchQueue.main.async { [weak self] in
| `- error: cannot find 'DispatchQueue' in scope
115 | self?.coalescedRender()
116 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:139:13: error: cannot find 'DispatchQueue' in scope
137 | // Too soon — try again after the remaining interval.
138 | let delay = minRenderInterval - elapsed
139 | DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
| `- error: cannot find 'DispatchQueue' in scope
140 | self?.performRender()
141 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:139:54: error: cannot call value of non-function type 'Date'
137 | // Too soon — try again after the remaining interval.
138 | let delay = minRenderInterval - elapsed
139 | DispatchQueue.main.asyncAfter(deadline: .now() + delay) { [weak self] in
| `- error: cannot call value of non-function type 'Date'
140 | self?.performRender()
141 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:165:9: error: cannot find 'signal' in scope
163 | private func setupSignalHandlers() {
164 | // Ctrl+C: stop the run loop gracefully
165 | signal(SIGINT) { _ in
| `- error: cannot find 'signal' in scope
166 | AppRuntime.shared?.stop()
167 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:165:16: error: cannot find 'SIGINT' in scope
163 | private func setupSignalHandlers() {
164 | // Ctrl+C: stop the run loop gracefully
165 | signal(SIGINT) { _ in
| `- error: cannot find 'SIGINT' in scope
166 | AppRuntime.shared?.stop()
167 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:177:9: error: cannot find 'signal' in scope
175 | poller.start()
176 | #else
177 | signal(SIGWINCH) { _ in
| `- error: cannot find 'signal' in scope
178 | AppRuntime.shared?.scheduleRender()
179 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/AppRuntime.swift:177:16: error: cannot find 'SIGWINCH' in scope
175 | poller.start()
176 | #else
177 | signal(SIGWINCH) { _ in
| `- error: cannot find 'SIGWINCH' in scope
178 | AppRuntime.shared?.scheduleRender()
179 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:42:25: error: cannot find type 'DispatchSourceTimer' in scope
40 | /// are naturally serialized without additional locking.
41 | public final class CLITimer: @unchecked Sendable {
42 | private var source: DispatchSourceTimer?
| `- error: cannot find type 'DispatchSourceTimer' in scope
43 | private let interval: TimeInterval
44 | private let queue: DispatchQueue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:44:24: error: cannot find type 'DispatchQueue' in scope
42 | private var source: DispatchSourceTimer?
43 | private let interval: TimeInterval
44 | private let queue: DispatchQueue
| `- error: cannot find type 'DispatchQueue' in scope
45 | private let lock = NSLock()
46 | /// Whether this timer is currently counted as a session redraw driver.
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:55:48: error: cannot find type 'DispatchQueue' in scope
53 | /// - queue: The dispatch queue on which `action` is called.
54 | /// Defaults to `.main`.
55 | public init(interval: TimeInterval, queue: DispatchQueue = .main) {
| `- error: cannot find type 'DispatchQueue' in scope
56 | self.interval = interval
57 | self.queue = queue
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:68:25: error: cannot find 'DispatchSource' in scope
66 | public func start(action: @escaping @Sendable () -> Void) {
67 | stop()
68 | let newSource = DispatchSource.makeTimerSource(queue: queue)
| `- error: cannot find 'DispatchSource' in scope
69 | newSource.schedule(deadline: .now() + interval, repeating: interval)
70 | newSource.setEventHandler(handler: action)
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/CLITimer.swift:69:39: error: cannot call value of non-function type 'Date'
67 | stop()
68 | let newSource = DispatchSource.makeTimerSource(queue: queue)
69 | newSource.schedule(deadline: .now() + interval, repeating: interval)
| `- error: cannot call value of non-function type 'Date'
70 | newSource.setEventHandler(handler: action)
71 | newSource.resume()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:126:9: error: cannot find 'signal' in scope
124 | // The handler captures nothing so it converts to a C function pointer;
125 | // it hops to the main queue before touching stdout.
126 | signal(SIGWINCH) { _ in
| `- error: cannot find 'signal' in scope
127 | DispatchQueue.main.async {
128 | StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:126:16: error: cannot find 'SIGWINCH' in scope
124 | // The handler captures nothing so it converts to a C function pointer;
125 | // it hops to the main queue before touching stdout.
126 | signal(SIGWINCH) { _ in
| `- error: cannot find 'SIGWINCH' in scope
127 | DispatchQueue.main.async {
128 | StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:127:13: error: cannot find 'DispatchQueue' in scope
125 | // it hops to the main queue before touching stdout.
126 | signal(SIGWINCH) { _ in
127 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
128 | StateObserverRegistry.shared.notifyChange()
129 | }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:153:9: error: cannot find 'signal' in scope
151 | BodyRenderingStore.shared.resizePoller = nil
152 | #else
153 | signal(SIGWINCH, SIG_DFL)
| `- error: cannot find 'signal' in scope
154 | #endif
155 | KeyInputRouter.shared.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:153:16: error: cannot find 'SIGWINCH' in scope
151 | BodyRenderingStore.shared.resizePoller = nil
152 | #else
153 | signal(SIGWINCH, SIG_DFL)
| `- error: cannot find 'SIGWINCH' in scope
154 | #endif
155 | KeyInputRouter.shared.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/Command.swift:153:26: error: cannot find 'SIG_DFL' in scope
151 | BodyRenderingStore.shared.resizePoller = nil
152 | #else
153 | signal(SIGWINCH, SIG_DFL)
| `- error: cannot find 'SIG_DFL' in scope
154 | #endif
155 | KeyInputRouter.shared.stop()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:99:32: error: cannot find type 'DispatchSourceTimer' in scope
97 | // "flick" feel as native scroll views. A new gesture cancels any in-
98 | // flight momentum and restarts it from the new velocity.
99 | private var momentumTimer: DispatchSourceTimer?
| `- error: cannot find type 'DispatchSourceTimer' in scope
100 | private var momentumScrollID: String?
101 | private var momentumVelocity: Double = 0
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:718:21: error: cannot find 'DispatchSource' in scope
716 | // effective scroll range without changing the per-event delta.
717 | momentumVelocity = velocity * 2.2
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
| `- error: cannot find 'DispatchSource' in scope
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:718:60: error: cannot infer contextual base in reference to member 'main'
716 | // effective scroll range without changing the per-event delta.
717 | momentumVelocity = velocity * 2.2
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
| `- error: cannot infer contextual base in reference to member 'main'
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:719:35: error: cannot call value of non-function type 'Date'
717 | momentumVelocity = velocity * 2.2
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
719 | timer.schedule(deadline: .now() + 0.08,
| `- error: cannot call value of non-function type 'Date'
720 | repeating: .milliseconds(16),
721 | leeway: .milliseconds(2))
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:720:36: error: cannot infer contextual base in reference to member 'milliseconds'
718 | let timer = DispatchSource.makeTimerSource(queue: .main)
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
| `- error: cannot infer contextual base in reference to member 'milliseconds'
721 | leeway: .milliseconds(2))
722 | timer.setEventHandler { [weak self] in
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusCoordinator.swift:721:33: error: cannot infer contextual base in reference to member 'milliseconds'
719 | timer.schedule(deadline: .now() + 0.08,
720 | repeating: .milliseconds(16),
721 | leeway: .milliseconds(2))
| `- error: cannot infer contextual base in reference to member 'milliseconds'
722 | timer.setEventHandler { [weak self] in
723 | guard let self, self.momentumScrollID == id else { return }
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:73:13: error: cannot find 'DispatchQueue' in scope
71 | // Schedule a redraw asynchronously so a focus change made *during* a
72 | // layout pass (e.g. from Tab syncing back) never re-enters rendering.
73 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
74 | AppRuntime.shared?.scheduleRender()
75 | StateObserverRegistry.shared.notifyChange()
/host/spi-builder-workspace/Sources/SwiftLI/Reactive/FocusState.swift:93:17: error: cannot find 'DispatchQueue' in scope
91 | nonmutating set {
92 | box.value = newValue
93 | DispatchQueue.main.async {
| `- error: cannot find 'DispatchQueue' in scope
94 | AppRuntime.shared?.scheduleRender()
95 | StateObserverRegistry.shared.notifyChange()
BUILD FAILURE 6.1 wasm