Skip to content

iOS&Flutter 混编问题分析 #26

@RicoLiu

Description

@RicoLiu

在进行iOS真机调试时,项目工程编译未报错,但是启动运行后页面一直白屏,控制台输出如下信息:

[VERBOSE-2:shell.cc(93)] Dart Error: Can't load Kernel binary: Invalid kernel binary format version.
[VERBOSE-2:dart_isolate.cc(143)] Could not prepare isolate.
[VERBOSE-2:runtime_controller.cc(385)] Could not create root isolate.
[VERBOSE-2:shell.cc(604)] Could not launch engine with configuration.

解决方案:

删除Flutter安装目录中的bin/cache目录,然后运行

flutter doctor -v
flutter clean
flutter pub get
flutter build ios

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions