Flutter:xcode_backend.sh在哪里? [英] Flutter: where is xcode_backend.sh?

查看:134
本文介绍了Flutter:xcode_backend.sh在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在文档中 https://github.com/flutter/flutter/Wiki/Obfuscating-Dart-Code ,上面写着Add the following flag to the build aot call in the <ProjectRoot>/packages/flutter_tools/bin/xcode_backend.sh file.

但是我根本没有目录<ProjectRoot>/packages/.我必须以某种方式创建它吗?非常感谢.

But I don't have the directory <ProjectRoot>/packages/ at all. Do I have to create it somehow? Thanks a lot.

推荐答案

我想官方文档中有一个错误.

I guess there's a mistake on the official documentation.

更新:维基页面现已得到已更正

UPDATE: the wiki page has now been corrected

不是

<ProjectRoot>/packages/flutter_tools/bin/xcode_backend.sh

但应该是(并且是)

<FlutterRoot>/packages/flutter_tools/bin/xcode_backend.sh

如果您不记得在哪里安装flutter sdk,请尝试以下命令:

If you don't remember where you have installed flutter sdk try this command:

which flutter

它将显示

<FlutterRoot>/bin/flutter

然后您将在<FlutterRoot>

cd <FlutterRoot>
find . -name "xcode_backend.sh"
./packages/flutter_tools/bin/xcode_backend.sh

至少官方文档指出此功能是

At least the official docs points out that this feature is

并指向此有用的 SO答案.

这篇关于Flutter:xcode_backend.sh在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆