Post

Replies

Boosts

Views

Activity

Reply to SwiftData Crashes After Modifying The VersionedSchema More Than Once
Hello, this is not a problem with Xcode as you found out, but with the data that already exists in your database. Suppose you have 5 fields and some records in the database. You are adding a field that is NOT optional. What should happen to the records where the field is empty? However, the field cannot be empty. There are various strategies to deal with this, but I'm not sure it's easy with core data.
Dec ’23