🍇

Xcodeでエミュレーターが開けなくなった時の対応

2024/05/07に公開

概要

ReactNativeでexpoを使ってアプリ開発中にエミューレータが開かなくなり、
エラーが出てしまったので以下の対応で解決しました。

エラー内容

Use the device manager in Xcode or the simctl command line tool to either delete the device properly or erase contents and settings.

解決方法

killall "Simulator" 2> /dev/null; xcrun simctl erase all

Simulatorとして名前がつくプロセスを全て終了し、
そのことによりiOSエミュレータのインスタンスが強制的に閉じられます。

Discussion