Swift构建错误_if_any_output_files_are_specified_they_all_must_be [英] Swift build error_if_any_output_files_are_specified_they_all_must_be
问题描述
当转换为在Xcode 10上使用新的构建系统时,我的几个扩展目标的输出中出现以下错误。
< unknown>:0:错误:如果指定了任何输出文件,则它们都必须是
命令CompileSwift失败,退出代码为非零
我已经在网上寻找解决方案,但是我能找到的唯一对此错误的参考是Swift编译器源代码本身。
-
这意味着,您必须忽略
验证项目设置
警告:
When converting to use the new build system on Xcode 10, I get the following error in my output for several of my extension targets.
<unknown>:0: error: if any output files are specified, they all must be Command CompileSwift failed with a nonzero exit code
I have looked for a solution online, but the only reference I can find to this error is in the Swift compiler source code itself.
Does anyone know how this error is actually triggered, or what I can do to fix it?
解决方案Ok, I had the same problem with one of our projects. Building or Archiving are always stopped with the error
<unknown>:0: error: if any output files are specified, they all must be
.The solution for us was to set
Compilation Mode
toIncremental
instead ofWhole Module
.This means, you have to ignore the
Validate Project Settings
warning:这篇关于Swift构建错误_if_any_output_files_are_specified_they_all_must_be的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!