LoginSignup
10
12

More than 5 years have passed since last update.

iOSシミュレータを同時に2台起動する方法

Posted at

シミュレータがあるディレクトリに移動

cd /Applications/Xcode.app/Contents/Developer/Applications

違うディレクトリにある場合は環境に合わせて移動。

シミュレータを起動

open -n Simulator.app

もう一台シミュレータを起動

open -n Simulator.app

そうすると大体怒られる。
Unable to boot device in current state:Booted

Unable to boot device in current state:Booted

「もう起動しているから起動できないよ」というエラー。

DeviceをHardWareタブから変更する

HardWare>Divice>iOSで、既に起動しているシミュレータと別のデバイスを選択してやると、正常に起動する。

その他トラブルシューティング

「片方のシミュレータにフォーカスがいってしまい、もう一台のシミュレータを操作できない!」
ことがたまにある。

そんな時は一旦シミュレータをシャットダウンして、同じ手順でもう一度起動してやると直る。

10
12
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
12