我将我的 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 commandxcrun simctl io booted screenshot
. To take a video, run the commandxcrun simctl io booted recordVideo <filename>.<file extension>
. (9887264)
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/