https://kotlinlang.org logo
#touchlab-tools
Title
# touchlab-tools
a

Anton Penkrat

03/06/2023, 11:16 AM
Hi. I successfully configured kmmBridge for local development through cocoapod dependency. I may call functions and receive results but when i try to init class instance that defined inside KMM i receive error during build phase: Undefined symbol: _OBJC_CLASS_$_AllsharedIosProvKeyPairImpl Is it something in my configuration or KMM expose only header for interaction with Swift and we can’t init classes directly?
r

russhwolf

03/06/2023, 2:43 PM
It should be possible to init Kotlin classes from Swift. Hard to say what's going wrong without seeing more of your project. What does the Kotlin declaration look like that you're trying to call? What's the Swift call-site look like? Can you share the relevant parts of your gradle config (kmmbridge block, kotlin block, etc)?
a

Anton Penkrat

03/06/2023, 3:20 PM
Thanks a lot for your answer. I made it working finally. Probably it was Xcode build cache because i do not change anything in configuration but it suddenly it started to compiling
25 Views