尝试使用注入的颤振模块构建 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 理解的值。我清理了项目,但得到完全相同的错误。我不确定我在哪里犯了错误。
编辑:应用程序在没有模块的情况下构建得很好。