I am copying a SQLite file to the “Documents” directory of my iPhone/Simulator.
First I deleted the app off my phone and from the simulator and the app folder disappeared in “Application Support / iPhone ” folder.
I made changes to the structure, deleted old version and copied new version to my “Resources” folder. Restarted my app which then copied the file back to the “Application Support / iPhone ” fine.
The problem was though the file seemed to be cached as it would not execute queries on the new tables I added?
I have now fixed this by following the above steps BUT also renaming the database, but was wondering if anyone could shed some light on this?
Thanks
James
Had to renamed the files as Cleaning the targets did not seems to work.