how to record screen in simulator ios 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>