0x00 报错
error: [ +9 ms] Target aot_assembly_profile failed: Exception: release/profile builds are only supported for physical devices. attempted to build for simulator.
0x01 处理
Build Settings -> 搜索 -> profile
滑动到最底部:User-Defind
-> FLUTTER_BUILD_MODE
把 Debug
栏,改成 debug
:这样模拟器就能跑了
如果在真机上运行,重新打开,会直接闪退,想要不闪退,就改成 profile