Where is the sqlite3 database stored on the iphone emulator?

Now that I have a read-only application running, I am working on an insert statement. Paste returned OK to my code, but the reverse code (in the code) turned out to be empty, so I want to use the command line or browser to read. Can I copy the database from the emulator and to my laptop for access with other utilities?

+2


a source to share


2 answers


You can access your application's document directory at ~/Library/Application Support/iPhone Simulator/<SDK VERSION>/Applications/<SOME RANDOM HASH>/Documents



Please note that the SDK version will differ depending on what you are building, and the hash is difficult to tell which one belongs to you. Just browse the folders and find the binary YOURAPP.app

to figure it out.

+8


a source


Which database? Assuming you created it in the application documents folder, the application sandboxes for the simulator reside in ~/Library/Application Support/iPhone Simulator/<version>/<uuid>

and contain the application as well as its documents, libraries, and tmp directories.



0


a source







All Articles