# multiplatform

Philip Dukhov

01/10/2021, 4:49 AM
I have two modules. first one added to both iOS and Android, and second one is added to the first one as a dependency. iOS headers for classes from the second module are generated only if the class is needed for headers of the first module. Let’s say I have a class B in the second module. if I create any public variable of type B in any class of the first module, I can use class B in swift. And extension functions are not included at all. Is there a way to mark a subproject class/extension as needed to be included to the framework headers?


01/10/2021, 12:14 PM
@Philip Dukhov you need to export the second module to the ios framework (which is build from the first module) - link
👍 1