💡 核心信息 适用系统: macOS Ventura 13.0+ (建议 Monterey 12.6+ 或 Sonoma 14.0+) 适用版本: Flutter 3.24.0+ | Xcode 15.0+ 最后更新: 2026-03-07 编译目标: x64 (Apple Silicon 或 Intel) 所需内存: 16GB+ 所需存储: 50GB+
.dmg 文件Enabled macOS support for Flutter.Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.0, on macOS 14.0 23A344 darwin-arm64, locale en-US)
[✓] Android toolchain - develop for Android devices
[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3.1)
[✓] VS Code (version 1.77.3)
[✓] Connected device (2 available)
[✓] macOS support - develop for macOS desktopflutter doctor 显示错误,请根据错误信息解决。flutter doctor 显示 "Xcode not installed"flutter doctorflutter build macos 提示 "CocoaPods not installed"flutter build macosflutter build macos 提示 "CMake not found"flutter build macosflutter pub get 失败https://pub.devhttps://pub.dev 测试settings.json (Cmd+,){
"dart.sdkPath": "~/Development/flutter",
"flutter.sdkPath": "~/Development/flutter"
}settings.json (Cmd+,){
"editor.formatOnSave": true,
"editor.defaultFormatter": "dart-code.dart-code",
"dart.formatOnSave": true
}flutter doctor 的输出安全提示: 首次运行应用时,系统可能会提示 "未知发布者",请在"系统设置" → "安全性与隐私" → "通用" 中信任应用,否则应用无法运行。
| 检查项 | 预期结果 | 验证命令 |
|---|---|---|
| Flutter SDK | 已安装在 PATH | flutter --version |
| Xcode | 已安装命令行工具 | xcode-select -p |
| Homebrew | 已安装 | brew --version |
| JDK 17 | 已安装 | java -version |
| CocoaPods | 已安装 | pod --version |
| Flutter macOS 支持 | 已启用 | flutter config --enable-macos |
| 环境验证 | 无错误 | flutter doctor |
Building macOS application...
✓ Built build/macos/Build/Products/Release/yixinim.app.admin/123456