Flutter: XCode error "Unable to boot the Simulator"

415

Solution 1

After checking some other comments, it seems uninstalling XCode is not necessary.

The issue is not directly related to Flutter but it is related to the XCode 13.3.1 with the Simulator, specially for iPhone and iPad (tvOS and watchOS should have no issue so far).

Somehow the existing files during the security update causes the simulator to get corrupted.

As temporary workaround, you can try the following steps:

  1. Uninstall XCode by moving from Applications folder to the Trash
  2. Empty the Trash
  3. Open the Mac Storage Management and go to the Developer in the sidebar
  4. Delete everything from the Developer Section
  5. Download Xcode 13.1 from Apple Developers and not the stable release from App Store
  6. Extract the downloaded Xcode_13.1.xip file, i actually recommend via terminal by using xip -x Xcode_13.3.1.xip, and take in mind the extraction uses 100GB and it takes up to 2 hours to complete. You are going to have this message at the beggining xip: signing certificate was "Software Update" (validation not attempted), but you can ignore since this is expected.
  7. Finally, move the extracted XCode file to the Applications folder
  8. Run sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
  9. Run sudo xcodebuild -runFirstLaunch

Solution 2

NO NEED TO UNINSTALL XCODE! Though I know the contributor already has solved the issue, I'm happy if this answer will help someone else.

  1. Go to [About this Mac > Storage > Manage > Developer]
  2. Delete all the content (no worries!)

Solution 3

SIMPLE FIX

  1. Go to [About this Mac > Storage > Manage > Developer]
  2. Delete all the content (no worries!)

And you're good to go!!

Share:
415
codesession
Author by

codesession

Updated on January 04, 2023

Comments

  • codesession
    codesession over 1 year

    Iam running the latest OSX/Flutter/XCode Versions using flutter, android studio and firebase and 1 hour ago everthing works perfectly.

    Then i rebooted my macbook and when i try to launch an ios simulator i get this error "Unable to boot the simulator".

    The following steps shows no solution:

    1. Reinstall the ios simulator
    2. Flutter clean and pub get
    3. Updating comand line tools 13.3.1 (13E500a)
    4. Run invalid cache of android studio

    I found the problem also on stackoverflow but all sugestions does not working.

    Any ideas?

    Let me know if you need more information! Thank you

  • codesession
    codesession almost 2 years
    Thank you it took a while, but it works now!
  • codesession
    codesession almost 2 years
    Thanks you anyway, i will try it if the error comes again!
  • Fellow7000
    Fellow7000 almost 2 years
    thanks, it worked! The only thing - I could not find the latest ios 15.4.1 as a Simulator Image but only 15.2, which is also fine for me
  • TRose
    TRose almost 2 years
    it worked for me too!
  • R Rifa Fauzi Komara
    R Rifa Fauzi Komara almost 2 years
    Thanks, this work!
  • Faslur Rajah
    Faslur Rajah almost 2 years
    Just deleting Xcode Cache worked for me. No need to delete everything
  • Kevin Koo
    Kevin Koo almost 2 years
    I did [About this Mac > Storage > Manage > Developer > Delete XCode Cache] like @FaslurRajah mentioned. Instantly worked. Thanks!
  • iPatel
    iPatel almost 2 years
    Just followed 1 to 4 steps and It worked for me.
  • MhdBasilE
    MhdBasilE almost 2 years
    clearing cache worked for me
  • Ali Bakhtiyari
    Ali Bakhtiyari almost 2 years
    clearing cache worked! Thanks!!!