ios - Xcode 8.2 模拟器在调试时崩溃并退出保存屏幕截图

标签 ios xcode ios-simulator simulator

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

我尝试了 iOS 9.0 和 10.0 模拟器,它们都发生了这种情况。'

谢谢

Update:

8.2.1 - Doesn't works

8.3 - Works only with Mac OS Sierra

最佳答案

请尝试这种截屏方式

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 Release Notes

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

关于ios - Xcode 8.2 模拟器在调试时崩溃并退出保存屏幕截图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41125344/

相关文章:

ios - 自定义设置按钮背景色ios

iphone - UISearchBar 右对齐放大镜图标

c++ - 在 XCode 4.6.2 上使用 cryptopp 静态库在 iOS 应用程序中抛出异常

xcode - 无法将 View Controller 的框架添加到另一个 View Controller 中的 ScrollView

iphone - ImageView contentMode 正确缩放图像?

iOS 模拟器 : Invalid device state

ios - Swift - 当 UISearchBar 处于事件状态时转到错误的索引

ios - 使用纯自动布局的 UIScrollView 不向右扩展

objective-c - 所有测试均未完成 - xcode 4.5

ios - 应用程序从vs部署但未在模拟器上启动