How to screen record iOS-real device with command?

混江龙づ霸主 提交于 2019-12-14 04:04:27

问题


I need to screen record iOS from iMAC for the purpose of test automation. I found commands for Android and iOS-Simulator which are:

  • adb screenrecord /sdcard/123.mp4
  • xcrun simctl io recordVideo --type=mp4

However, I need a command for iOS-real device.

The purpose of this is for taking video of device during each of test automation sessions.


回答1:


iOS 11 has built-in Screen Recording for real devices, you need to check if its possible to do run/stop/getFile from device via command line tools or whatever using in terminal.

In addition, its possible to use QuickTime + Applescript for screen recording, check here for details.



来源:https://stackoverflow.com/questions/47279619/how-to-screen-record-ios-real-device-with-command

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!