You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Start iOS Simulator Not Shows in VS Code after updating Flutter 1.22 #2844
Describe the bug
When running flutter application on Mac VS Code, it was prompt asking Start iOS Simulator or Create Android Simulator. Once we select iOS Simulator it will simply open XCode Simulator. After New Update the device option shows only Create Android Emulator.
To Reproduce
Steps to reproduce the behavior:
Go to 'Devices in the Bottom Bar of VS Code'
OR
Cmnd+shft+P then choose Start Emulator
Expected behavior
It should show Start iOS Simulator & Create Android Emulator both options.
Screenshots
Versions (please complete the following information):
Can you post the full output of flutter doctor -v? I've seen this happen if your Xcode is out of date (flutter/flutter#42751 / flutter/flutter#42254) but it was almost a year ago I hit that.
If it's not that, please check your project has an ios folder, and post the full output of flutter devices -v. Thanks!
Reacted by Beeke, ☻, nhatnguyenNT, schbal50 and Neeraj Singh
[✓] Flutter (Channel stable, 1.22.0, on Mac OS X 10.15.4 19E2269, locale en-GB)
• Flutter version 1.22.0 at /Users/Shared/Dev/flutter
• Framework revision d408d302e2 (3 days ago), 2020-09-29 11:49:17 -0700
• Engine revision 5babba6c4d
• Dart version 2.10.0
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, set ANDROID_SDK_ROOT to that location.
You may also want to add it to your PATH environment variable.
[✓] Xcode - develop for iOS and macOS (Xcode 12.0.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.0.1, Build version 12A7300
• CocoaPods version 1.9.3
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
[!] IntelliJ IDEA Ultimate Edition (version 2020.2)
• IntelliJ at /Applications/IntelliJ IDEA.app
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.dev/intellij-setup/#installing-the-plugins
[✓] VS Code (version 1.49.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.15.0
[!] Connected device
! No devices available
! Doctor found issues in 4 categories.
@Safnaj if you close down the simulator and restart VS Code, does it show up again now you've run it once? (I've seen some issues where I had to run Xcode once after an update before everything worked correctly).
It looks like there's a bug in the latest Flutter that would failt o return any emulators when the Android SDK is missing. I've filed a bug at flutter/flutter#67293 and a PR to fix at flutter/flutter#67295.
I'm not sure of any workaround in the meantime except setting up an Android SDK.
@Safnaj the issue was fixed in Flutter. I would expect it to be in the next major Flutter release, but I don't know when that is (I think there has just been a stable release so it might a little way off). As a workaround in the meantime, you could set up an Android SDK to prevent the issue (which could just be the command line tools, or enough to pass the doctor checks).
@avinashk369 is there an ios folder in your project? If not, can you try running flutter create . in your project to create it (I've opened #3045 to make this easier in future).
If you do, could you enable the Flutter Daemon log and provide the output in a new issue (I don't think it's the same as this issue).
@iampawan the issue noted above was fixed in Flutter but hasn't made the stable branch yet. However it's unlikely to be intermittent (it's based on whether you have an Android SDK). If you can reproduce another issue, please try enabling the flutter daemon log and next time you see it, grab a copy of that log and file a new issue. Thanks!
Open Xcode and go to preferences - > locations - > Command Line Tools and select Xcode 10 or above
Then close the vscode and open it. you will see ios Simulator option there. but previously you must close simulator also
Reacted by maulikTeksun, eyelexv, Bennet Hölscher, Edward205, Jose Luis Casanova, Job, Sumaya Siddique, Jonas Schalck, Nate Teahan, Anas and 18 more
Reacted by Keerthika Chokkalingam
Reacted by Tejas Anghan, Eslam Rabia, Murilo Pereira, eyelexv, Jose Luis Casanova, Job, Sumaya Siddique, Nate Teahan, Anas, Visakh Raman and 9 more
Reacted by Murilo Pereira, eyelexv, Samet Karavaizoğlu, Jose Luis Casanova, Sparsh Mishra, Job, Sumaya Siddique, Nate Teahan, Anas, Tipu Sultan and 13 more
Reacted by Susan Neupane, Keval Gadhiya, Michael Martins, Henry Ifebunandu, NabethN and Sandeep Singh
Reacted by Abel Lamesgen, Tarlan Isaev, Stefan Seethaler, Willard Shikami, Taha Emin Aytekin, Thiago Mem, ANDREW SAVOSTYANOV, Baptiste Laisney, Rouuuge, Rafael Pedrosa and 2 more
Reacted by Keerthika Chokkalingam
Reacted by Abel Lamesgen, Randy Rosario, VinitEncodework and Musa Raza
Reacted by Abel Lamesgen, Biniyam Daniel, Abdul Mateen, Yunus Karaaslan and Musa Raza
Reacted by vinod-sutar-bbi, Stanislas, VinitEncodework and Musa Raza
my simulator also stopped working when i added splash screen images in the runner/assets.... folder I am not sure but the error is due to irregular size of the images added in the 1x,2x and 3x images
Activity
DanTup commentedon Oct 2, 2020
Can you post the full output of
flutter doctor -v? I've seen this happen if your Xcode is out of date (flutter/flutter#42751 / flutter/flutter#42254) but it was almost a year ago I hit that.If it's not that, please check your project has an
iosfolder, and post the full output offlutter devices -v. Thanks!Safnaj commentedon Oct 2, 2020
Safnaj commentedon Oct 2, 2020
Once i stated the simulator using XCode, its appears as below. But previously i could start iOS Simulator from here as well.
DanTup commentedon Oct 2, 2020
@Safnaj if you close down the simulator and restart VS Code, does it show up again now you've run it once? (I've seen some issues where I had to run Xcode once after an update before everything worked correctly).
Safnaj commentedon Oct 2, 2020
I checked by restarting VS Code, XCode and the Mac
Safnaj commentedon Oct 3, 2020
@DanTup Any solutions ?
DanTup commentedon Oct 3, 2020
@Safnaj do you have an
iosfolder in your project?Could you post the output of running
flutter emulator -vand also the following:Thanks!
Safnaj commentedon Oct 3, 2020
Output of
flutter emulator -vSafnaj commentedon Oct 3, 2020
Output of Dart: Capture Logs
@DanTup
Safnaj commentedon Oct 4, 2020
@DanTup seems something missing in my logs.
DanTup commentedon Oct 5, 2020
It looks like there's a bug in the latest Flutter that would failt o return any emulators when the Android SDK is missing. I've filed a bug at flutter/flutter#67293 and a PR to fix at flutter/flutter#67295.
I'm not sure of any workaround in the meantime except setting up an Android SDK.
6 remaining items
Safnaj commentedon Oct 12, 2020
@DanTup is this issue going to be fixed in next release ??
DanTup commentedon Oct 12, 2020
@Safnaj the issue was fixed in Flutter. I would expect it to be in the next major Flutter release, but I don't know when that is (I think there has just been a stable release so it might a little way off). As a workaround in the meantime, you could set up an Android SDK to prevent the issue (which could just be the command line tools, or enough to pass the doctor checks).
avinashk369 commentedon Jan 4, 2021
no device in master channel as well.
DanTup commentedon Jan 4, 2021
@avinashk369 is there an
iosfolder in your project? If not, can you try runningflutter create .in your project to create it (I've opened #3045 to make this easier in future).If you do, could you enable the Flutter Daemon log and provide the output in a new issue (I don't think it's the same as this issue).
Thanks!
iampawan commentedon Jan 18, 2021
@DanTup Sometime VSCODE suddenly stops showing the iOS devices, It gets fixed after some time automatically. I don't know what is the issue
DanTup commentedon Jan 18, 2021
@iampawan the issue noted above was fixed in Flutter but hasn't made the stable branch yet. However it's unlikely to be intermittent (it's based on whether you have an Android SDK). If you can reproduce another issue, please try enabling the flutter daemon log and next time you see it, grab a copy of that log and file a new issue. Thanks!
shaon2016 commentedon Jun 20, 2021
Do this,
Open Xcode and go to preferences - > locations - > Command Line Tools and select Xcode 10 or above
Then close the vscode and open it. you will see ios Simulator option there. but previously you must close simulator also
maulikTeksun commentedon Jul 7, 2021
Its resolved my issue
kleyos commentedon Jul 22, 2021
I solved this issue by launching
reload vscode window
adityaguptagkp30 commentedon Aug 10, 2021
my simulator also stopped working when i added splash screen images in the runner/assets.... folder I am not sure but the error is due to irregular size of the images added in the 1x,2x and 3x images
AdityaNawandar commentedon Feb 16, 2022
Worked. Need not even close the simulator.
BellatoJAIST commentedon Jan 26, 2023
its worked, thank you very much.
KeerthikaChokkalingam commentedon Mar 23, 2024
I have tried this but my issue was not resolved.
muhammadsalif commentedon Jan 15, 2025
How I Solved the Issue with the Simulator Not Showing Up:
After some troubleshooting, I followed these steps, which worked perfectly:
This resolved the issue for me. I hope this helps other developers facing the same problem! 🚀
Attaching screenshot below for reference.
