首页 > 解决方案 > XCode 13 警告:不推荐以手动顺序构建目标 - 检查“为命令行构建并行构建”但不存在这样的 UI 选项?

问题描述

我在 Big Sur 有一个使用 Xcode 13 从命令行通过的产品构建xcodebuild并生成此警告:

warning: Building targets in manual order is deprecated - check "Parallelize build for command-line builds" in the project editor, or set DISABLE_MANUAL_TARGET_ORDER_BUILD_WARNING in any of the targets in the current build to suppress this warning

文档说:

在此处输入图像描述

但是,我找不到这样的选项:

在此处输入图像描述

标签: xcodexcodebuildmacos-big-surxcode13

解决方案


在 Xcode 13 中,“Parallelize Build”复选框被两个单选按钮取代:“Dependency Order”(与选中的旧复选框相同)和“Manual Order”(与未选中的旧复选框相同)。

我认为这是一个很好的改变,因为复选框并没有清楚地说明未选中时会发生什么。

在您的屏幕截图中,“依赖顺序”已经被选中,所以您应该可以开始了。


推荐阅读