如何使用命令屏幕记录iOS真实设备? [英] How to screen record iOS-real device with command?

查看:143
本文介绍了如何使用命令屏幕记录iOS真实设备?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了自动化测试,我需要从iMAC屏幕记录iOS. 我找到了适用于Android和iOS模拟器的命令,这些命令是:

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屏幕记录/sdcard/123.mp4
  • xcrun simctl io recordVideo --type = mp4
  • adb screenrecord /sdcard/123.mp4
  • xcrun simctl io recordVideo --type=mp4

但是,我需要用于iOS真实设备的命令.

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.

推荐答案

iOS 11内置了用于真实设备的屏幕录制功能,您需要检查是否可以通过命令行工具或通过设备从设备运行/停止/获取文件无论在终端中使用什么.

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.

此外,可以使用QuickTime + Applescript进行屏幕录制,请检查

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

这篇关于如何使用命令屏幕记录iOS真实设备?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆