Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Record video in Simulator Xcode 9 Beta

Tags:

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

like image 476
Shyam Avatar asked Jun 06 '17 12:06

Shyam


1 Answers

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.

like image 167
Balasubramanian Avatar answered Oct 21 '22 06:10

Balasubramanian