在添加Run Script的"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" build
的這句話后趴乡,反而編譯報(bào)錯(cuò),在主工程的同級(jí)目錄下新建了一個(gè).dart_too的文件夾,報(bào)的錯(cuò)是
/主工程所在的路徑/.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氢伟。押赊。短条。
有時(shí)候vscode里沒(méi)保存還會(huì)報(bào)
Command PhaseScriptExecution failed with a nonzero exit code
保存再build即可
有時(shí)候誤自動(dòng)引入import 'dart:js';也會(huì)build失敗