Skip to content

Instantly share code, notes, and snippets.

@mfdeveloper
Created April 10, 2020 16:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mfdeveloper/97951daf1fd035b33d6e9fa70a6f11da to your computer and use it in GitHub Desktop.
Save mfdeveloper/97951daf1fd035b33d6e9fa70a6f11da to your computer and use it in GitHub Desktop.
Record the IOS Simulator screen using command `xcrun simctl`
# Copy + paste the function below into your
# ~/bash_profile or ~/.zshrc file
#
# Based in links below:
# [](https://www.avanderlee.com/workflow/capture-ios-simulator-video-app-preview/)
# [Error to find simctl](https://stackoverflow.com/questions/29108172/xcrun-unable-to-find-simctl)
## Starts recording the simulator.
recsim() {
echo -n "Use CTRL+C to stop recording";
xcrun simctl io booted recordVideo "$1";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment