ios - Flutter - iOS 模拟器 "not supported devices connected"

标签 ios xcode android-studio flutter ios-simulator

由于某种原因,iOS 模拟器停止工作。我可以打开 iOS 模拟器,但 Android Studio 无法识别它。我已经尝试通过终端运行,但它显示 not supported devices connected

当我运行 flutter doctor 时,它返回:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.12.13+hotfix.8, on Mac OS X 10.12.6 16G2136, locale pt-US)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[!] Xcode - develop for iOS and macOS (Xcode 9.2)
    ✗ Flutter requires a minimum Xcode version of 11.0.0.
      Download the latest version or update via the Mac App Store.
[✓] Android Studio (version 3.4)
[✓] VS Code (version 1.43.2)
[!] Connected device
    ! No devices available

! Doctor found issues in 2 categories.

由于我使用的是 Macbook 2011,因此无法升级 Xcode。是否可以将 Flutter 和 Xcode 降级到较旧的稳定版本?这能解决问题吗?

谢谢

最佳答案

如果 Android Studio 无法识别 ios 模拟器,即使您可以在 Mac 上单独打开模拟器,则必须在 Xcode 上添加命令行工具。

打开 Xcode,然后转到 Xcode > preferences > 选择 Locations 选项卡。然后从下拉菜单中选择 Xcode 版本。

enter image description here

再次打开ios模拟器。然后 Android Studio 将识别您的设备。

关于ios - Flutter - iOS 模拟器 "not supported devices connected",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60955379/

相关文章:

ios - Swift iOS BLE writeValue 发送一次数据

iOS 获取特定语言字符串的本地化版本

android - 溢出菜单显示在底部

java - RecyclerView 未附加到 Adapter

ios - 如何解决 xcode 中冲突的配置设置?

android - 使用 Android Studio 为一个模块重建、同步 Gradle 和清理

ios - Swift - 添加到数组后 tableView 不重新加载

iOS:SecRSAPublicKeyCopyPublicSerialization?

ios - UITableView pull-to-add 交互模式

swift - 打印或控制台打印输出的不同值