且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何查看在iphone应用程序中运行的sqlite文件中的数据?

更新时间:2023-11-30 16:23:10

如果要在Simulator上运行时查看数据库,它位于以下位置

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