Skip to content

Instantly share code, notes, and snippets.

@vishna
Created August 8, 2019 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vishna/a171fc4420e2fc2b90b8254bc3bde0f7 to your computer and use it in GitHub Desktop.
Save vishna/a171fc4420e2fc2b90b8254bc3bde0f7 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Makes the bash script to print out every command before it is executed except echo
trap '[[ $BASH_COMMAND != echo* ]] && echo $BASH_COMMAND' DEBUG
echo "Executing steps to repro issue #37852"
echo "https://github.com/flutter/flutter/issues/37852"
echo "MAKE SURE YOU'RE ON MASTER CHANNEL!"
echo "MAKE SURE YOU HAVE iOS SIMULATOR RUNNING"
# flutter channel master
# flutter upgrade
echo "Creating sample flutter module..."
flutter create -t module my_flutter
cd my_flutter
echo "Downloading yaml with extra depenendency..."
wget https://gist.githubusercontent.com/vishna/5b7939e9c42f2a160103e5123ce6f099/raw/7f2a680cc131e59f6f005fb6081af321373cd2de/my_flutter_pubspec.yaml -O pubspec.yaml
echo "Running module on device..."
flutter run
@vishna
Copy link
Author

vishna commented Aug 8, 2019

You should see following error at the end

[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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment