It is also possible to set the Product Module Name
setting in Build Settings
to be the same across your modules (I set it to $(PROJECT_NAME)
), so that the <project>-Swift.h
file that is generated has the same name across all modules. This eliminates the need for adding/checking preprocessor macros.