我将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.