how to record video in xcode simulator code example
Example: screen record ios simulator
// when iOS simulator is running
xcrun simctl io booted recordVideo <filename>.<file extension>
// when iOS simulator is running
xcrun simctl io booted recordVideo <filename>.<file extension>