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
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.
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.