一、Error while initializing the Dart VM: Wrong full snapshot version, expected 'b555f636e5ed67c4cd65ec7250ff2930' found 'e4a09dbf2bb120fe4674e0576617a0dc' (lldb)
解决办法:
问题发生于升级flutter sdk之后,iOS真机调试,AS控制台报上面错误。看报错信息Wrong full snapshot version可以猜测:升级了sdk,但是之前已生成的编译产物还是旧的,不匹配,需要重新build一下。
1.删除flutterSDk下的cache文件夹
2.flutter upgrade
3.flutter clean
4.flutter run
cache路径
二、Flutter /bin/sh: /packages/flutter_tools/bin/xcode_backend.sh: No such file or directory
检查图上路径是否正确
如标题,在集成flutter到项目中,进行混合开发时遇到的问题
可根据下列点去排除问题
1.flutter module的目录最好和你的工程同目录
2.在Build Settings里 搜索FLUTTER,看下FLUTTER_APPLICATION_PATH 以及FLUTTER_ROOT的路径对不对
3.Flutter.xcconfig里flutter module的路径是否正确
原文链接:https://blog.csdn.net/liuxu0718/article/details/93039758
网友评论