简体   繁体   English

在Xcode上运行应用程序时记录iPhone屏幕

[英]Recording iphone screen while running app on xcode

I want to test an app with some users and I want to record the iphone screen while I'm running the app on Xcode. 我想与一些用户一起测试一个应用程序,并且想在Xcode上运行该应用程序时记录iphone屏幕。 I want to do it this way so I can see exactly what the user has been doing while I see all the output and nslogs from Xcode. 我想以这种方式进行操作,以便在查看Xcode的所有输出和nslog时可以准确地看到用户的操作。

Does anybody knows any software that allows this? 有人知道允许这样做的任何软件吗?

Thanks! 谢谢!

Yes, open quicktime and next.. ⌘ + ⌥ + N, in the screen click on the record button arrow and choose your device. 是的,打开quicktime,然后单击下一步。。+⌥+ N,在屏幕中单击“录制”按钮箭头并选择您的设备。

EDIT : from iOS 11 you can record the iPhone screen enabling the screen record. 编辑 :从iOS 11开始,您可以记录iPhone屏幕并启用屏幕记录。

  1. Launch Settings, and select Control Center. 启动设置,然后选择控制中心。
  2. Add Screen Recording. 添加屏幕录像。
  3. Swipe-up from the bottom of the display to reveal Control Center. 从显示屏底部向上滑动以显示Control Center。
  4. Tap Screen Recording button. 点击屏幕录制按钮。

屏幕录制按钮

Use QuickTimePlayer: 使用QuickTimePlayer:

  1. Connect iDevice to Mac. 将iDevice连接到Mac。
  2. Open QuickTime 打开QuickTime
  3. File > New Movie Recording 文件>新电影录制
  4. If you don't see your screen mirrored immediately, go to the dropdown arrow next to the record button and select Camera > iDevice 如果您没有立即看到屏幕镜像,请转到“录制”按钮旁边的下拉箭头,然后选择“相机”>“ iDevice”

If you are recording from iOS Simulator: 如果您是通过iOS模拟器录制的:

  1. Start everything up in iOS Simulator 在iOS模拟器中启动一切
  2. Open QuickTime 打开QuickTime
  3. File > New Screen Recording 文件>新屏幕录制
  4. Press record button. 按下录音按钮。 You will now be given the option to drag out an area of the screen to record. 现在,您可以选择拖出屏幕上的某个区域进行记录。

To take a screenshot, use the screenshot operation: 要截图,请使用截图操作:

xcrun simctl io booted screenshot

To record a video, use the recordVideo operation: 要录制视频,请使用recordVideo操作:

xcrun simctl io booted recordVideo <VideoFILENAME>.<extension>

This has already been answered in this forum at this post 这个帖子已经在这个论坛中得到了回答

Capture iOS Simulator video for App Preview 捕获iOS模拟器视频以进行App预览

Anyways, you can use QuickTime recorder to record your app running on the iPhone 无论如何,您可以使用QuickTime记录器记录您在iPhone上运行的应用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM