Open
Description
I found a problem with release build for iOS. The app is built, but it crashes on launch.
[VERBOSE-3:dart_init.cc(560)] Error while initializing the Dart VM: JIT runtime cannot run a precompiled snapshot
iOS debug, Android debug/release work well.
This issue is on master and alpha channels.
New project (flutter create ...
) runs without crashes.
Steps to Reproduce
flutter run --release -v
https://gist.github.com/mogol/1702b19068d949f44bdb54f693351b23
Logs
Run your application with flutter run
and attach all the log output.
flutter run
Launching lib/main.dart on iPhone 7 GS in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: PWSQ8TH82A
Running Xcode build... 16.4s
You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
Syncing files to device iPhone 7 GS... 2.8s
π₯ To hot reload your app on the fly, press "r". To restart the app entirely, press "R".
An Observatory debugger and profiler on iPhone 7 GS is available at: http://127.0.0.1:8102/
For a more detailed help message, press "h". To quit, press "q".
Run flutter analyze
and attach any output of that command also.
flutter analyze
Analyzing /Users/herman/Projects/fitness/mobileapp...
lint β’ Type annotate public APIs at lib/calendar/calendar.dart:45:20 β’ type_annotate_public_apis
lint β’ Type annotate public APIs at lib/main.dart:99:20 β’ type_annotate_public_apis
lint β’ Avoid annotating with dynamic when not required at lib/redux/state.g.dart:46:20 β’ avoid_annotating_with_dynamic
lint β’ Sort constructor declarations before method declarations at lib/redux/state.g.dart:105:3 β’ sort_constructors_first
lint β’ Avoid returning this from methods just to enable a fluent interface at lib/redux/state.g.dart:107:23 β’ avoid_returning_this
lint β’ Avoid using `as` at lib/redux/state.g.dart:122:11 β’ avoid_as
6 issues found.
(Ran in 11.1s)
Flutter Doctor
flutter doctor
[β] Flutter (on Mac OS X 10.12.6 16G29, locale en-RU, channel master)
β’ Flutter at /Users/herman/Projects/github/flutter
β’ Framework revision f1a23e263c (3 hours ago), 2017-08-29 14:58:31 +0200
β’ Engine revision e5395796cd
β’ Tools Dart version 1.25.0-dev.11.0
[β] Android toolchain - develop for Android devices (Android SDK 26.0.0)
β’ Android SDK at /Users/herman/Library/Android/sdk
β’ Platform android-26, build-tools 26.0.0
β’ ANDROID_HOME = /Users/herman/Library/Android/sdk
β’ Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
β’ Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
[β] iOS toolchain - develop for iOS devices (Xcode 8.3.3)
β’ Xcode at /Applications/Xcode.app/Contents/Developer
β’ Xcode 8.3.3, Build version 8E3004b
β’ ios-deploy 1.9.1
β’ CocoaPods version 1.2.1
[β] Android Studio (version 2.3)
β’ Android Studio at /Applications/Android Studio.app/Contents
β’ Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
[β] IntelliJ IDEA Ultimate Edition (version 2017.2.2)
β’ Flutter plugin version 16.0
β’ Dart plugin version 172.3757.55
[β] Connected devices
β’ None