简体   繁体   English

在iPhone的哪里找到数据库?

[英]Where to find my DB in my iPhone?

I have a problem with my App. 我的应用程序有问题。 In the update I'm testing I'm modifying the DB adding a column to a table. 在测试中,我正在修改数据库,在表中添加一列。 Everything works just fine in the simulator, but when I run the App in my iPhone, at the moment it reaches the query where the new column is, it completely skips the while(sqlite3_step(stmt) == SQLITE_ROW) and returns no rows to my tableview. 一切在模拟器中都可以正常运行,但是当我在iPhone中运行该应用程序时,当它到达查询新列所在的位置时,它会完全跳过while(sqlite3_step(stmt)== SQLITE_ROW),并且不返回任何行我的tableview。

I want to check if the DB in my iPhone has been updated correctly but I don't know where to find it. 我想检查iPhone中的数据库是否已正确更新,但是我不知道在哪里可以找到它。

If you want to find the DB,On your device follow this steps 如果要查找数据库,请在设备上执行以下步骤

1.Go to organize window of your x-code. 1.转到您的X代码的整理窗口。

2.There you can find a option name as device on the top bar. 2.在顶部栏中,您可以找到一个选项名称作为设备。

3.ClIck on device your connected device has greens button side. 3.点击设备上的所连接设备的绿色按钮侧。

4.Click on your device,go to application there you can see a folder as Document.On the folder your DB reside.Download your DB and test. 4.单击您的设备,转到应用程序,您可以在其中看到一个文件夹为Document。在数据库所在的文件夹中。下载数据库并进行测试。

Well exactly where the DB is depends on where you put it. 那么,数据库的确切位置取决于放置它的位置。 However all app files are stored within this folder when using the simulator, so it will be somewhere in here - 但是,使用模拟器时,所有应用程序文件都存储在此文件夹中,因此它将位于此处-

~/Library/Application Support/iPhone Simulator/ 〜/图书馆/应用程序支持/ iPhone模拟器/

You can access this by going to 'Go', then 'Go To Folder', from the menu bar in OSX 您可以通过从OSX的菜单栏中依次转到“转到”和“转到文件夹”来访问此文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM