Search code examples
iphonedartflutterxcode10

Flutter app Error while initializing the Dart VM: Wrong full snapshot version, expected '8343.....' found '46b2....'


flutter app was working getting build and run on Xcode 10 on device iOS 12 fine before,

The time dart upgrade 2.1.0 happen in Flutter build iOS worked well with command and on Xcode 10 after build get success while running Flutter app on iPhone 7 iOS 12, it started giving error and app gets crash with following error message in Xcode logs.

Error is Runner[410:28754] [VERBOSE-3:dart_vm.cc(403)] Error while initializing the Dart VM: Wrong full snapshot version, expected '8343f188ada07642f47c56e518f1307c' found '46b2bfb57b5647c5f7527ff9aa56c69b'

Here are the details of the flutter sdk and dart .

Flutter 0.11.9 • channel beta • https://github.com/flutter/flutter.git Framework • revision d48e6e4 Engine • revision 5c8147450d Tools • Dart 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)


Solution

  • I have experienced this error and none of the above solution worked for me infact the option of clearing the flutter/bin/cache messed the entire vscode IDE. So I deleted the entire flutter SDK and installed fresh new SDK from flutter official website. After this installation everything was working fine.