While it is super easy to build a swift framework and set up the dependency. It is also quite easy to build a swift static library.
This is what you will achieve after this tutorial:
with Objective-C and Swift Code…
Using C, C++ and Objective-C frameworks in Swift apps
I did a talk in try!Swift Tokyo this year about using C, C++ and Objective-C frameworks in Swift apps…
is not tricky if we know the tricks.
TL;DR Swift can not read C++ code directly, but if we wrap the C++ library into an Objective-C module using Objective C++, it will do the trick.