Progressive migration with Encrypted Core Data

645 Views Asked by At

Source Reference:Custom Core Data Migrations

I have been using a github module (Encrypted Core Data by Gavin Black) and it has come to my attention that automatic lightweight migration has the limitation where if:

1) If the device has a data model that is more than one version behind the most up-to-date model OR

2) No data model is created for the current version to the latest version

Automatic lightweight migration will not successfully migrate as expected. I ended up searching on Google and found the resource as pasted in the top confirming my suspicions.

A solution was proposed called the progressive migration and it worked successfully for a regular SQLite. However, when I tried to carry this implementation to ECD, I am running into problems. The exception is as follows:

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: ': An -observeValueForKeyPath:ofObject:change:context: message was received but not handled. Key path: migrationProgress Observed object: Change: { kind = 1; new = "0.02083333"; }

Has anyone experienced this before?

0

There are 0 best solutions below