Skip to content
This repository was archived by the owner on Dec 19, 2019. It is now read-only.
This repository was archived by the owner on Dec 19, 2019. It is now read-only.

Model Migrator is broken since iOS 7 #88

@blork

Description

@blork

SQKModelMigrator.m generates a new SQLIte file then moves this into the place of the previous file. Since iOS7, moving just the SQLite file is not enough, since there are new index/transaction files stored alongside it. iOS will attempt to use these old metafiles with the new SQLite file. This means if the migrator runs, the SQLite file that it generates cannot be opened by iOS and it believes it to be corrupted.

I believe the solution would be to also delete the other files (-WAL, -SHM). As this project is archived, this will not be fixed. If you still need to use it, then just pass nil as the argument for orderedManagedObjectModelNames. You will lose the migration behaviour, but it is broken anyway.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions