Xcode 11.2.1错误:命令CompileSwiftSources失败,退出代码为非零 [英] Xcode 11.2.1 error: Command CompileSwiftSources failed with a nonzero exit code

查看:821
本文介绍了Xcode 11.2.1错误:命令CompileSwiftSources失败,退出代码为非零的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经下载了最新的Xcode 11.2.1.在构建时,出现此错误.

I've downloaded the latest Xcode 11.2.1. When I build I'm getting this error.

< unknown>:0:错误:不支持在模块接口中使用桥接头 命令CompileSwiftSources失败,退出代码非零

<unknown>:0: error: using bridging headers with module interfaces is unsupported Command CompileSwiftSources failed with a nonzero exit code

我该如何解决?

推荐答案

我通过将目标Build Settings中的Build Options-> Build Libraries for Distribution设置为No,解决了此构建错误.

I solved this build error by setting Build Options -> Build Libraries for Distribution in the targets Build Settings to No.

我偶然发现了对我有用的配置更改,因此我没有任何证据/研究来证明它为什么起作用.而且我仅在调试版本中尝试过此方法,如果有任何更改,它将更新我的答案.您的里程可能会有所不同.

I stumbled upon this config change that worked for me so I don't have any evidence/research to back up why it works. And I have only tried this for debug builds, will update my answer if anything changes. Your milage may vary.

我的项目规格如下:

Xcode 11.1(11A1027)

Xcode 11.1 (11A1027)

Brownfield React Native iOS应用

Brownfield React Native iOS app

这篇关于Xcode 11.2.1错误:命令CompileSwiftSources失败,退出代码为非零的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆