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"
source share