模擬器屏幕錄制
For Xcode 8.2 (8C38)
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
- To take a video,
xcrun simctl io booted recordVideo <filename>.<file extension>.
For example:xcrun simctl io booted recordVideo appvideo.mov
- To take a screenshot,
Press
cntrl + c
to stop recording the video.