Comment on Error: _SwiftData_SwiftUI: one-time initialization function for empty Quick update: OP's fix didn't work for me, the app still kept crashing in the background. However, the issue seems to have been solved by its own after upgrading to macOS 14.5. UI Frameworks SwiftUI Jun ’24