Flutter 需要 Xcode 14 或更高版本

Fat*_*ndi 5 xcode dart flutter

“我最近更新了我的 Flutter 版本,然后我运行了 Flutter Doctor 命令,在我的终端中它说一切都很好,但是你需要更新 xcode,而 AppStore 没有提供任何 xcode 更新。

\n
\n
Doctor summary (to see all details, run flutter doctor -v):\n[\xe2\x9c\x93] Flutter (Channel stable, 3.13.1, on macOS 12.6 21G115 darwin-arm64, locale en-US)\n[\xe2\x9c\x93] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)\n[!] Xcode - develop for iOS and macOS (Xcode 13.4)\n    \xe2\x9c\x97 Flutter requires Xcode 14 or higher.\n      Download the latest version or update via the Mac App Store.\n[\xe2\x9c\x93] Chrome - develop for the web\n[\xe2\x9c\x93] Android Studio (version 2021.1)\n[\xe2\x9c\x93] VS Code (version 1.81.1)\n[\xe2\x9c\x93] Connected device (3 available)\n[\xe2\x9c\x93] Network resources\n\n! Doctor found issues in 1 category.\n
Run Code Online (Sandbox Code Playgroud)\n
\n
\n

医生发现了 1 类问题。\n`

\n
\n

小智 1

flutter 版本3.13.x似乎强制要求Xcode 14我在Big Sur MacOS 上面临同样的问题。

您需要下载最新的 Xcode(至少需要 14),因此,使用 XCode 14+ 需要至少 MacOS - Monterey 。

不过,您可以使用较低版本的 XCode,但似乎您无法使用flutter run命令来测试您的开发

有关更多信息,请参阅发行说明 - 3.13.0