Skip to content

Commit 648e66a

Browse files
committed
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:)'
1 parent f03130c commit 648e66a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Sources/ClickIt/Lite/SimplifiedMainView.swift

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

388388
// MARK: - Preview
389-
390-
#Preview {
391-
SimplifiedMainView()
392-
}
389+
// Note: Preview disabled for SPM command-line builds due to macro plugin requirements
390+
// Uncomment when building in Xcode:
391+
// #Preview {
392+
// SimplifiedMainView()
393+
// }

0 commit comments

Comments
 (0)