I have recently faced this error “using bridging headers with module interfaces is unsupported” while building my project in Xcode 11.5. Here I am going to share the solution as well as the root cause of the error. I faced this error while I shifted my project from the Old build system to the new build system in Xcode.
Error Screenshot “using bridging headers with module interfaces is unsupported”
It seems from the error that the problem is with the Bridging Header you have added to use your objective C frameworks in Swift. Although removing the Bridging Header reference from the Build Settings can resolve this error but then you will see many errors in the project because of those Objective C libraries you are using in your project. Which you have mentioned in the Bridging-Header.h file. So removing the Bridging Header is not the exact solution.
The solution is, in your Project Level & Target level Build Settings tab, open the Build Options menu. And then set Build Libraries for Distribution option to No.
This is because in the new Build system either we can keep the bridging header. Or we can build libraries for distribution. We cannot set both together. So just set this option to No and your project should build now.
If you have any questions, feel free to ask in the comments section below.