0

尝试使用注入的颤振模块构建 iOS 应用程序时出现此错误。我在 pod 中添加了 FLUTTER_ROOT 和颤振依赖项已成功安装,但构建失败,出现此错误:

ERROR: Unknown FLUTTER_BUILD_MODE: vedur_dev.
Valid values are 'Debug', 'Profile', or 'Release' (case insensitive).
This is controlled by the FLUTTER_BUILD_MODE environment variable.
If that is not set, the CONFIGURATION environment variable is used.

You can fix this by either adding an appropriately named build
configuration, or adding an appropriate value for FLUTTER_BUILD_MODE to the
.xcconfig file for the current build configuration (Vedur_Dev).

我在 TARGETS 应用程序的用户定义设置中添加了 FLUTTER_BUILD_MODE,如下所示: 在此处输入图像描述 并分配了 iOS 理解的值。我清理了项目,但得到完全相同的错误。我不确定我在哪里犯了错误。

编辑:应用程序在没有模块的情况下构建得很好。

4

1 回答 1

0

我们在构建系统上也看到了这一点。问题似乎是颤振脚本无法弄清楚您正在运行哪种构建。所以要设置FLUTTER_BUILD_MODE环境变量来Release修复它。

有效值为DebugProfileRelease

为 Xcode 设置环境变量的指南。(或通过脚本。

于 2021-11-25T09:15:56.273 回答