Record video in Simulator Xcode 9 Beta

Shyam picture Shyam · Jun 6, 2017 · Viewed 13.6k times · Source

Apple's Whats new in Xcode 9 states that we can record videos of Simulators. How to do that?

Answer

Balasubramanian picture Balasubramanian · Jun 7, 2017

Taking a Screenshot or Recording a Video Using the Command Line:

  • Launch your app in Simulator.
  • Open terminal.

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.