-
-
Save aainaj/cca41f334d3c4b2badbe1249f8f136b1 to your computer and use it in GitHub Desktop.
🎥 Script that lets you start a video recording from the iOS simulator with one command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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