-
63 votesanswersviews
iPhone核心数据“自动轻量级迁移”
我正在尝试更新实现核心数据存储的应用程序 . 我正在为其中一个实体添加一个属性 . 我将以下代码添加到我的委托类: - (NSPersistentStoreCoordinator *)persistentStoreCoordinator { if (persistentStoreCoordinator != nil) { return persistentStoreCoo... -
1 votesanswersviews
无用的核心数据迁移错误 - 无法完成操作
我正在进行手动迁移,主要使用此stackoverflow答案作为指南:https://stackoverflow.com/a/8155531/5416 我有3个需要迁移的独立实体 . 每个属性上只有一个属性在变化,并且它从一个整数变为一个字符串 . 有些实体看起来很好,并没有抛出异常,但是这个过程没有完成 . 它列出了一堆基本完全相同的错误: 错误域= NSCocoaErrorDomain代码=... -
2 votesanswersviews
什么是.appname.sqlite.migrationdestination_xxxx文件?它会导致sql损坏错误吗?
我正在使用CoreData开发iOS应用程序 .我从用户那里获得了包含以下隐藏文件的应用程序数据 . Documents / .appname.sqlite.migrationdestination_xxxx(549MB) Documents / .appname.sqlite.migrationdestination_xxxx-shm(721KB) Documents / .appn...