I'm trying to create an app preview video using the iOS command line simulator tool, which produces video, like so.
xcrun simctl io booted recordVideo
However, videos don't include audio. I have seen that videos aren't possible unless you have support for metal, which I do.
I've seen some conflicting answers, although mentions the mic Is it possible to record actual sound on the simulator using mic
I need to automate this process as I have a lot of videos (languages / devices) where I need to produce videos ( I can provided more details about this).
I'm currently using an automated UI Test to run through my app and produce the video.
I've also seen a method using applescript and quicktime player, but this doesn't appear to work with the simulator and I'll have problems using automated tests.
How to screen record iOS-real device with command?
Alternatively I'm looking to record the audio from my app separatly from the simulator perhaps using something like soundflower. However I will need to do this from the command line / script. Then I'll have to join them together from the command line.