LoginSignup
4
2

【Flutter】Xcode 15でiOS 17のシュミレーターが起動しないUnable to get list of installed Simulator runtimes

Posted at

はじめに

なぜかiPhoneシュミレーターが起動しない事件が発生した。。。。
「またか・・」
とため息をつきながら👇の対応を行った。

しかし、今回はいくらキャッシュを消してもシュミレーターが起動しない!!!!

「何かがおかしい:expressionless:

そう思いとりあえずflutter doctorで確認

 % flutter doctor                                                                                                                      (git)-[master]
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.13.3, on macOS 14.1 23B74 darwin-x64, locale en-JP)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[!] Xcode - develop for iOS and macOS (Xcode 15.0.1)
    ✗ Unable to get list of installed Simulator runtimes.
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] VS Code (version 1.84.2)
[✓] Connected device (2 available)
[✓] Network resources

! Doctor found issues in 1 category.

やはりSimulatorを取得できていない。。

Xcodeを15にアップデートしたことが原因だったっぽい

👆を参考に以下のコマンドを実行

  % xcodebuild -downloadPlatform iOS 

完了までにかなり長い時間かかったが、、、結果としてこのコマンドを実行しても解決しませんでした!!:sob:

flutter doctorの結果も全く同じ・・

なぜだ!!!と思ったらstackoverflowのページにヒントが、、

既存のiOS 17をXcodeから削除

Xcode -> Window -> Devices and Simulators -> Simulators -> + -> OS Version -> Download more simulator runtimes

を開いて「iOS17.0」を削除!(おそらくXcodeを15にアップデートした際にダウンロードしたもの)

Screenshot 2023-11-14 at 1.05.10.png

これで再度👇のコマンドを実行

  % xcodebuild -downloadPlatform iOS 

% flutter doctorが成功しシュミレーター起動できました!

% flutter doctor                                                                                                                      (git)-[master]
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.13.3, on macOS 14.1 23B74 darwin-x64, locale en-JP)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] VS Code (version 1.84.2)
[✓] Connected device (2 available)
[✓] Network resources

• No issues found!

参考

4
2
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
4
2