美文网首页
iOS混编flutter中run script脚本配置一个浅坑

iOS混编flutter中run script脚本配置一个浅坑

作者: louis_newman | 来源:发表于2021-03-23 17:43 被阅读0次

在添加Run Script的"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" build的这句话后,反而编译报错,在主工程的同级目录下新建了一个.dart_too的文件夹,报的错是

/主工程所在的路径/.dart_tool/package_config.json does not exist.
Did you run this command from the same directory as your pubspec.yaml file?
Command PhaseScriptExecution failed with a nonzero exit code

解:在build settings里添加FLUTTER_APPLICATION_PATH。。。

有时候vscode里没保存还会报
Command PhaseScriptExecution failed with a nonzero exit code
保存再build即可

有时候误自动引入import 'dart:js';也会build失败

相关文章

网友评论

      本文标题:iOS混编flutter中run script脚本配置一个浅坑

      本文链接:https://www.haomeiwen.com/subject/flnfhltx.html