Dev Radar
Support
LiveUpdated 2026-11-25 18:41 UTC

My first-draft SwiftData app crashed on writes, not reads, because SQLite failed to…

My first-draft SwiftData app crashed on writes, not reads, because SQLite failed to resolve the relationships between…

This is a dev post classified by AGK Intelligence as Databases (a tutorial), kept by the Dev Radar because it carries real work, not commentary.

My first-draft SwiftData app crashed on writes, not reads, because SQLite failed to resolve the relationships between the CardEntity I was saving and its Stats, which is a separate @Model. We can solve this by explicitly defining their relationship. I tested this on the simulator before I risked killing my beautiful card collection with a dodgy data migration. But this worked! I didn’t even need any manual migration step, because the underlying data didn’t change; only the way SQLite interprets the relationships between the stored data. This lightweight migration is done automatically withou

Posted by Jacob Bartlett (5.9k followers) 9 days ago · 0 likes · 85 views · view the original post on X. Kept by the Dev Radar as Databases.

More dev work like this

Every post is read and classified by AGK Intelligence: what it is, which market it belongs to, and whether the link is a real tool. 13.4k posts from 5k X accounts over the last 21 days, 10.1k tools, 12 markets. New posts are collected several times an hour and the full ranking is recomputed every hour — last update 2026-11-25 18:41 UTC. Full method.