I got some errors when I run “flutter doctor” to check the flutter runtime.
[!] Android toolchain – develop for Android devices (Android SDK version 33.0.0)
✗ cmdline-tools component is missing
Run `path/to/sdkmanager –install “cmdline-tools;latest”`
See https://developer.android.com/studio/command-line for more details.
✗ Android license status unknown.
Run `flutter doctor –android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[!] Xcode – develop for iOS and macOS
✗ Flutter requires Xcode 13 or higher. ()
Download the latest version or update via the Mac App Store.
✗ CocoaPods not installed.
CocoaPods is used to retrieve the iOS and macOS platform side’s plugin code that responds to your plugin usage on the Dart side.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/platform-plugins
To install see
https://guides.cocoapods.org/using/getting-started.html#installation for instructions.
[✗] Chrome – develop for the web
(Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome)!
Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
Xcode 13 requires macOS 12.0+
|Xcode 13.4.1||2 Jun 2022||macOS 12.0+|
|Xcode 13.4||16 May 2022||macOS 12.0+|
|Xcode 13.4||12 May 2022||macOS 12.0+|
|Xcode 13.3.1||11 Apr 2022||macOS 12.0+|
|Xcode 13.3||14 Mar 2022||macOS 12.0+|
|Xcode 13.3||8 Mar 2022||macOS 12.0+|
Just install the latest macOS on VMware or buy a latest Macbook, which installed the latest macOS system. You can install Xcode by searching in “App”.