启动时构建iOS崩溃时崩溃 [英] Crash when startup build iOS flutter
问题描述
我有确切的问题。我的应用程序在多部iphone上安装正常,但在启动时同样崩溃。从Xcode手动运行应用程序会在控制台上生成此内容:
I have the exact issue. My app is installing fine on several iphones but the same crashes at startup. Running the app manually from Xcode produces this on the console :
2018-10-24 16:30:34.984717 + 0700 Runner [9026: 1109274]
[VERBOSE-2:dart_vm.cc(263)]虚拟机快照必须有效。
2018-10-24 16:30:34.984717+0700 Runner[9026:1109274] [VERBOSE-2:dart_vm.cc(263)] VM snapshot must be valid.
2018-10-24 16:30:34.984844+ 0700 Runner [9026:1109274]
[VERBOSE-3:shell.cc(216)]检查失败:虚拟机。必须能够初始化虚拟机
。
2018-10-24 16:30:34.984844+0700 Runner[9026:1109274] [VERBOSE-3:shell.cc(216)] Check failed: vm. Must be able to initialize the VM.
任何人都有修复它的想法吗?
Anyone have idea to fix it ?
推荐答案
我遇到了同样的问题,解决了
I have the same issue, solved by
- 在xcode中, 产品->清洁构建文件夹
- flutter clean
- flutter run --release
这篇关于启动时构建iOS崩溃时崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!