No results (empty array) on fetching entity after lightweight migration

I have used lightweight migration and there are no errors in loading the new store but when i fetch an entity i get an empty array. What could be the reason?

there is something worth considering. The old store had an entity A which had a relationship with entity B and C, both or which are no longer included in the new model. Just incase such a thing could be a issue.

Thanks. Neerav

Possible cause is that Xcode needs to be able to map old model on new model. So preparation is critical.

Is it the first time you experience the problem ? Did previous lightweight migrations work OK. These links may help (I don't know how much practice of Core Data migration you have)

https://developer.apple.com/documentation/coredata/using_lightweight_migration

h t t p s : / / w w w.raywenderlich.com/7585-lightweight-migrations-in-core-data-tutorial

Hope that helps.

No results (empty array) on fetching entity after lightweight migration
 
 
Q