simctl io screenshot <file or url>
Saves a screenshot as a PNG to the specified file or url(use '-' for stdout)
Arguments
Name | Description |
---|
file or url | |
Options
Name | Description |
---|
--type | Can be 'png', 'tiff', 'bmp', 'gif', 'jpeg'. Default is png |
--display | iOS: supports 'internal' or 'external'. Default is 'internal'. tvOS: supports only 'external' watchOS: supports only 'internal'. You may also specify a port by UUID |
--mask | For 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 |