While reading Oliver’s “Directories: Temp, Cache, Documents” lesson (they are all lessons for me and I really appreciate that he takes the time to teach us!) it made me wonder about files that the simulator uses once the App you are working on is loaded.

The reason I was wondering this is, I am working on an App that uses Apple’s core data and trying to put data in the SQLite database is a pain if you try to do it outside the App (at least for me). I found that to add another image into my file, I had to open it and select the blob and then delete and add the new image (stored as a blob).

Since the App could easily do this on the iPhone or Simulator, I found the SQLite file locally and and just replaced the file in X Code (after making a copy of course) and it worked! So, here are the places to look;

X Code stores the Simulator files here:
/Users/USER_NAME/Library/Application Support/iPhone Simulator/User/
In my case I was looking for the SQLite data file. I found it here:

/Users/USER_NAME/Library/Application Support/iPhone Simulator/User/Applications/[then the file with the very long name and with the date that matches the last time you ran/updated file/App]

And for the images that I wanted to use for the Photo Gallery option I located that here:

/Users/USER_NAME/Library/Application Support/iPhone Simulator/User/Media/DCIM/100APPLE/

Here is a little tip I found via Google to move images you want to use in your iPhone simulator.
1. Drag it to simulator, then Safari opens (or browse to the Image in the internet using Safari)
2. Hold your click on the image
3. When the pop-up appears, choose Save Image and enjoy 😉

Hope this helps any newbies like me.