I've got an app, and I use CoreData to store the data. Everything is working fine, but I wanted to easily access to my data, for verification purpose. So I had the idea to try to share the data with iTunes (UIFileSharingEnabled). Now I can see my database in iTunes, I can copy the .sqlite file on my mac, and I can verify the data with sqlite3.
All was OK, but I wanted to test something else, so I modified some datas in my app, and I'm not able to access the modified data. The .sqlite database is always a few days old. I have two other files in iTunes sharing (.sqlite-shm and .sqlite-wal), which are modified (the dates change when I modify the data), but I can't 'update' the .sqlite file.
I tried force-quitting the app on the iPhone, rebuilding the app, creating new datas instead of modifying, with no luck.
The data in my app is correct, so I assume that the modifications are stored in the two other files, but does anybody know what I can try to force the update of the .sqlite file?