如何查看在 iphone 应用程序中运行的 sqlite 文件中的数据? [英] How to view the data in sqlite file running in iphone application?

查看:35
本文介绍了如何查看在 iphone 应用程序中运行的 sqlite 文件中的数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在iphone中运行的应用程序中查看sqlite文件中的数据,就像我们使用mysql工作台查看数据库的内容

How to view the data which is present in the sqlite file in an application running in iphone , like we use mysql work bench to view the contents of the database

推荐答案

如果你想在模拟器上运行时查看你的数据库,它位于以下位置

If you want to view your database when running on Simulator it is located at the following location

user/Library/Application Support/iPhone Simulator/version of SDK(4.2eg)/Applications/4AF938D6-E981-4971-A588-3424B64E7EE7(eg)/Documents/yourdatabase.sqlite

如果您想查看设备中的数据库,则可以使用 iExplorer 之类的软件.

If you want to view the database in your device then you can use a software like iExplorer.

干杯

sqlite 文件的位置已更改.

Edit : The location of sqlite file has changed.

它目前驻留在:

/User/Library/Application Support/iPhone Simulator/version of SDK(eg-7.0)/Applications/4AF938D6-E981-4971-A588-3424B64E7EE7(eg)/Library/Application Support/app_name/yourdatabase.sqlite

位置再次更改.它现在驻留在:

Edit : The location has changed again. It now resides in:

/User/Library/Developer/CoreSimulator/Devices/789A1317-6C55-4615-A72E-65C824D8C6B9(eg)/data/Containers/Data/Application/0470F5FC-0043-46B7-A21C-A436A56ED714(eg)/Documents/yourdatabase.extension

这篇关于如何查看在 iphone 应用程序中运行的 sqlite 文件中的数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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