A quick guide explaining how to use xcrun to record videos.
Introduction
It’s easy to take a static screenshot when using the iOS Simulator from inside the application but to capture video it’s necessary to use the command line tool xcrun.
How it works
Run from the command line…
xcrun simctl io booted recordVideo myVideo.movxcrun simctl io booted recordVideo myVideo.movWhere myVideo.mov is the name of your video.
⌃ + c stops the recording.
The video will be saved to the current directory (you can use pwd to display that if you are unsure what it is).