Comment on Xcode 15 Beta 5: Unsupported Xcode or SDK Version Try removing the #Preview { ... } part. That's what was crashing my phone. Developer Tools & Services Xcode Jul ’23