【问题标题】:How can I run / record an iOS app in the XCode 6 iOS Simulator?如何在 XCode 6 iOS 模拟器中运行/录制 iOS 应用程序?
【发布时间】:2014-12-18 20:34:40
【问题描述】:

我可能做错了,但我试图在 Xcode 6 iOS 模拟器中运行一个 iOS 应用程序,以便录制该应用程序的视频教程。 我安装了 xCode 并且可以启动 iOS 模拟器,但似乎无法安装 .app 文件。 ~/Library/Developer/CoreSimulator 文件夹完全是个谜,没有明确的位置可以放置应用程序文件。

有什么想法吗?

或者,有没有更简单的方法来录制您的 iOS 应用的视频?人们必须一直为教程做这件事......

谢谢

【问题讨论】:

  • 如果是您的 iOS 应用程序,您有代码并且可以通过 xCode 构建和运行应用程序吗?您可以使用screenyapp.com 之类的软件或直接在手机上使用ios.wonderhowto.com/how-to/… 之类的软件来记录模拟器...
  • 可以使用这种方式here
  • 愿你能用这个方便way

标签: ios xcode video simulator


【解决方案1】:

如果您在设备上运行该应用程序,则可以使用新的 Yosemite 功能通过 USB 录制到 QuickTime。

但是,当您使用模拟器时,您需要在 QuickTime 中进行部分屏幕录制。

使用 QuickTime

启动 QuickTime,然后转到文件 > 新屏幕录制。您可以单击以选择整个屏幕,也可以拖动以仅记录屏幕的一部分。

替代方案

如果您想要更大的灵活性,您将需要使用像ScreenFlow 这样的第三方软件。

【讨论】:

  • 对,再简单不过了。只需使用 QuickTime。一个鲜为人知的功能!
  • 只是想指出上面的小点,如果您从设备而不是模拟器录制,这会更容易:developer.apple.com/app-store/app-previews
【解决方案2】:

Xcode 8.2 开始,您可以使用 xcrun 命令行实用程序对模拟器窗口进行截图或录制视频。

Launch your app in Simulator.
Launch Terminal (located in /Applications/Utilities), and enter the appropriate command:
To take a screenshot, use the screenshot operation:
xcrun simctl io booted screenshot

You can specify an optional filename at the end of the command.

To record a video, use the recordVideo operation:
xcrun simctl io booted recordVideo <filename>.<extension>

To stop recording, press Control-C in Terminal.

Note: You must specify a filename for recordVideo.
The default location for the created file is the current directory.
For more information on simctl, run this command in Terminal:

xcrun simctl help

For more information on the io subcommand of simctl, run this command:

xcrun simctl io help

查看this link了解更多详情。

【讨论】:

    【解决方案3】:

    您可以在 Xcode 中使用“Build & Run”在 iOS Simualtor 中安装和运行您的应用程序。

    或者,您可以运行 xcrun simctl install &lt;Device UDID&gt; &lt;Path to app&gt; 来安装您的应用。请参阅xcrun simctl help 了解更多信息。

    关于录制屏幕截图视频,您应该使用 QuickTime。

    【讨论】:

      猜你喜欢
      • 2014-08-29
      • 2014-11-06
      • 2014-07-24
      • 2015-04-05
      • 2018-06-11
      • 2013-04-27
      • 2015-01-03
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多