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 arbitrary SQL against it.
When I run my app in the simulator, the .sqlite file it creates is located at ~/Library/Application Support/iPhone Simulator/User/Applications/.
How can I see that file on the physical iPhone?
In Xcode select window->organizer and expand the node next to your application in the applications section on your phone. Select the black downward pointing arrow next to application data and save the file anywhere on your desktop. Your sqlite database should be in there somewhere.
As for how to go about getting it back on the phone once your done i have no clue.