I've tried the solution described here and here, namely copying a QuickTime movie to ~/Library/Application Support/iPhone Simulator/User/Media/DCIM/100APPLE/VID_0001.m4v
, but this doesn't seem to do anything, and I'm guessing something's changed since iOS 3.2 to make it not work.
Note that I'd very much prefer a solution that doesn't involve adding code to my app, unless that really is the only way to do it.
ETA: I know that it's possible to include video files as a resource; what I want is to add video files to the camera roll -- as can be done with photos by (for instance) saving images from Safari -- so I can test functionality that involves picking media files.
Updated again: If somebody can definitively tell me it's not possible, with references, that would be helpful too.
For XC6 simulators, you can search for the simulator directory with this command-line command:
For example, if you want to find the directory with the "5s" device:
grep -r -e "5s" --include="device.plist" ~/Library/Developer/CoreSimulator/Devices
Once you have the folder, you can navigate to:
<your-sim>/data/Media/DCIM/100APPLE
and copy your files in there. When you launch the simulator, you should open the Photos app and it should "restore" the metadata for the media. If that's not the case, you can also remove the "Downloads" and "PhotoData" folders and relaunch the simulator.