First, thank you so much for your blog post. It's been helping me a ton to figure this stuff out.
But I'm curious how I'd go about mixing Swift & Objective-C in a static library. I have a framework that I want to make into a static library that has a private module as well to share code internally between Swift & Objective-C code (so this would require a module.private.modulemap
file, which also means I need to make my module map by hand).
framework module MyFramework {
umbrella header "MyFramework.h"
export *
module * { export * }
}
module MyFramework.Swift {
header "MyFramework-Swift.h"
requires objc
}
I'm not sure if there's a way for me to manually make this file to also then have my private module map expose the internal Objective-C to my internal Swift.
If you've got any ideas on how I can proceed here I'd much appreciate it. Thanks again!