I am trying to record the screen of my iOS 11.4 simulator with xcrun simctl io booted recordVideo recording.mov
. This creates a file with that name, but unfortunately that file always has the size of 0 byte. Playing around with the --type
parameter did not help either. Occasionally there was a playable file, which also was corrupted to a degree, as this file had a distorted look to it when opened in QuickTime. VLC could not play it at all.
I am using Xcode 9.4.1 on a 2014 MacBook Pro with discrete GPU, so Metal is supported.
Does anyone have suggestions to solve my problem?
There was a timing bug in video recording that could result in 0-byte files on some systems. I'm sorry, but there is unfortunately no workaround. This should be addressed with changes in Xcode 10 Beta 3+.