From 2e34626d6a48b58d7a4585c78435ce588eb21930 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 26 Oct 2026 15:33:09 +0000 Subject: [PATCH] Wrap the open-at-login setter in a closure to avoid a Swift 6.3 compiler crash Passing the main-actor method directly as the Binding setter makes the release runner's toolchain (Xcode 26.6, Swift 6.3.3) crash in IRGen on the reabstraction thunk, which failed the v0.2.0 release build. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01NcvYKfueoCP2cnLoV7MjKH --- Sources/Consta/Views/SettingsView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Consta/Views/SettingsView.swift b/Sources/Consta/Views/SettingsView.swift index fd5db71..cf82be8 100644 --- a/Sources/Consta/Views/SettingsView.swift +++ b/Sources/Consta/Views/SettingsView.swift @@ -44,7 +44,7 @@ struct SettingsView: View { SwitchRow("Show timer in menu bar", isOn: $showTimer) .padding(.horizontal, 10) .frame(height: 34) - SwitchRow("Open at login", isOn: Binding(get: { opensAtLogin }, set: setOpensAtLogin)) + SwitchRow("Open at login", isOn: Binding(get: { opensAtLogin }, set: { setOpensAtLogin($0) })) .padding(.horizontal, 10) .frame(height: 34) .disabled(!AppVersion.isBundled)