UIManagedDocument Vnode未链接的Sqlite错误

时间:2018-12-10 21:22:37

标签: sqlite uimanageddocument

我正在使用UIManagedDocuments。

我刚刚发现应用程序进入后台并且打开文档时出现了一个问题:假设我打开了一个文档(状态更改为“普通”),然后按“主页”按钮将应用程序置于后台。什么都没发生,一切都很好。但是,当我重新打开应用程序时,在控制台中出现了以下错误:

2018-12-10 22:12:33.628883+0100 CamList[26869:6139688] Document State Did Change: [Editing Disabled]
2018-12-10 22:12:33.629888+0100 CamList[26869:6139759] [logging] BUG IN CLIENT OF libsqlite3.dylib: database integrity compromised by API violation: vnode unlinked while in use: /private/var/mobile/Containers/Data/Application/0849C708-BB47-471E-A4A3-E263E7728E23/Documents/Projects/43CE9ECA-B3B3-42EA-A77F-85877AB1E301.camlist/StoreContent/persistentStore-shm
2018-12-10 22:12:33.629921+0100 CamList[26869:6139759] [logging] invalidated open fd: 14 (0x11)
2018-12-10 22:12:33.629926+0100 CamList[26869:6139988] [logging] BUG IN CLIENT OF libsqlite3.dylib: database integrity compromised by API violation: vnode unlinked while in use: /private/var/mobile/Containers/Data/Application/0849C708-BB47-471E-A4A3-E263E7728E23/Documents/Projects/43CE9ECA-B3B3-42EA-A77F-85877AB1E301.camlist/StoreContent/persistentStore
2018-12-10 22:12:33.629949+0100 CamList[26869:6139988] [logging] invalidated open fd: 12 (0x11)
2018-12-10 22:12:33.630051+0100 CamList[26869:6139988] [logging] BUG IN CLIENT OF libsqlite3.dylib: database integrity compromised by API violation: vnode unlinked while in use: /private/var/mobile/Containers/Data/Application/0849C708-BB47-471E-A4A3-E263E7728E23/Documents/Projects/43CE9ECA-B3B3-42EA-A77F-85877AB1E301.camlist/StoreContent/persistentStore-wal
2018-12-10 22:12:33.630157+0100 CamList[26869:6139988] [logging] invalidated open fd: 13 (0x11)
2018-12-10 22:12:33.649334+0100 CamList[26869:6139688] Document State Did Change: [Normal]

我再也无法访问对象/关系了。怎么了? 我应该在applicationWillResignActive上关闭文档,然后在applicationDidBecomeActive上重新打开它吗?

为什么我告诉数据库文件未链接?

非常感谢

0 个答案:

没有答案