Flutter : Not Connecting to IOS Simulator in Android Studio

Android Ninja picture Android Ninja · May 13, 2018 · Viewed 12.1k times · Source

I am following the Flutter Test Drive tutorial on the Flutter Docs. I installed XCode, cocoapods, ran pods setup etc.

However, in Android Studio, when I try to run IOS by clicking "Run IOS Simulator," it opens the simulator but fails to connect.

I also tried doing this from the terminal. Opened an IOS emulator and then ran flutter run in the app folder in terminal. I got an error No devices attached.

Answer

MUHAMMED IQBAL PA picture MUHAMMED IQBAL PA · Feb 13, 2019

Please check whether you installed the latest version of Xcode.

After the installation, try to run the following command.

sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer