无法获取已安装模拟器运行时的列表

Ebu*_*ĞLU 27 flutter flutter-dependencies flutter-plugin

我正在使用 macOS 并且正在安装 flutter。当我跑到“flutter doctor”时,我遇到了类似的错误

\n
    Doctor summary (to see all details, run flutter doctor -v):\n[\xe2\x9c\x93] Flutter (Channel stable, 3.13.5, on macOS 13.6 22G120 darwin-arm64, locale\n    tr-TR)\n[\xe2\x9c\x93] Android toolchain - develop for Android devices (Android SDK version 34.0.0)\n[!] Xcode - develop for iOS and macOS (Xcode 15.0)\n    \xe2\x9c\x97 Unable to get list of installed Simulator runtimes.\n[\xe2\x9c\x93] Chrome - develop for the web\n[\xe2\x9c\x93] Android Studio (version 2022.3)\n[\xe2\x9c\x93] Connected device (2 available)\n[\xe2\x9c\x93] Network resources\n
Run Code Online (Sandbox Code Playgroud)\n

我不知道为什么。这个错误的根源是什么?

\n

小智 49

我在运行颤振安装更新时遇到了同样的问题。我的问题是我的 iOS 模拟器似乎丢失了所有 iOS 运行时。通过重新安装它们,我的问题得到了解决。这可能对您有帮助,尝试通过终端运行它:

xcodebuild -downloadPlatform iOS
Run Code Online (Sandbox Code Playgroud)


小智 9

上面的答案没有帮助,但这确实有帮助:

Xcode -> 窗口 -> 设备和模拟器 -> 模拟器 -> + -> 操作系统版本 -> 下载更多模拟器运行时

在那里,我首先删除了现有的 iOS 17 文件,然后再次下载它们。