How to Add Pictures to the iPhone Simulator

This was a problem I had early on – most of my apps required use of the camera or the photo library.

For the longest time I believed that you couldn’t test the photo library on the simulator. I was wrong, it is actually pretty easy to get pictures into the simulator for testing. This video will show you a quick example of how to do this:

Essentially, all you need to do is drag a picture file onto the Safari icon in the simulator and when it shows up click on it until you get a “Save Image” dialog. Press that button and presto – your image will be in the photo library.

4 Responses to How to Add Pictures to the iPhone Simulator

  1. wuf810 September 8, 2009 at 8:17 pm #

    Thanks Matt.

    Another way is to add images directly to the Application Support/iPhone Simulator/Media folder but its a bit more fiddly and images have to named correctly and in order.

    However one thing I’ve not achieved is adding movies into simulator so I can test 3GS functionality…anyone managed this?

  2. iPhoneKicks.com September 9, 2009 at 10:58 pm #

    How to Add Pictures to the iPhone Simulator…

    You’ve been kicked (a good thing) – Trackback from iPhoneKicks.com – iPhone SDK links, community driven…

  3. How to Add Pictures to the iPh September 14, 2009 at 9:34 am #

    [...] here: How to Add Pictures to the iPhone Simulator Xcode iPhone Development Share and [...]

  4. srewu1 April 17, 2012 at 3:02 pm #

    Thanks!! Just what I was looking for my iphone simulator!

Leave a Reply

Affiliate Policy Disclosure

Switch to our mobile site