Hey everyone, Is it possible to depend on c++ or S...
# multiplatform
s
Hey everyone, Is it possible to depend on c++ or Swift packages for native targets? If yes, does anyone have a small example of either? I can only find big complex setups, with complex Gradle setups.
1
a
Is it possible to depend on c++ or Swift packages for native targets?
You can do that through C wrappers or
@objc
attribute https://docs.swift.org/swift-book/ReferenceManual/Attributes.html#ID592 Which I guess isn’t the answer you were looking for 😞 I know that @salomonbrys has some experience with the topic.
s
Wrapping a C library would suit me perfectly as well. I'm trying to wrap BCrypt which has a simple C implementation
Thanks for sharing @Anton Lakotka [JB] & @salomonbrys