Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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.

— asked July 8th 2010 by Kenn Nesbitt
  • database
  • iphone
  • simulator
0 Comments

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

    :)

    — answered July 8th 2010 by Dan Tamas
    permalink
    0 Comments
  • 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!

    — answered July 8th 2010 by Kenn Nesbitt
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.