Apple's Whats new in Xcode 9 states that we can record videos of Simulators. How to do that?
Taking a Screenshot or Recording a Video Using the Command Line:
To take a screenshot, use the screenshot operation:
xcrun simctl io booted screenshot
To record a video, use the recordVideo operation:
xcrun simctl io booted recordVideo <VideoFILENAME>.<extension>
To stop recording, press Control-C in Terminal.
Note: It works only on Mac computers that support Metal . You can check your PC here.