Closed joshxplor closed 6 years ago
Issue with Light migration for CoreData which causes the application to crash when there are changes to the schema of the DB
Instead of manually migrating CoreData schema changes, we let CoreData handle the migration process.
Assuming you already have an application running with a populated DB store Create a new version of xcdatamodel Update any entity by adding a new property to the new version of xcdatamodel Select the new xcdatamodel version from the utility panel of Xcode Run the app to build with the new DB schema App should not crash Extract SQLiteDB from the app and check if the new property exist in the schema.
Assuming you already have an application running with a populated DB store
What/Why?
Issue with Light migration for CoreData which causes the application to crash when there are changes to the schema of the DB
Solution
Instead of manually migrating CoreData schema changes, we let CoreData handle the migration process.
How was it tested?
Steps in testing