Preview failed to build

After updating to Xcode 13.2.1, the preview window fails to build and it gives me the attached error.

Does anyone have any idea how to fix this? The simulator still works, and I have tried using a different update of iOS for the preview, but neither of those fixed it. If I need to provide more information please let me know.

Preview often breaks, wait until Xcode 13.3 I guess. You can also try deleting Xcode, then all the preview data and then reinstalling Xcode.

Thank you, I'll try that.

could you try opening terminal and running rm -rf "$TMPDIR/../C/clang/ModuleCache"

@DeveloperToolsEngineer That wipe did not resolve the crash for the view located in an SPM module of an iOS project using Xcode 14.0.1 (14A400) on macOS 12.6 (21G115). Filed FB11663508.

Preview failed to build
 
 
Q