I have a third party driver software with a lot of static libraries and a whole lot of headers. My goal is to wrap those libraries and headers into a cocoa framework, use an umbrella for all the headers that I need, and load this framework as a module into my Swift app. What I want to avoid is to copy all the headers into the public header section of the build settings.
When I import the C++ headers in the framework header I get a lot of error messages "Inlcude of non-modular headers inside framework module".
In the internet they say we can use the targets build settings to allow non-modular headers. But this doesn't worked either.
Some background why I want to do this. Sometimes we must switch back to older versions of the driver software. So my goal is to use git branches for each version and use them to build cocoa frameworks that I can use in my Swift app.
Has someone managed to build frameworks containing C++ libraries and their headers to use them within Swift projects already? I checked the internet and it seems to be not so easy as I thought.