LoginSignup
0

More than 5 years have passed since last update.

iPhoneシミュレータを誤って消してしまったとき

Posted at

みなさんも、iPhoneシミュレータを誤って消してしまうことがありますよね?
こんな感じで。

xcrun simctl delete XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX

私は、英語をあまり読まずに、てきとーに実行してしまって、消しました。

deleteがあるなら、createもあるので、慌てず騒がず下記のように実行しましょう。

xcrun simctl create <名前> <デバイスのタイプ> <ランタイムのタイプ>

デバイスのタイプなどは、xcrun simctl listを実行したら見れます。
私は、下記のように実行しました。

xcrun simctl create "iPhone 5s" com.apple.CoreSimulator.SimDeviceType.iPhone-5s com.apple.CoreSimulator.SimRuntime.iOS-9-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
0