DEV Community

Lauren Caponong
Lauren Caponong

Posted on

6

Capture screenshot or record video of the iOS Simulator using Terminal

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

Top comments (1)

Collapse
 
hunterpp profile image
Hunter Peress

Super Cool!!! Thank you!!

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs