simctl io screenshot <file or url>

Saves a screenshot as a PNG to the specified file or url(use '-' for stdout)

Arguments

NameDescription
file or url

Options

NameDescription
--typeCan be 'png', 'tiff', 'bmp', 'gif', 'jpeg'. Default is png
--displayiOS: supports 'internal' or 'external'. Default is 'internal'. tvOS: supports only 'external' watchOS: supports only 'internal'. You may also specify a port by UUID
--maskFor non-rectangular displays, handle the mask by policy: ignored: The mask is ignored and the unmasked framebuffer is saved. alpha: The mask is used as premultiplied alpha. black: The mask is rendered black