Skip to content

Instantly share code, notes, and snippets.

@m3rkus
Forked from JohnSundell/simrecord
Created March 24, 2018 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save m3rkus/12867c63fb38e93be512ca17c95e4feb to your computer and use it in GitHub Desktop.
Save m3rkus/12867c63fb38e93be512ca17c95e4feb to your computer and use it in GitHub Desktop.
🎥 Script that lets you start a video recording from the iOS simulator with one command
#!/bin/bash
ITERATION=1
EXTENSION="mp4"
FILENAME="$HOME/Desktop/Simulator Recording.$EXTENSION"
while [ -e "$FILENAME" ]
do
ITERATION=$((ITERATION+1))
FILENAME="$HOME/Desktop/Simulator Recording $ITERATION.$EXTENSION"
done
xcrun simctl io booted recordVideo "$FILENAME" --type $EXTENSION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment