Swift framework header header - Enable a non-modular header inside the framework

I am trying to incorporate an openssl structure in the build I create (I created it with cocoapods - pod lib create). When I go to the default probe header and import some openssl header structure, I get Include a non-modular header inside the frame module .
I tried everything to fix this (proven stackoverflow question forms), including a solution with non-modular inclusion enabled.
I used the openssl framework in regular fast projects, importing it into the header header, and I had no such problems.

+6
source share
1 answer

After a long time, I finally found a solution that worked for me.

The inclusion of a non-modular header inside the frame module means that you must make the frame that you want to include in the modular. This can be done by creating your own module map, where you define a new module for the desired structure.
You can find here how to create a custom module map.

It is important to note that I managed to cope only with dynamic frames . Another important: you must use the absolute path in the module map (for example, header "/Users/User1/Documents/Project/TestProject/Sample.framework/Headers/sample.h"

0
source

All Articles