无法在真实 ios 设备上以调试模式运行 flutter 应用

1 build ios flutter

我从 2.2.3 升级到 flutter 2.5。然后我又把它恢复到2.2.3版本。之后,我无法在真正的 ios 手机上启动调试 mod,卡在安装和启动上。删除 flutter 缓存并清除 flutter 没有帮助。

[VERBOSE-2:shell.cc(93)] Dart Error: Can't load Kernel binary: Invalid kernel binary format version.
[VERBOSE-2:dart_isolate.cc(170)] Could not prepare isolate.
[VERBOSE-2:runtime_controller.cc(382)] Could not create root isolate.
[VERBOSE-2:shell.cc(576)] Could not launch engine with configuration.
Run Code Online (Sandbox Code Playgroud)

小智 8

运行此命令即可解决问题:

颤动运行——释放

然后根据需要按照以下步骤添加对手机的信任。只需进入手机设置->常规->设备管理->信任Apple ID