we are trying to use nats library for iOS/Swift Project. We haven’t gotten a direct swift library to integrate with iOS project. Hence, we are trying to use nats.c library inside our project. We are doing this by generating static library
out of nats.c project with cmake.
Even though we are able to generate .a
file static library file for iOS architecture, but we are blocked on how to import these headers and link this binary into our project. Using build phases to link binary file into xcode project we tried but it’s not giving us options to create a wrapper around it using swift.
Any help through the documentation on integrating or sample project or any other way is really appreciated.