如何在XCode 6 iOS模拟器中运行/loggingiOS应用程序?
我可能会出现这个错误,但我想在Xcode 6 iOS模拟器中运行一个iOS应用程序,以便录制该应用程序的video教程。 我安装了xCode,可以启动iOS模拟器,但似乎没有办法安装.app文件。 〜/ Library / Developer / CoreSimulator文件夹是一个完整的谜题,没有明确的位置放弃应用程序文件。
有任何想法吗?
或者,有没有更简单的方法来logging你的iOS应用程序的video? 人们必须一直这样做的教程…
谢谢
如果您在设备上运行应用程序,则可以使用新的优胜美地function将USBlogging到QuickTime。
但是,当您使用模拟器时,您需要在QuickTime中进行部分屏幕录制。
使用QuickTime
启动QuickTime,然后进入文件>新屏幕录制。 您可以单击以select整个屏幕,也可以拖动以只logging一部分屏幕。
备择scheme
如果你想要更多的灵活性,你将需要使用ScreenFlow等第三方软件。
从Xcode 8.2开始 ,您可以使用xcrun命令行工具截取模拟器窗口的video或录制video。
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
检查此链接了解更多详情。
您可以使用Xcode中的“Build&Run”在iOS Simualtor中安装和运行您的应用程序。
或者,您可以运行xcrun simctl install <Device UDID> <Path to app>
来安装您的应用程序。 请参阅xcrun simctl help
以获取更多信息。
关于录制截屏video,您应该使用QuickTime。