Post

Replies

Boosts

Views

Activity

Reply to Use a C lib in Swift Package Manager
Hey, I'm one of the maintainers of tidy-html5, and I'm trying to do the same thing. Did you make any progress? In my case, I'm trying to have the package reference the source, so that it will build on any platform. I'm struggling to have all of the symbols from enum.h be recognized. It looks like you're trying to build a [system] package, meaning that users will have to install the library themselves via brew or apt-get. That's common for Unix libraries, but I prefer static linking, and am struggling with Swift Package Manager. Without SPM, it's trivial to get them to build and work together in Xcode, but then that's an Xcode project and not a Swift Package.
Jul ’21