Reputation: 18222
Today I have started learning Flutter. I am using Android Studio in Mac. I have already
So I am able to run Flutter app in Android Emulator. However, when I select iOS simulator (Open iOS Simulator), it says this
Unable to find application named 'Simulator.app
I do not have any experience is XCode and I have not installed it in my Mac.
My questions are,
I found similar question but did not get the clarity.
Upvotes: 29
Views: 72366
Reputation: 83
In my case , I just need to launch one of ios simulators from XCode , and then my Android Studio can see the ios simulator.
Upvotes: 2
Reputation: 4441
If you have fluttered, just execute the command:
open -a Simulator
.
Upvotes: 16
Reputation: 1
You can also configure the Command Line Tools from Xcode, by opening Preferences > Locations and selecting it from dropdown.
After selecting Xcode version you can find iOS Simulator name in your Android Studio for flutter project.
Upvotes: 47
Reputation: 778
After a fresh install of Flutter and Xcode, I had to restart my Mac in order to Flutter recognize the iOS Simulator. Probably something with config of older installations.
Upvotes: 3
Reputation: 12103
If you don't need IDE debugger support, you can skip the overhead of launching it through the IDE, and instead simply launch the Flutter app from the command line.
Once Simulator is running, run these 2 commands:
flutter doctor
- to verify the simulator is recognized by Flutter and no other emulators are runningflutter run
- will deploy the app to the know emulator or simulatorThanks to: https://flutter.dev/docs/get-started/install/macos#create-and-run-a-simple-flutter-app
Upvotes: 3
Reputation: 1158
For me, this error appeared after an update of Xcode. Starting Xcode fixed the issue. Xcode asked for "Install additional required components?" and after this finished, Android Studio recognized iOS simulator.
Upvotes: 1
Reputation: 81
If iOS device not showing in an android studio then first open up simulator app in mac.
Open simulator app
after simulator is loaded, go to Hardware -> Device -> Manage Device and uncheck the physical device and go to simulator tab and choose the required simulator and check it 'Show as run destination' and reload android studio.
It will start showing in android studio and now you can run your flutter app in both android and iOS.
Manage Device
Upvotes: 8
Reputation: 710
Basically, it needs to install brew package manager and some other dependencies. I got my problem solve by the following flutter doc page.
source: https://flutter.dev/docs/get-started/install/macos#update-your-path
Upvotes: 0
Reputation: 7936
To install the simulator you have to install Xcode, simulator is not distributed as a standalone app. Once you have installed it follow this guide.
I was thinking that installing Flutter and Dart plugins will link IOS simulator in Android Studio as well.
Yes once installed you can start the iOS simulator from Android Studio and run your flutter app from it but the simulator is only linked, you have to install it yourself.
Upvotes: 1