screen record ios simulator

C++
// when iOS simulator is running
xcrun simctl io booted recordVideo <filename>.<file extension>
Source

Also in C++: