Swift构建error_if_any_output_files_are_specified_they_all_must_be

72A*_*F4E 2 compiler-errors build swift xcode10

转换为在Xcode 10上使用新的构建系统时,我的输出中的几个扩展目标出现以下错误.

<unknown>:0: error: if any output files are specified, they all must be Command CompileSwift failed with a nonzero exit code

我在网上寻找了一个解决方案,但我能找到的唯一参考是这个错误是在Swift编译器源代码本身.

有谁知道这个错误是如何实际触发的,或者我可以做些什么来修复它?

AxM*_*AxM 8

好吧,我的一个项目遇到了同样的问题.建立或存档始终会因错误而停止<unknown>:0: error: if any output files are specified, they all must be.

我们的解决方案是设置Compilation ModeIncremental代替Whole Module.

在此输入图像描述

这意味着,你必须忽视Validate Project Settings警告: 在此输入图像描述