Skip to content

Instantly share code, notes, and snippets.

@JohnSundell
Created March 16, 2018 21:05
Embed
What would you like to do?
🎥 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