SwiftUI Preview crashed
Preview Crashed logs are saved at “~/Library/Logs/DiagnosticReports“
on Xcode, It’s hard to check the logs. so I made a bash script to open the latest crash log file “latestPreviewCrash.sh“
#!/bin/bashcd ~/Library/Logs/DiagnosticReportsfile=$(ls XCPreview* | head -1)open $file
run this script
sh latestPreviewCrash.sh
It will open the crash logs.


