Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

xcode

ios

xcode11

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?

like image 717
Tumenbayar SaS Avatar asked Dec 05 '19 09:12

Tumenbayar SaS


1 Answers

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

like image 122
Tony Xu Avatar answered Nov 09 '22 10:11

Tony Xu