skip to Main Content

I tried to select command line tools in Xcode. it’s still notworking.
but Xcode can run on ios simulator

I want to run flutter app on ios simulator in vscode

2

Answers


  1. Chosen as BEST ANSWER

    I use macbook pro 2012. macOS: catalina 10.15.7 xcode: 12.4 flutter: 3.11 enter image description here


  2. To run a Flutter app on an iOS simulator in VS Code, you can follow these steps:

    Install Flutter and the Flutter extension in VS Code if you haven’t already done so.

    Open the project folder in VS Code.

    In the terminal, navigate to the project folder by using the cd command.

    Use the command flutter devices to check if any iOS simulators are available.

    If an iOS simulator is not listed, open Xcode and create a new simulator by going to Xcode > Open Developer Tool > Simulator.

    Once a simulator is available, use the command flutter run -d <device id> to run the app on the simulator. Replace with the ID of the simulator you want to use. You can find the ID by running the flutter devices command.

    Wait for the app to build and launch on the simulator.

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