模拟器屏幕录制

2017-12-31  本文已影响5人  Beta是条好狗

模拟器屏幕录制

For Xcode 8.2 (8C38)

You can take videos and screenshots of Simulator using the xcrun Xcode command-line utility.

  1. Run your app on the simulator.

  2. Open Terminal.app

  3. 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
  4. Press cntrl + c to stop recording the video.

stackoverflow原帖

上一篇 下一篇

猜你喜欢

热点阅读