How to view coredata database externally?

Discussion in 'iOS Programming' started by doanelinde, Sep 10, 2009.

  1. doanelinde macrumors member

    Joined:
    Jul 24, 2009
    #1
    Is there a way to view to view your coredata database by locating the file and opening it?

    I need to check what data is actually in my database, as my code isn't pulling anything from it but I think it might simply be an error in the code..
     
  2. xStep macrumors 68000

    Joined:
    Jan 28, 2003
    Location:
    Less lost in L.A.
    #2
    I take it you mean your SQLite database.

    The simulator holds your work in "~/Library/Application Support/iPhone Simulator/User" in oddly named folders. Looking in each one, you'll see names of your created applications. Right click on the application name and choose "Show Package Contents". You should see your database file name in there which you should be able to open in SQLite.

    I don't know if there is a way to do that for an application on a device, or it's backup, which is what I'm interested in.
     

Share This Page