Reputation: 8741
I'm trying to add a video to my Photos app in the simulator. I've been using the Safari trick (How do I add images to the iOS Simulator) for a long time but doesn't work for me with the iOS7.1 simulator.
When I drag from the Finder I get the green + sign but the video doesn't play in Safari so I can't save it to Camera Roll.
It works fine for the iOS8 simulator with Xcode6.
Upvotes: 7
Views: 4093
Reputation: 657
As of iOS 12, simply drag and dropping the video directly on the Photos app in the simulator seems to do the trick!
I'm facing the same problem with iOS 7.1 Simulator but I found the following solution.
Hope this helps
Upvotes: 9
Reputation: 3146
Per your request to copy my above comment into an answer...
You should be able to do this by dragging the video into your application's folder, and then inserting it programmatically. See this post.
Glad that worked for you! Obviously, make sure that's not in any production code.
Upvotes: 4
Reputation: 21140
Rename the file to .m4v then drag it into the simulator, Safari will open, then you can share to camera roll.
Upvotes: 3