I don't understand what to do to build a Swift static lib that uses
this lib?
There’s nothing fundamentally impossible about using an [Objective-]C static library from Swift. The approach I recommend is that you package the library and its headers into an XCFramework, which you can then import and use directly from Swift. The only potential roadblock is that the [Objective-]C must be modularised.
I want to build a kind of wrapper to intercept some functions of the
objc library.
What do you mean by “intercept”? To intercept a call there must be a caller and a callee. The callee is the static library, obviously. But who is the caller?
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"