I have a dynamic framework MyFramwork.framework
that has Swift code and ObjC headers marked as Protected (to be used internally in MyFramwork.framework) and Public (to be used externally by the App) in the framework's project. Also MyFramwork.framework is an embedded framework in App
Following the steps mentioned here http://nsomar.com/project-and-private-headers-in-a-swift-and-objective-c-framework/, i've created a
module MyFramwork_Private {
header "../...h"
...
export *
}
with all protected headers (SWIFT_INCLUDE_PATHS
= path to directory where the module.modulemap file is)
and an PublicHeaders.h
(which i import in my umbrella header MyFramwork.h
) with all the public headers
How can I make a Public Swift class/struct that makes use of MyFramwork private code available in App?
If i import MyFramwork_Private
in a swift file from MyFramwork, the App, when building the MyFramwork.framework, will try to access the private headers defined in module MyFramwork_Private
and build fails because App can not see the protected header