From 6ac7134e7c3dd6a1844f43d82b367edb91646488 Mon Sep 17 00:00:00 2001 From: enricobuehler Date: Thu, 16 Jul 2026 19:52:34 +0200 Subject: [PATCH] fix(apple/M4): IntentError message must be a string literal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit LocalizedStringResource is ExpressibleByStringLiteral, so a single literal converts implicitly, but the "…" + "…" concatenation is a runtime String it can't convert. Collapsed to one literal. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../Sources/PunktfunkClient/Intents/SessionShortcuts.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/clients/apple/Sources/PunktfunkClient/Intents/SessionShortcuts.swift b/clients/apple/Sources/PunktfunkClient/Intents/SessionShortcuts.swift index 47c4899c..903f7460 100644 --- a/clients/apple/Sources/PunktfunkClient/Intents/SessionShortcuts.swift +++ b/clients/apple/Sources/PunktfunkClient/Intents/SessionShortcuts.swift @@ -67,8 +67,9 @@ enum IntentError: Error, CustomLocalizedStringResourceConvertible { var localizedStringResource: LocalizedStringResource { switch self { case .noWakeAddress: - return "That host has no saved Wake-on-LAN address yet. Connect to it once so Punktfunk " - + "can learn it." + // One string LITERAL — LocalizedStringResource is ExpressibleByStringLiteral, but a + // `"…" + "…"` concatenation is a runtime String it can't convert. + return "That host has no saved Wake-on-LAN address yet. Connect to it once so Punktfunk can learn it." } } }