flutter ビルドエラー「Application not configured for iOS」と対処方法

2024/11/07に公開

エラー

Application not configured for iOS

対処方法

1.ターミナルで「flutter doctor」を実行

flutter doctor

Xcodeの項目で問題が見つかりました。

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (***)
[✓] Android toolchain - develop for Android devices (***)
[!] Xcode - develop for iOS and macOS (Xcode 16.1)
    ! iOS 18.1 Simulator not installed; this may be necessary for iOS and macOS development.
      To download and install the platform, open Xcode, select Xcode > Settings > Platforms,
      and click the GET button for the required platform.

      For more information, please visit:
        https://developer.apple.com/documentation/xcode/installing-additional-simulator-runtimes
[✓] Chrome - develop for the web
[✓] Android Studio (***)
[✓] IntelliJ IDEA Ultimate Edition (***)
[✓] VS Code (***)
[✓] Connected device (***)
[✓] Network resources

! Doctor found issues in 1 category.

2.Xcodeで「select Xcode > Settings > Platforms」を開く

※Platformsではなく「Components」になっていました。

3.iOS 18.1 Simulator横の「Get」ボタンを押してインストール

Discussion