A module (static library with module-map file) is having mixed code (Objective-C + Swift) in an iOS App codebase. The Swift code is being used from module only within a the Objective C code. Ideally the swift interface need not to be public but internal. We can't as the documentation here says
Because the generated header is part of the framework’s public interface, only declarations marked with the public or open modifier appear in the generated header for a framework target. Methods and properties that are marked with the internal modifier and declared within a class that inherits from an Objective-C class are accessible to the Objective-C runtime. However, they're inaccessible at compile time and don't appear in the generated header for a framework target.
Is there a workaround or possibility of fixing this "Bug"