Capture iOS simulator video for App Preview – onlinecode
In this post we will give you information about Capture iOS simulator video for App Preview – onlinecode. Hear we will give you detail about Capture iOS simulator video for App Preview – onlinecodeAnd how to use it also give you demo for it if it is necessary.
Creating an app preview video can be really easy using the simulator in just a few steps.
- Open the simulator and run your app
- Open the terminal
- Start recording using the following command:
xcrun simctl io booted recordVideo <filename>.<file extension>
, for example:xcrun simctl io booted recordVideo app-preview.mp4
- Press
ctrl + c
to stop recording
Recording a video from the simulator can be a lot easier using an alias in your bash profile.
- Open your
.bash_profile
. Create one if it does not yet exist. More info can be found here: Creating a .bash_profile on your mac - Add the following function:
## Starts recording the simulator.
recsim() {
echo -n "Use CTRL+C to stop recording";
xcrun simctl io booted recordVideo "$1";
}
- Use the command in your terminal:
recsim app-preview.mp4
That’s it! An easy way to create your app preview video using the simulator.
Hope this code and post will helped you for implement Capture iOS simulator video for App Preview – onlinecode. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs