Xcode error: using bridging headers with module interfaces is unsupported

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”

error: using bridging headers with module interfaces is unsupported

Solution

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.

solution: using bridging headers with module interfaces is unsupported

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.

Next

1. Get Current Location in Swift IOS

2. Action Sheet in IOS & its Troubleshooting

Please share this post:
Native Mobile Application Developer (Android + IOS) having experience in Java, Swift, Kotlin, Objective C, Unity, C#, C/C++, NODE JS & PHP.

Ask a Question

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Related Posts

Begin typing your search term above and press enter to search. Press ESC to cancel.

%d bloggers like this: