Hey Chat. Is there any solution for this problem: ...
# multiplatform
a
Hey Chat. Is there any solution for this problem: https://youtrack.jetbrains.com/issue/KT-68952/Undefined-symbols-for-arm64-with-MLKit available by now? I have tried to approach the same task in our open source project recently and it's still unclear how to successfully integrate the MLKit with KMP iOS64 target. Any pointers or ideas are highly welcomed!
Bump. Does anybody know if that's a bug in development? I feel the obvious task of linking external C library should not be that hard, so the guy above and me just approaching it from the wrong end? (which means the KMP doc on that is prob. flawed).
@Timofey Solonin Perhaps, you could elaborate on your short explanation on that bug thread here? There is a good chance, something has improved/changed after 9 months?
t
Can you please create an issue with a minified reproduction? Depending on how exactly you link and distribute your K/N framework, the answer to your problem may be different to the issue that you are referencing.
which means the KMP doc on that is prob. flawed
Can you please mention there which docs you have looked at, so that we know what docs we should improve. In general when you are consuming CocoaPods dependencies in your K/N code, you will have to integrate your K/N framework to the iOS project through CocoaPods: • Make sure you add the K/N framework
.podspec
to the
Podfile
and use the
pod install
-generated
.xcworkspace
• The K/N framework
.podspec
will be generated adjacent to your
build.gradle.kts
• You will likely need to switch to static linkage in the K/N framework