从原生进入到flutter页,此时控制台会报如下错误:
·2022-05-18 09:16:50.725553+0800 SMSAMA[45984:2678159] [VERBOSE0:callback_cache.cc(133)] Could not parse callback cache, aborting restore
2022-05-18 09:16:50.731014+0800 SMSAMA[45984:2678159] Failed to find assets path for "Frameworks/App.framework/flutter_assets"
2022-05-18 09:16:50.731665+0800 SMSAMA[45984:2678159] Metal API Validation Enabled
2022-05-18 09:16:50.796915+0800 SMSAMA[45984:2678499] [VERBOSE-2:engine.cc(182)] Engine run configuration was invalid.
2022-05-18 09:16:50.797034+0800 SMSAMA[45984:2678499] [VERBOSE-2:shell.cc(588)] Could not launch engine with configuration.
按照网上的解决方案,如下图:
image.png
原文链接:http://events.jianshu.io/p/5202ebacb3e0
此时,你会发现可能没有效果,经过与之对比后,需要注意如下选项得先去掉勾选,xcode默认是勾选的。
image.png
再次运行程序,flutter页面可以成功加载了,再将此选项勾选上也没有问题。
网友评论