Hi Everyone, so I’m using Koin in my KMM projet. I...
# koin
k
Hi Everyone, so I’m using Koin in my KMM projet. I do the startKoin when app start (on main thread) and try to access my API from Swift’s
Task
(non main thread). It gives me this error
Copy code
Function doesn't have or inherit @Throws annotation and thus exception isn't propagated from Kotlin to Objective-C/Swift as NSError.
It is considered unexpected and unhandled instead. Program will be terminated.
Uncaught Kotlin exception: kotlin.native.IncorrectDereferenceException: illegal attempt to access non-shared org.koin.core.context.GlobalContext.KoinInstanceHolder@126fc48 from other thread
Anyone know how to work around this issue? Thank you
here is the version of Koin (and Coroutines if necessary)
Copy code
const val coroutines = "1.6.0-native-mt"
const val koin = "3.1.5"
a
on native part, things working well from main thread. Else try to ask about help in #multiplatform channel?