前置き
経緯の説明から。
XCodeをApp Storeから入れていたのですが、容量が大きすぎるので一度削除しました。代わりにApple Developerサイトからコマンドラインツールをダウンロードして入れたのですが、今度はシミュレータを入れれず。
色々試したあと、入れてからシミュレータを厳選する作戦を思いつき、Apple DeveloperからXCodeをダウンロードしました。
症状
XCodeを入れているのに、iOSシミュレータを認識しませんでした。シミュレータを起動して
Flutter devices
と入力しても、デバイスが出てきません。そこで調べていると、以下を見つけました。
手順
XCodeを開く
メニューバー > Xcode > Preferance > Location > Command Line Toolsが空白になっていたら、選択して埋める。
これで解決しました。お役に立てましたら幸いです。