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 happen with both of them.'
Thanks
Update:
8.2.1 - Doesn't works
8.3 - Works only with Mac OS Sierra
For a static screenshot, an easier and faster workaround is to type COMMAND+SHIFT+4, then hit the space bar until the simulator window is selected, then click on the simulator window to save the screenshot.
Yeah, unfortunately, this is tripping over a bug in Foundation on OS X 10.11. You won't have the problem if you upgrade to macOS Sierra.
If you cannot upgrade to Sierra right now, you can still take screenshots from the commandline:
This is mentioned in the Xcode 8.2 Release Notes
There is a nice simple way around it.
Please try this approach for taking screenshot
source :Xcode 8.2 Release Notes