How to open iOS Simulator in Android Studio for Flutter application

前端 未结 9 1609
臣服心动
臣服心动 2021-01-12 01:37

Today I have started learning Flutter. I am using Android Studio in Mac. I have already

  • Configured the Flutter and Dart plugins in Android studio.
  • Inst
相关标签:
9条回答
  • 2021-01-12 02:16

    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

    0 讨论(0)
  • 2021-01-12 02:17

    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.

    0 讨论(0)
  • 2021-01-12 02:18

    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.

    0 讨论(0)
  • 2021-01-12 02:23

    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

    0 讨论(0)
  • 2021-01-12 02:26

    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.

    0 讨论(0)
  • 2021-01-12 02:31

    If you have fluttered, just execute the command: open -a Simulator.

    0 讨论(0)
提交回复
热议问题