mirror of
https://github.com/yattee/yattee.git
synced 2026-07-20 14:22:02 +00:00
On backgrounding, the app flushed pending CloudKit changes in an unguarded Task while SwiftData autosave could leave an open SQLite transaction. iOS terminates apps that hold the database lock across suspension (0xdead10cc), which was the largest crash group on build 261. On iOS, commit pending changes synchronously to release the lock, and run the async flush inside a beginBackgroundTask assertion that ends when the flush completes. Fixes 0xdead10cc SIGKILLs seen in TestFlight build 261 (17 reports).