Join Slack
Communities
Powered by
In KMM project, can i add a dependency on xcframe...
# multiplatform
v
Vladimir Vainer
08/13/2023, 1:24 PM
In KMM project, can i add a dependency on xcframework library to iOS target?
j
Jeff Lockhart
08/13/2023, 2:37 PM
Yes. Is it a binary you are pulling from somewhere or local to your project repository?
Jeff Lockhart
08/13/2023, 2:43 PM
If it's a local binary, you can generate Kotlin interop and link with a .def file. See:
https://kotlinlang.org/docs/native-c-interop.html#select-library-headers
and
https://kotlinlang.org/docs/native-objc-interop.html
If it's a remote binary, available through CocoaPods, you can use the CocoaPods plugin:
https://kotlinlang.org/docs/native-cocoapods.html
v
Vladimir Vainer
08/13/2023, 3:06 PM
Thanks
354
Views
Open in Slack
Previous
Next