Created
April 10, 2020 16:31
-
-
Save mfdeveloper/97951daf1fd035b33d6e9fa70a6f11da to your computer and use it in GitHub Desktop.
Record the IOS Simulator screen using command `xcrun simctl`
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
# 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