How to take a screenshot and record a Video in iOS Simulator in Terminal Open iOS Simulator Open Terminal.app Run below script to take a screenshot xcrun simctl io booted screenshot 1r.png Run below script to record a video and press CTRL + C to stop xcrun simctl io booted recordVideo appPreview.mp4 Additional commands xcrun simctl list xcrun simctl addmedia booted ~/Desktop/sample.png xcrun simctl list | grep Booted # list booted simulators xcrun simctl shutdown $UUID xcrun simctl erase $UUID pbcopy ~/Desktop/sample.txt xcrun simctl pbpaste booted xcrun simctl openurl booted "https://developer.apple.com"