XcodeのSimulatorで「Unable to boot device in current state: Booted」エラー
状況
React NativeでIOSのシミュレータを立ち上げると発生。
ターミナルからだと、以下のエラーが発生。
Trying to open the project in iOS simulator... Opening iOS simulator Booting device in iOS simulator... Error running `xcrun simctl boot xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx`: An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=164): Unable to boot device in current state: Booted There was a problem booting a device in iOS Simulator. Quit Simulator, and try again. Error installing or running app. Error: xcrun exited with non-zero code: 164
参考
解決方法
私の場合は、ターミナルで以下のコマンドを叩いて解決しました。
xcrun simctl shutdown all
上記で貼ったリンクにはXcodeからの操作方法も書いていたので、コマンドはちょっと...という方は、そちらをどうぞ。