Post marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
Post marked as solved with 1 replies, 0 views
I found a workaround.
It seems that XCFramework are not Frameworks, thus they cannot be modularized. So I did copy the C "umbrella" header to my source tree, and defined an explicit module in a custom module.modulemap (adding a custom umbrella header too).
I can successfully import this submodule in my swift code, and call C stuff.
Here's the modulemap code:
framework module Add {
umbrella header "Add-umbrella.h"
export *
module * { export * }
explicit module Core {
private header "add.h"
export *
}
}