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.
I tried iOS 9.0 and 10.0 simulators and it happ
Please try this approach for taking screenshot
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
. (9887264).
source :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.