Editing sqlite DB in Xcode doesn't make changes to my app

Discussion in 'iOS Programming' started by Pyro2b, Oct 4, 2008.

  1. Pyro2b macrumors newbie

    Joined:
    Aug 2, 2004
    Location:
    California
    #1
    Hi,

    I am trying to make changes to the database in my app, but the changes don't seem to take affect in my app. I am using MesaSQLite to edit the DB. I will change/add/delete records in the DB, but when I build and run my app on the phone, none of the changes have taken affect. Any ideas?

    Thanks!
     
  2. admanimal macrumors 68040

    Joined:
    Apr 22, 2005
    #2
    How are you setting up the database in your app? I assume you are copying the db file to your app's documents directory during the app's first run, and then on subsequent runs just opening the file in the documents directory. If that is the case, you need to completely erase the app from the device/simulator after you make the changes to the db or it is just going to use the older version that's already in the documents directory.
     
  3. Pyro2b thread starter macrumors newbie

    Joined:
    Aug 2, 2004
    Location:
    California
    #3
    Thanks!

    That was the ticket. Seems so simple now. Thank you!
     

Share This Page