Create a Swift package to be used in C++

Community, I am looking for a hint here.

We know we can have interoperability between ObjC and Swift, even import a header MyModule-Swift.h that's autogenerated into ObjC file. Since Swift 5.9 we can even have C++ interop with Swift. And that's great.

Now I wonder how this header -Swift.h is generated as I would like to create a binary of a Swift Package that can be imported and used from a C++ app.

How could I do that?

1 Like