【发布时间】:2019-05-29 05:54:33
【问题描述】:
在迁移到新的 CoreData 模型时,我遇到了一些设备上发生的奇怪崩溃,由 Firebase 和 Xcode 崩溃历史报告。唯一需要完成的 chan 和添加 3 个新属性是删除一个表/对象中的几个属性。我已经重新生成了类并升级了模型版本,因为它不需要轻量级迁移。
我得到的只是:
crash_info_entry_0
Fatal error: Error migrating store: Error Domain=NSCocoaErrorDomain Code=256
"The file "<FileName>.sqlite" couldn't be opened." UserInfo={NSFilePath=/var/mobile/Containers/Data/Application/45859729-F07E-4006-8742-3B53DF6D1CE9/Documents/<FileName>.sqlite, NSSQLiteErrorDomain=23}: file /ProjectName/Repo/Models/Storage/CoreData/CoreDataEngine.swift, line 137
我使用的是 Swift 4.2。
【问题讨论】:
-
你找到解决这个问题的方法了吗?我遇到了完全相同的问题,并且已经没有如何调试它的想法了。
标签: ios core-data core-data-migration