1

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.

John
  • 1,139
  • 3
  • 16
  • 33

1 Answers1

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.

dmle
  • 3,498
  • 1
  • 14
  • 22
  • I have checked what is built-in Screen Recording in iOS11. – John Nov 15 '17 at 03:16
  • However, since I am quite new to iOS developing, it is really hard to find the way you told to me. – John Nov 15 '17 at 03:16
  • hey John, after some research I found its possible via QuickTime, I updated answer. – dmle Nov 15 '17 at 08:45
  • Hey @dmle Thank you for the answer, I also tried that one, but it is recording macos's screen, not ios's screen. – John Nov 17 '17 at 02:44
  • I have found [this](https://github.com/isonic1/flick), but I am still finding. Because this is 1fps video. – John Nov 17 '17 at 02:45
  • Is it possible to use the iOS Simulator to record video and audio with this technique? – Jules Feb 08 '18 at 09:18