Hi. I successfully configured kmmBridge for local ...
# touchlab-tools
a
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
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
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