Where is the database on the computer when app is running in the simulator?
I know I've figured this out before, but somehow I've forgotten and can't seem to find what I'm looking for.
I have a iPhone app with a database. I wrote some code to update the database, and now I want to get the updated database and replace the one in the app's resources with it.
I thought it would be in the package at build/iPhone/build/Debug-iphonesimulator/APPNAME, but when I open that package, the database isn't there.
Can anyone tell me where I can find the database that is being used by the simulator? As I said, I know I've done this before, but now I'm stumped.
2 Answers
-
Accepted Answer
~/Library/Application Support/iPhone Simulator/OS-version(1.3.1 let's say )/Applications/app-id(big string)/Application Support/database/db-name_db.sql
:)
-
Perfect! That was it. In case anyone else is looking, it's actually:
~/Library/Application Support/iPhone Simulator/OS-version(1.3.1 let's say )/Applications/app-id(big string)/Library/Application Support/database/db-name_db.sql
but your answer got me what I needed. Thanks Tamas!