DEV Community

loading...

Capture screenshot or record video of the iOS Simulator using Terminal

laurencaponong profile image Lauren Caponong ・1 min read

An alternative to using Quicktime or other ways of screengrabbing the simulator

Capture screenshot/photo of the iOS simulator

Usage:
xcrun simctl io booted screenshot myImageScreenshot.png

Steps:

  1. Launch simulator
  2. Open Terminal and enter the above command
  3. The current directory will contain your saved screenshot

Record a video of the iOS simulator

Usage:
xcrun simctl io booted recordVideo myNewVideo.mov

Steps:

  1. Launch simulator
  2. Open Terminal and enter the above command, this will start the video recording
  3. When you are done recording, hit CTRL & C

The current directory will contain your saved video

Discussion

pic
Editor guide
Collapse
hunterpp profile image
Hunter Peress

Super Cool!!! Thank you!!