From 648e66a27a8ee6e13795d454fe513210389adea7 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 11 Nov 2025 04:31:32 +0000 Subject: [PATCH 1/2] fix: Disable #Preview macro for SPM command-line builds The #Preview macro requires PreviewsMacros plugin which may not be available during SPM command-line builds, causing build failures on fresh Mac installations. Commented out the preview block to fix 'fastlane launch_lite' build errors. Preview can be re-enabled when building in Xcode by uncommenting. Fixes: error: external macro implementation type 'PreviewsMacros.SwiftUIView' could not be found for macro 'Preview(_:body:)' --- Sources/ClickIt/Lite/SimplifiedMainView.swift | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Sources/ClickIt/Lite/SimplifiedMainView.swift b/Sources/ClickIt/Lite/SimplifiedMainView.swift index 5a30777..89dafbe 100644 --- a/Sources/ClickIt/Lite/SimplifiedMainView.swift +++ b/Sources/ClickIt/Lite/SimplifiedMainView.swift @@ -386,7 +386,8 @@ struct SimplifiedMainView: View { } // MARK: - Preview - -#Preview { - SimplifiedMainView() -} +// Note: Preview disabled for SPM command-line builds due to macro plugin requirements +// Uncomment when building in Xcode: +// #Preview { +// SimplifiedMainView() +// } From 722fd3083aec284173108449b488ffe91bd07fca Mon Sep 17 00:00:00 2001 From: Jason Rueckert Date: Mon, 10 Nov 2025 20:54:46 -0800 Subject: [PATCH 2/2] Update Sources/ClickIt/Lite/SimplifiedMainView.swift Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- Sources/ClickIt/Lite/SimplifiedMainView.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Sources/ClickIt/Lite/SimplifiedMainView.swift b/Sources/ClickIt/Lite/SimplifiedMainView.swift index 89dafbe..3318ce9 100644 --- a/Sources/ClickIt/Lite/SimplifiedMainView.swift +++ b/Sources/ClickIt/Lite/SimplifiedMainView.swift @@ -386,8 +386,8 @@ struct SimplifiedMainView: View { } // MARK: - Preview -// Note: Preview disabled for SPM command-line builds due to macro plugin requirements -// Uncomment when building in Xcode: -// #Preview { -// SimplifiedMainView() -// } +#if DEBUG +#Preview { + SimplifiedMainView() +} +#endif