Hey,
I'm trying to record video from simulator - saving output to regular file works fine. I noticed in help, that this should be possible to redirect it to url: recordVideo [--codec=<codec>] [--display=<display>] [--mask=<policy>] [--force] <file or url>. I was trying to use different types of url, i.e. udp://127.0.0.1:9999 or tcp://127.0.0.1:9999 etc, but nothing works, I always get following error: Couldn't create an asset writer for writing video frames: allocationErrorError starting video recorder: simctl.SimulatorError.allocation Error. An error was encountered processing the command (domain=simctl.SimulatorError, code=2): We could not allocate necessary AV objects to perform the recording.
I was also trying to redirect it to different process, but it seems like this method was abandoned for some reason: xcrun simctl io booted recordVideo - | nc 127.0.0.1 9999
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22): Error: rendering to standard out is no longer supported. Invalid argument
Do you have any idea, why this was abandoned? Or how can I stream video from my simulator using socket?
I'm using CoreSimulator 776.4.