Xcode 11.2.1 error: Command CompileSwiftSources failed with a nonzero exit code

[亡魂溺海] 提交于 2020-04-15 12:10:43

问题


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

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

How can I resolve this?


回答1:


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.

My project specs below:

Xcode 11.1 (11A1027)

Brownfield React Native iOS app



来源:https://stackoverflow.com/questions/59192371/xcode-11-2-1-error-command-compileswiftsources-failed-with-a-nonzero-exit-code

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!