「libswiftFoundation.dylib プラグインの使用中に Simulator が予期しない理由で終了しました。」が表示されて Simulatorが異常終了してしまう。
ios – Xcode 8.2 simulator crash when save screen shot – Stack Overflow
によると、OS X El Capitan だとCrashするが、OS X Sierra だと発生しないとのこと。確かに Release Noteに書かれている。
上記 Stack Overflowに書かれているとおり、ターミナルで xcrun コマンドを実行することで保存できた。
xcrun simctl io booted screenshot <path to output file>
