simctl io recordVideo <file or url>

Records the display to a QuickTime movie at the specified file or url

Arguments

NameDescription
file or url

Options

NameDescription
--codecSpecifies the codec type: 'h264' or 'hevc'. Default is 'hevc'
--displayiOS: supports 'internal' or 'external'. Default is 'internal'. tvOS: supports only 'external' watchOS: supports only 'internal'
--maskFor non-rectangular displays, handle the mask by policy: ignored: The mask is ignored and the unmasked framebuffer is saved. alpha: Not supported, but retained for compatibility; the mask is rendered black. black: The mask is rendered black
--forceForce the output file to be written to, even if the file already exists