使用iOS Simulator进行App Preview录制会导致NSPOSIXErrorDomain出现代码22错误

MD.*_*Dip 11 xcode ios ios-simulator swift

我试图通过在终端中实现命令从ios模拟器捕获用于App Preview的视频。

但是当我尝试使用下面的命令时

xcrun simctl io booted recordVideo appPreview.mp4

终端给我错误:

An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22):
Selected interface does not support video recording.
Invalid argument
Run Code Online (Sandbox Code Playgroud)

有人可以解释这里的问题是什么以及如何解决这个问题?

我正在使用XCODE版本11.0 beta 5(11M382q)

并运行ios模拟器Xs Max

在此处输入图片说明

chu*_*s52 7

这是一个已知问题"Video recording of the iOS 13, tvOS 13, and watchOS 6 simulator through xcrun simctl io <UDID> recordVideo returns an error instead of recording video. (50625716)"

无关,但Xcode 11 GM已淘汰-Beta 5已过时。