Skip to content

Flutter Module -> Dart Error: Can't load Kernel binary: Invalid kernel binary format version. #37852

@vishna

Description

@vishna

iOS Simulator white screen of death

Steps to Reproduce

Based on: Add Flutter to existing apps page.

  1. Have iOS simulator running.
  2. Switch to master channel flutter channel master
  3. Create flutter module flutter create -t module my_flutter
  4. Go to module directory execute flutter run
  5. Observe beautiful flutter counter app running on iOS Simulator 🎉
  6. Now add cached_network_image: ^1.1.1 to pubspec.yaml
  7. Do flutter run again and enter the sadness 😭

Here's a script to repro: https://gist.github.com/vishna/a171fc4420e2fc2b90b8254bc3bde0f7

Logs

Running "flutter pub get" in my_flutter...                      4.0s
Launching lib/main.dart on iPhone Xʀ in debug mode...
Running pod install...                                              2.1s
Running Xcode build...                                                  
                                                   
 ├─Assembling Flutter resources...                           7.7s
 └─Compiling, linking and signing...                        13.9s
Xcode build done.                                           26.2s
[VERBOSE-2:shell.cc(178)] Dart Error: Can't load Kernel binary: Invalid kernel binary format version.
[VERBOSE-2:engine.cc(176)] Could not prepare to run the isolate.
[VERBOSE-2:engine.cc(123)] Engine not prepare and launch isolate.
[VERBOSE-2:FlutterEngine.mm(294)] Could not launch engine with configuration.
vm-service: Error: Unhandled exception:
Unrecognized response: null
#0      new Response.from (dart:_vmservice/message_router.dart:70:7)
#1      Message._setResponseFromPort (dart:_vmservice/message.dart:244:29)
#2      Message.sendToVM.<anonymous closure> (dart:_vmservice/message.dart:216:7)
#3      _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)
[✓] Flutter (Channel master, v1.8.5-pre.64, on Mac OS X 10.14.6 18G87, locale en-DE)
    • Flutter version 1.8.5-pre.64 at /Users/vishna/flutter
    • Framework revision b11c5acaa6 (17 hours ago), 2019-08-07 10:16:33 -0700
    • Engine revision 739b2dd4b2
    • Dart version 2.5.0 (build 2.5.0-dev.1.0 c262cbd414)

[✓] Xcode - develop for iOS and macOS (Xcode 10.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.2.1, Build version 10E1001
    • CocoaPods version 1.6.0

[✓] Connected device (1 available)
    • iPhone Xʀ • 9EBC1F10-02BA-478C-AA61-553015BCAA69 • ios • com.apple.CoreSimulator.SimRuntime.iOS-12-2 (simulator)

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: existing-appsIntegration with existing apps via the add-to-app flow

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions