If you have upgraded to Xcode15.0 beta on your only computer(macOS Sonoma 14.0) and still can not find any solution for this issue, I would suggest you use an older version of Xcode on your current Mac OS:
https://stackoverflow.com/questions/69994916/how-can-i-run-older-xcode-version-on-new-macos-version
I have 2 Mac running Mac OS 26 beta 4 and all encountered this issue when using Xcode preview (both Xcode 16 & Xcode 26 can repo).
It's so easy to reproduce this issue, and it's making the daily development work very painful as you had to reboot with unsaved code...
When can we receive bug fix for this?
If you have upgraded to Xcode15.0 beta on your only computer(macOS Sonoma 14.0) and still can not find any solution for this issue, I would suggest you use an older version of Xcode on your current Mac OS:
https://stackoverflow.com/questions/69994916/how-can-i-run-older-xcode-version-on-new-macos-version
I have 2 Mac running Mac OS 26 beta 4 and all encountered this issue when using Xcode preview (both Xcode 16 & Xcode 26 can repo).
It's so easy to reproduce this issue, and it's making the daily development work very painful as you had to reboot with unsaved code...
When can we receive bug fix for this?