simctl recordVideo's mask=ignored option doesn't work

Originator:harshilshah1910
Number:rdar://45696209 Date Originated:31-Oct-2018 03:41 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 10.1
Classification:Other Bug Reproducible:Always
 
Summary:
simctl io has a recordVideo operation, which lets you specify a mask as an option. From the docs:

```
  --mask       For non-rectantular displays, handle the mask by policy:
	                 ignored: The mask is ignored and the unmasked framebuffer is saved.
	                 black: The mask is rendered black.
```

Passing in —mask=ignored, however, doesn’t seem to do anything. The output is the same as specifying no option, which is the same as passing in —mask=black

The mask option seems to work for the screenshot operation, however.

Steps to Reproduce:
1. Open the iOS simulator
2. Open a Terminal
3. Run the line: xcrun simctl io booted recordVideo --mask=ignored ~/Desktop/test.mp4
4. Switch to the simulator and open some apps, navigate around them, etc.
5. Switch back to the terminal and stop the recording

Expected Results:
Since the mask is to be ignored, the generated video file should be fullscreen, with no black areas for the sensor housing and rounded corners

Actual Results:
The mask is used in all but the very first screen at the start of the recording, and it is black thereafter. This is the same behaviour as passing in no options or the black option

Version:
Xcode 10.1

Notes:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!