CoreData数据库在sqlite中不显示,因为移动到Xcode 5 [英] CoreData database not showing in sqlite since moving to Xcode 5

查看:295
本文介绍了CoreData数据库在sqlite中不显示,因为移动到Xcode 5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用 CoreData 数据库的应用程序,我使用 sqlite 查看其内容。数据库路径是相同的:

I have an app that uses a CoreData database the contents of which I view using sqlite. The database path is the same:

/ Users / Comp1 / Library / Application Support / iPhone Simulator / 7.0.3 / Applications / 16226A0A-575C-4356-BFAA-6B1A009C0585 / Documents

/Users/Comp1/Library/Application Support/iPhone Simulator/7.0.3/Applications/16226A0A-575C-4356-BFAA-6B1A009C0585/Documents

,我可以看到数据库文件。但是当我在sqlite打开它似乎没有数据,虽然我可以通过应用程序阅读。

and I can see the database file. But when I open it in sqlite there appears to be no data, although I can read through the app.

它工作正常,直到我加载Xcode 5.有谁知道为什么会是这样?

It was working fine until I loaded Xcode 5. Does anyone know why this might be?

没有表格显示:

推荐答案

在iOS 7中,SQLite现在已开启日志功能。我不知道日志是否导致混乱(数据是有,但在sqlite文件中还没有)。

In iOS 7, SQLite now has journaling turned on. I wonder if the journalling is causing a confusion (data is there but not in the sqlite file yet).

如果你看到第二次启动的数据,关于它。日志只是没有刷新。

If you see data on the second launch then don't worry about it. The journaling just hasn't flushed.

这篇关于CoreData数据库在sqlite中不显示,因为移动到Xcode 5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆