Skip to content

Instantly share code, notes, and snippets.

@b3ll
Last active February 6, 2022 15:02
Show Gist options
  • Save b3ll/77da1db0b9b1a7cf01d340de9a62dea5 to your computer and use it in GitHub Desktop.
Save b3ll/77da1db0b9b1a7cf01d340de9a62dea5 to your computer and use it in GitHub Desktop.
Record iOS Simulator Fish Function
function simrecord
if count $argv > /dev/null
set save_dir $argv
else
set save_dir ~/Downloads
end
pushd $save_dir
xcrun simctl io booted recordVideo --mask black --codec "h264" SimulatorRecording-(date +%F)-(date +%H.%M.%S).mov
popd
end
@mesheilah
Copy link

ctrl + c is the only way to stop the recording ?

@b3ll
Copy link
Author

b3ll commented Aug 31, 2020

yup!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment