Simulator crashes when trying to save a screen shot

I don't have a 5.5" device so I was trying to make screenshots with the simulator. But the simulator crashes when I try to save a screenshot. This is with XCode 8.2.1 on El Capitan. Anyone know a fix or workaround that doesn't require me to upgrade to Sierra?


Thanks

It says "Simulator quit unexpectedly while using the libswiftFoundation.dylib plug-in."


I also tried the command-line "xcrun simctl io booted screenshot" as suggested here:

http://stackoverflow.com/questions/41125344/xcode-8-2-simulator-crash-and-quits-on-saving-a-screenshot-while-debugging


While that did not crash it, the files it saved were zero byte size.

One option would be to use shift-cmd-3 or shift-cmd-4 to do screen grabs and then trim or stitch them as necessary. Not a great workaround, but it'll do the job until there's a proper solution.

I can't do that because the 7+ screen is much larger than my 27" iMac screen! You can't fit the full resolution screenshot on it.

I've had that problem too. I just have to keep trying until it captures the screenshot without crashing. Sometimes it helps to switch simulated versions of iOS (i.e., try 9.3 instead of 10.3). Due to the random nature of the problem, it's probably an uninitialized variable in the screenshot code.

Really, you have had it work sometimes? I will try again then. Every time I've tried it, it crashes immediately. But I haven't tried other simulated OS versions yet. How do you do that?

You can zoom the simulator out to 50% so it all fits. Of course there'll then be artefacts but something is better than nothing. If you attach a second screen, is it possible to move the simulator up through the top of the screen? That way you could grab the visible top part at 100%, move it up, grab the bottom part and stitch it together in Photoshop. I realise that both of these 'workarounds' are a pain in the hoop...

Simulator crashes when trying to save a screen shot
 
 
Q