Xcode iOS 7中的CoreData迁移

Xcode iOS 7中的CoreData迁移,xcode,core-data,ios7,core-data-migration,Xcode,Core Data,Ios7,Core Data Migration,最终实现了迁移,这是一个巨大的痛苦 在iOS6中一切正常,但在iOS7中,应用程序崩溃根据您的评论和在的错误报告,我猜完整的信息如下: CoreData: error: failure reading metadata plist with data bytes: <33> Unable to open database. Error: The file couldn’t be opened because it isn’t in the correct format. Info:

最终实现了迁移,这是一个巨大的痛苦


在iOS6中一切正常,但在iOS7中,应用程序崩溃

根据您的评论和在的错误报告,我猜完整的信息如下:

CoreData: error: failure reading metadata plist with data bytes: <33>
Unable to open database. Error: The file couldn’t be opened because it isn’t in the correct format.
Info: {
    NSUnderlyingException = "An error <null> occurred converting the metadata plist data: <33>";
}
…同时删除两个额外的文件


对于将来的工作,将持久存储文件放在自己的目录中而不放其他文件是很有用的。然后,如果您需要删除存储,只需一步删除目录,而无需关心SQLite或Core Data可能会创建哪些其他额外文件。

崩溃时会出现什么错误消息和/或症状,以及在迁移过程的哪个部分?如果没有一些细节,说它崩溃是完全没有用的。首先,感谢您的回复,所以当我试图将我的持久存储添加到我的持久存储协调器时,它会崩溃,错误为CoreData:error:failure读取带有数据字节的元数据plist:
success = [[NSFileManager defaultManager] removeItemAtURL:storeURL error:error];