You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Flutter启动iOS模拟器60秒超时 IDE无法识别已启动设备求助

Flutter iOS模拟器无法识别、启动超时解决方案

前置报错信息

Failed to launch iOS Simulator: Error: Emulator didn't connect within 60 seconds

修复步骤

  • 确认Xcode命令行工具配置正确:打开Xcode进入【设置】-【位置】,在【命令行工具】下拉列表选中当前使用的Xcode版本,随后终端执行命令:
    sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
    输入开机密码完成配置。
  • 清理Flutter项目缓存:关闭所有已启动的iOS模拟器,在项目根目录执行命令:
    flutter clean
    完成后执行flutter doctor检查环境状态。
  • 重置iOS模拟器配置:手动打开iOS模拟器,点击顶部菜单栏【模拟器】-【重置内容和设置】,确认重置后关闭模拟器再重新打开。
  • 校验模拟器兼容性:Flutter 2.2.3最低支持iOS 9.0及以上版本的模拟器,确认你创建的模拟器系统镜像版本符合要求,避免使用过旧的系统版本。
  • 临时跳过Xcode版本校验(仅适配低版本MacOS场景):如果你的MacOS 10.14.6无法升级支持更高版本Xcode,可执行临时环境变量配置命令:
    export FLUTTER_ALLOW_XCODE_LOWER_VERSION=12.0.1
    再次执行flutter doctor确认Xcode警告消除后,测试模拟器识别状态。
  • 手动指定模拟器启动:如果工具仍无法自动识别模拟器,手动启动模拟器后执行flutter devices查看输出的模拟器设备ID,使用命令直接指定设备启动项目:
    flutter run -d 【你的模拟器设备ID】

参考flutter doctor校验输出

flutter doctor -v
[✓] Flutter (Channel stable, 2.2.3, on Mac OS X 10.14.6 18G103 darwin-x64, locale en-US)
    • Flutter version 2.2.3 at /Users/faizan/Developer/flutter
    • Framework revision f4abaa0735 (8 weeks ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/faizan/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • ANDROID_HOME = /Users/faizan/Library/Android/sdk
    • Java binary at: /Library/Java/JavaVirtualMachines/jdk1.8.0_301.jdk/Contents/Home/bin/java
    • Java version Java(TM) SE Runtime Environment (build 1.8.0_301-b09)
    • All Android licenses accepted.

[!] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    ✗ Xcode 10.1.0 out of date (12.0.1 is recommended).
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.10.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio (version 2020.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed
    ✗ Dart plugin not installed
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[✓] VS Code (version 1.59.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.25.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • Mac OS X 10.14.6 18G103 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 92.0.4515.159

! Doctor found issues in 2 categories.

问题截图

问题截图

内容的提问来源于stack exchange,提问作者Faizan Ahmad

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.10.07 00:15:01