Skip to content

Instantly share code, notes, and snippets.

Last active December 13, 2016 15:26
What would you like to do?
Record video from the running (> Xcode 8.2) simulator and convert it to gif
xcrun simctl io booted recordVideo "$tmp_file"
ffmpeg -i "$tmp_file" -pix_fmt rgb24 -r 10 -f gif - \
| gifsicle --optimize=3 > "$output"
rm -r "$tmp_file"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment