gpt4 book ai didi

ios - 构建失败 : Could not find an option named "track-widget-creation"

转载 作者:IT王子 更新时间:2023-10-29 06:57:42 27 4
gpt4 key购买 nike

我正在尝试构建我的项目以部署到 TestFlight,但无论是使用 Xcode、终端还是 vscode,我的构建都失败并出现以下错误:找不到名为“track-widget-creation”的选项。

我已经按照之前的建议解决了这个问题,不幸的是它对我不起作用。

  1. flutter 干净
  2. flutter build iOS --release

Xcode 的输出:↳ === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION 发布 === 找不到名为“track-widget-creation”的选项。

Run 'flutter -h' (or 'flutter <command> -h') for available flutter commands and options.
Failed to build /Users/XXXXXX/Documents/Flutter/XXXXXX.
Command /bin/sh failed with exit code 255

最佳答案

通过修改 xcode_backend.sh 文件修复。

$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh

local track_widget_creation_flag=""
if [[ -n "$TRACK_WIDGET_CREATION"

&& "${build_mode}" == "debug"

]]; then
track_widget_creation_flag="--track-widget-creation"
fi

关于ios - 构建失败 : Could not find an option named "track-widget-creation",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55330050/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com