Skip to content

Commit af07b70

Browse files
jsonifyclaudegemini-code-assist[bot]
authored
Troubleshoot fastlane launch_lite installation error (#20)
* 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:)' * Update Sources/ClickIt/Lite/SimplifiedMainView.swift Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --------- Co-authored-by: Claude <[email protected]> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent f03130c commit af07b70

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/ClickIt/Lite/SimplifiedMainView.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,8 @@ struct SimplifiedMainView: View {
386386
}
387387

388388
// MARK: - Preview
389-
389+
#if DEBUG
390390
#Preview {
391391
SimplifiedMainView()
392392
}
393+
#endif

0 commit comments

Comments
 (0)