Capture screenshots and videos from simulator in ios

Capture a screenshot from simulator.
Focus on the simulator, select File -> New Screen Shot, this will create the screenshot and put it on the Desktop.


Capture a screenshot from the command line of the simulator.

xcrun simctl io booted screenshot myscreenshot.png

Capture a video from the command file while using the simulator.

xcrun simctl io booted recordVideo myappdemo.mov

Press Ctrl+C to end the video recording.


References:
https://stackoverflow.com/q/7092613
https://stackoverflow.com/a/41141801

Search within Codexpedia

Custom Search

Search the entire web

Custom Search