Swift and Objective-c framework exposes its internals
问题 I’m trying to integrate Swift into an existing objective-c framework that has public, private and project files. In order for swift to access the project files, I added a modulemap that defines a new module (e.g MyFramework_Internal ) by including all the project headers as explained here: http://nsomar.com/project-and-private-headers-in-a-swift-and-objective-c-framework/ That setup is sort of working but one thing I was surprised to see is that now a client can access the internal classes by