Xcode 8.2模拟器崩溃并在调试时保存屏幕截图 [英] Xcode 8.2 simulator crash and quits on saving a screenshot while debugging

查看:110
本文介绍了Xcode 8.2模拟器崩溃并在调试时保存屏幕截图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将我的Xcode更新为8.2,从那时起,如果我尝试在调试时截取屏幕截图,则会崩溃然后退出。

I updated my Xcode to 8.2 and since then if I try to take a screenshot while debugging it is crashing and then quits.

我尝试过iOS 9.0和10.0模拟器并且它发生在两个人身上。'

I tried iOS 9.0 and 10.0 simulators and it happen with both of them.'

谢谢


更新:

8.2.1 - 不起作用

8.3 - 仅适用于Mac OS Sierra


推荐答案

请尝试这种方法拍摄截图

Please try this approach for taking screenshot


你可以使用 xcrun Xcode命令行实用程序。要截取屏幕截图,请运行命令 xcrun simctl io booted screenshot 。要拍摄视频,请运行命令 xcrun simctl io booted recordVideo< filename>。< file extension> 。 (9887264)

You can take videos and screenshots of Simulator using the xcrun Xcode command-line utility. To take a screenshot, run the command xcrun simctl io booted screenshot. To take a video, run the command xcrun simctl io booted recordVideo <filename>.<file extension>. (9887264)

来源:Xcode 8.2发行说明


在OS X El Capitan上运行时保存屏幕截图时,模拟器可能会崩溃。 (29182710)macOS Sierra上没有发生崩溃。

Simulator can crash when saving a screenshot when running on OS X El Capitan. (29182710) The crash does not occur on macOS Sierra.

这篇关于Xcode 8.2模拟器崩溃并在调试时保存屏幕截图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆