How do I access SQLite database instance on iPhone?

前端 未结 8 616
予麋鹿
予麋鹿 2021-01-30 05:19

I\'m developing an iPhone app that uses the built-in SQLite database. I\'m trying to view and open the database via the sqlite3 command line tool so I can execute a

相关标签:
8条回答
  • 2021-01-30 05:56

    Exactly in the same way you do on the simulator. There are very few (important) differences between the device and simulator, and file access and library loading are for the most part not part of them.

    0 讨论(0)
  • 2021-01-30 05:59

    In XCode 4, you do the same as Lounges suggested, which will save the whole file structure for your app to your destination of choice. Rename the .xcappdata file which is saved to .sqlite so you can open it by double clicking, then you can find the file from the device.

    0 讨论(0)
提交回复
热议问题