一:运行环境
1:Flutter
[✓] Flutter (Channel stable, 3.24.2, on macOS 15.0 24A335 darwin-x64, locale
zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.1)
[✓] Connected device (2 available)
[✓] Network resources
2:macOS
macOS 15.0 (24A335)
Xcode Version 16.0 (16A242d)
二:报错现象
Syncing files to device macOS...
[GETX] Instance "MainLogic" has been created
[GETX] Instance "MainLogic" has been initialized
[GETX] Instance "FillingLogic" has been created
[GETX] Instance "FillingLogic" has been initialized
[GETX] Instance "BlackListLogic" has been created
[GETX] Instance "BlackListLogic" has been initialized
[GETX] Instance "AboutLogic" has been created
[GETX] Instance "AboutLogic" has been initialized
[GETX] Instance "IndexLogic" has been created
[GETX] Instance "IndexLogic" has been initialized
[GETX] GetDelegate is created !
[GETX] GetInformationParser is created !
[GETX] GetInformationParser: route location: /IndexPage
[GETX] GOING TO ROUTE /IndexPage
Couldn't find vertexMain() in library
Couldn't find vertexMain() in library
Couldn't find vertexMain() in library
Couldn't find vertexMain() in library
Couldn't find vertexMain() in library
Couldn't find vertexMain() in library
Couldn't find vertexMain() in library
Couldn't find vertexMain() in library
Couldn't find vertexMain() in library
Couldn't find vertexMain() in library
Couldn't find vertexMain() in library
Couldn't find vertexMain() in library
Couldn't find vertexMain() in library
Couldn't find vertexMain() in library
Couldn't find vertexMain() in library
Couldn't find vertexMain() in library
Couldn't find vertexMain() in library
Couldn't find vertexMain() in library
Couldn't find vertexMain() in library
Couldn't find vertexMain() in library
Couldn't find vertexMain() in library
Couldn't find vertexMain() in library
Couldn't find vertexMain() in library
Couldn't find vertexMain() in library
Couldn't find vertexMain() in library
Couldn't find vertexMain() in library
Couldn't find vertexMain() in library
Couldn't find vertexMain() in library
Couldn't find vertexMain() in library
Couldn't find vertexMain() in library
Couldn't find vertexMain() in library
Couldn't find vertexMain() in library
Couldn't find vertexMain() in library
Couldn't find vertexMain() in library
Couldn't find vertexMain() in library
Couldn't find vertexMain() in library
报错行数与初始化页面数量有关
三:解决方案
Github对应issues页面
https://github.com/flutter/flutter/issues/154400
有效但不那么合适的方案:
2024/09/21
1:将macOS的系统默认语言设置为英语
设置方法:设置-通用-语言与地区-首选语言,修改为英语
无效方法:
2024/09/21
1:将macOS更新至15.1 Beta4版本
2:将flutter版本升级至3.24.3版本
3:禁用useMaterial3
有效方案
2024/09/25
1:macOS更新到 15.1 Beta5版本 24B5055e后,显示修复
原因应为macOS 15.0 - 15.1 Beta4版本之中的flutter skai不支持中文路径