Last active
February 6, 2022 15:02
-
-
Save b3ll/77da1db0b9b1a7cf01d340de9a62dea5 to your computer and use it in GitHub Desktop.
Record iOS Simulator Fish Function
This file contains hidden or 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
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 |
ctrl + c
is the only way to stop the recording ?
yup!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is a cool function .. thank you