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 *
}
}
Topic:
App & System Services
SubTopic:
General
Tags: