You can take videos and screenshots of Simulator using the xcrun
Xcode command-line utility.
-
Run your app on the simulator.
-
Open Terminal.app
-
Run the command
- To take a screenshot,
xcrun simctl io booted screenshot
<filename>.<file extension>
. - To take a video,
xcrun simctl io booted recordVideo
<filename>.<file extension>
.
For example screenshot:
xcrun simctl io booted screenshot myScreenshot.png
- To take a screenshot,