Categories
Blog Code

Saving a video of the iOS simulator

If you want a quick way to save a video from the simulator, you can now write this on the command line:

xcrun simctl io booted recordVideo --codec "h264" --mask black --force ~/Downloads/Simulator-$(date +%Y-%m-%d_at_%H.%M.%S).mov

Then use the simulator as normal, and when you to finish the recording just press Crtl+C on the terminal.

You will find your video in the Downloads folder.

Note: This only works with Xcode version 11.4 and above.

By Sérgio Estêvão

Hello my name is Sérgio and I’m an experienced Mobile Software Architect living in Edinburgh.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s