在 xcode 5 中使用 sqlite 浏览器查看核心数据

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19100649/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 03:58:11  来源:igfitidea点击:

viewing coredata with sqlite browser in xcode 5

iosxcodesqlitecore-data

提问by Dave Pinner

Since upgrading to XCode 5, I am unable to view data in the sqlite file in my Applications Folder. The folder structure has changed somewhat but I can still find the correct App but when I open the sqlite file with the sqlite browser there does not appear to be any data in CoreData. Any ideas?

升级到 XCode 5 后,我无法查看应用程序文件夹中 sqlite 文件中的数据。文件夹结构发生了一些变化,但我仍然可以找到正确的应用程序,但是当我使用 sqlite 浏览器打开 sqlite 文件时,CoreData 中似乎没有任何数据。有任何想法吗?

回答by Petro Korienev

I suggest you to use CoreDataProapp for viewing your CoreData storage.
My forkhas minor improvement - alphabetical ordering of Simulator managed object models.

我建议您使用CoreDataPro应用程序来查看您的 CoreData 存储。
我的fork有一些小改进 - Simulator 管理对象模型的字母顺序。

回答by Arek Holko

In iOS 7 SQLite's Write-Ahead Loggingis turned on by default. In this mode data is split into three files (.sqlite, .sqlite-shm, .sqlite-wal). I've seen that some SQLite viewers ignore .sqlite-shm and .sqlite-wal files, thus not showing proper data.

在 iOS 7 SQLite 的Write-Ahead Logging默认开启。在这种模式下,数据被分成三个文件(.sqlite、.sqlite-shm、.sqlite-wal)。我已经看到一些 SQLite 查看器忽略 .sqlite-shm 和 .sqlite-wal 文件,因此没有显示正确的数据。

回答by Arek Holko

I'm using SQLite Managerplugin in Firefox, it works pretty decent.

我在 Firefox 中使用SQLite Manager插件,它工作得相当不错。

You can get the plugin here https://addons.mozilla.org/en-US/firefox/addon/sqlite-manager/

你可以在这里获取插件https://addons.mozilla.org/en-US/firefox/addon/sqlite-manager/

After you install the plugin you will see 'SQLite Manager' (with a database icon in blue color) item in Tools menu.

安装插件后,您将在“工具”菜单中看到“SQLite 管理器”(带有蓝色数据库图标)项目。