CoreData Migration issue

Hello,


A small percentage of our users will get error NSMigrationMissingSourceModelError when upgrading our app. We have only seen it in the field, have not been able to duplicate ourselves. It will happen on iOS7 and iOS8. I'm wondering if it has something to do with low diskspace. Not sure why the SourceModel would not exist. We have tried installing old versions of app, then updating over them. Still cannot duplicate the error.


Has anyone else seen this?


Thanks,

kc

Anybody else? It happens on iOS9 too.

We have had the same issue as well with a small set of our users. We were able to reproduce ourselves with a device we have but only on that one device. The database in question is < 7 meg and the device has over 600 meg free. It is low on iCloud storage having only 12 meg available there and this database is backed up in iCloud. No answers yet on our end. Did you ever figure it out?

Further research on the issue has shown that in some cases Core Data can't infer complex source data models. In our case we had a merged data model and then relationships added to the merged model programatically. For whatever reason, most devices handled the complexity but some did not. We added a fallback that processes all model version combinations to determine which combination was used for the previous store.

CoreData Migration issue
 
 
Q