skip to Main Content

So, I have a problem with the iOS simulator. Every time I try to launch my Flutter project on the iOS simulator, I get this error in VS Code: ‘Failed to launch iOS Simulator: Error: Emulator didn’t connect within 60 seconds.’

I have tried different methods from various forums and YouTube guides, but none of them worked for me 🙁 I also attempted to reinstall my IDE (VS Code), clean the cache, and delete Xcode. I even reinstalled the Flutter SDK, but I still couldn’t find a solution to this problem. The iOS simulator shows as ‘Offline’ in the IDE, even though it’s already running.

Available devices in IDE screenshot

Flutter doctor result screenshot

2

Answers


  1. You can try this:

    1 – Open Xcode and go to preferences – > locations – > Command Line Tools and select Xcode 10 or above

    2 – Close the VScode and open it. You might see IOS Simulator option there.

    But previously you must close simulator also (Right click on Simulator in the Dock -> "Quit")

    Hope this helps!

    Login or Signup to reply.
  2. I had the same problem. This answer helped me to solve the issue:

    https://stackoverflow.com/questions/42429697/cant-create-new-ios-simulator-on-xcode#:~:text=2023%20Solution%3A%20Download%20More%20Simulator%20Runtimes

    In short terms:

    1. Open xcode
    2. Open Devices and Simulators and go to the Simulators section, which is next to Devices.
    3. Press "+" button down-left corner
    4. Click OS Version and select "Download more simulators runtime".
    5. Delete iOS 17.0
    6. Press "+" button down-left corner
    7. Select iOS
    8. Select "iOS 16.4 Simulator" and wait till the installation finishes.
    9. You will see many simulators in the "Devices and Simulators" section till the iPhone 14, but not 15.
    10. Open a simulator now with cmd + space -> Simulator.app

    To run the iPhone 15, you need to update the iOS to 17.0, but I fall into the same problem, and I need to repeat the process again. So, I will keep working with the iPhone 14 till some additional updates come and fix this problem.

    Let me know if this helps.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search