无法启动 iOS 模拟器:错误:模拟器未在 60 秒内连接
Posted
技术标签:
【中文标题】无法启动 iOS 模拟器:错误:模拟器未在 60 秒内连接【英文标题】:Failed to launch iOS Simulator: Error: Emulator didn't connect within 60 seconds 【发布时间】:2021-10-24 04:00:48 【问题描述】:Flutter Doctor -v(运行和不运行 ios 模拟器的结果相同)
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 can be installed from:
???? https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
???? https://plugins.jetbrains.com/plugin/6351-dart
✗ 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.
即使我启动了 ios 模拟器,vscode 的底部选项卡中也没有设备。 android studio 也是如此
我尝试了 12.0.1 xcode 和 10.1 有和没有命令行工具
【问题讨论】:
【参考方案1】:转到您的系统活动监视器,搜索simulator
,双击它,然后退出 ==> 然后退出。
它应该在之后工作。不知道为什么会这样,但这不是第一次,时断时续。
【讨论】:
以上是关于无法启动 iOS 模拟器:错误:模拟器未在 60 秒内连接的主要内容,如果未能解决你的问题,请参考以下文章
VS 代码中的 Flutter 未在 iOS 模拟器中启动应用程序