在 xcode 上运行应用程序时录制 iphone 屏幕

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/31792488/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 07:36:41  来源:igfitidea点击:

Recording iphone screen while running app on xcode

iosiphonexcodetestingscreen

提问by Joan Cardona

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. 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 上运行应用程序时记录 iphone 屏幕。我想这样做,这样我就可以在看到 Xcode 的所有输出和 nslog 时准确地看到用户在做什么。

Does anybody knows any software that allows this?

有没有人知道任何允许这样做的软件?

Thanks!

谢谢!

回答by Kerberos

Yes, open quicktime and next.. ? + ? + N, in the screen click on the record button arrow and choose your device.

是的,打开 quicktime 和 next..?+ ? + N,在屏幕上单击录制按钮箭头并选择您的设备。

EDIT: from iOS 11you 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.
  4. Tap Screen Recording button.
  1. 启动设置,然后选择控制中心。
  2. 添加屏幕录制。
  3. 从显示屏底部向上滑动以显示控制中心。
  4. 点击屏幕录制按钮。

Screen Recording button

屏幕录制按钮

回答by sketchyTech

Use QuickTimePlayer:

使用 QuickTimePlayer:

  1. Connect iDevice to Mac.
  2. Open 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
  1. 将 iDevice 连接到 Mac。
  2. 打开 QuickTime
  3. 文件 > 新电影录制
  4. 如果您没有立即看到屏幕镜像,请转到录制按钮旁边的下拉箭头,然后选择“相机”>“iDevice”

If you are recording from iOS Simulator:

如果您是从 iOS 模拟器录制:

  1. Start everything up in iOS Simulator
  2. Open 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.
  1. 在 iOS 模拟器中启动一切
  2. 打开 QuickTime
  3. 文件 > 新屏幕录制
  4. 按录音键。您现在可以选择拖出屏幕区域进行录制。

回答by Ali A. Jalil

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>

回答by GhostDragon

This has already been answered in this forum at this post

这已经在这个论坛的这个帖子中得到了回答

Capture iOS Simulator video for App Preview

为 App Preview 捕捉 iOS 模拟器视频

Anyways, you can use QuickTimerecorder to record your app running on the iPhone

无论如何,您可以使用QuickTime记录器来记录您在 iPhone 上运行的应用程序