Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get video into the iPhone simulator camera roll in iOS 4.2?

Tags:

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.

like image 249
David Moles Avatar asked Jan 06 '11 19:01

David Moles


People also ask

How do you put videos on iPhone simulator?

It's very simple you just drag any . MOV file to your simulator. Now it will be opened in Safari browser.

How do I access iOS simulator files?

# Open application folder in Finder First, copy the path to the app folder from Xcode console. Then open Finder, click on Go -> Go to Folder and paste the application directory path. You will now be able to browse all the files in your application folder.

Can iOS simulator use camera?

Camera functionality is not available in any iOS version and in any Simulator. You will have to use a real device for camera testing purposes.


1 Answers

I found a way that seems to work in most versions of the simulator (confirmed for 6.1):

  1. Start up the simulator and navigate to the photos app from the home screen.
  2. Drag and drop an .m4v file from your file system onto the simulator window. The video will now be playing in safari.
  3. Click "done" in the upper left hand corner.
  4. Click on the "share" button and select "save to camera roll"

You're done!

like image 183
Pwnosaurus Avatar answered Sep 23 '22 10:09

Pwnosaurus