Flutter : Not Connecting to IOS Simulator in Android Studio

前端 未结 5 1291
余生分开走
余生分开走 2020-12-09 19:28

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

相关标签:
5条回答
  • 2020-12-09 19:37

    I ran into the same problem but unfortunately, @MUHAMMED IQBAL PA's solution didn't suffice. Running these two commands, however, resolved the problem:

    1. As pointed out by others:

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

      sudo xcodebuild -runFirstLaunch
      
    0 讨论(0)
  • 2020-12-09 19:41

    As other people have suggested, it happens when you update XCode. So, run the command in terminal suggested by Muhammed

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

    Then, you probably have to run flutter clean. For it to run properly.

    0 讨论(0)
  • 2020-12-09 19:49

    I came across this problem on my MacBook.

    iOS toolchain - develop for iOS devices (Xcode 8.2.1) ✗ Flutter requires a minimum Xcode version of 9.0.0. Download the latest version or update via the Mac App Store.

    Xcode was not updated. That is why IOS simulators are not supported.

    0 讨论(0)
  • 2020-12-09 19:52

    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
    
    0 讨论(0)
  • 2020-12-09 19:55

    it happened to me when i have updated my Xcode, use this command to let Flutter recognize your Xcode again. sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer

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