Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App Preview recording with iOS Simulator cause NSPOSIXErrorDomain with code 22 ERROR

I was trying to capture video for app Preview from ios simulator with implementing command in terminal.

but when i try to use the command bellow

xcrun simctl io booted recordVideo appPreview.mp4

the terminal gives me the error:

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

can someone explain what is the problem here and how to resolve this problem?

I am using XCODE Version 11.0 beta 5 (11M382q)

and running ios simulator Xs Max

enter image description here

like image 946
MD Sazid Hasan Dip Avatar asked Sep 15 '19 19:09

MD Sazid Hasan Dip


2 Answers

It is a known issue. "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)"

Unrelated, but the Xcode 11 GM is out - beta 5 is outdated.

like image 160
chumps52 Avatar answered Oct 21 '22 18:10

chumps52


This is fixed in Xcode 11.2; installing that version of Xcode will upgrade your CoreSimulator which also fixes Xcode 11.0 and 11.1.

like image 22
russbishop Avatar answered Oct 21 '22 19:10

russbishop