我正在关注 Flutter Docs 上的 Flutter Test Drive 教程。我安装了 XCode、cocoapods、运行 pods setup
等。
但是,在 Android Studio 中,当我尝试通过单击“运行 IOS 模拟器”来运行 IOS 时,它会打开模拟器但无法连接。
我也尝试从终端执行此操作。打开一个 IOS 模拟器,然后在终端的 app 文件夹中运行 flutter run
。我收到一个错误没有连接设备。
最佳答案
请检查您是否安装了最新版本的 Xcode。
安装完成后,尝试运行以下命令。
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
关于ios - flutter : Not Connecting to IOS Simulator in Android Studio,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50318475/