Kotlin Native Model use to iOS create a singletons, call fun in async Thread, Crash

Uncaught Kotlin exception: kotlin.native.IncorrectDereferenceException: illegal attempt to access non-shared xxx@7a378d8 from other thread

Hello, @hxxyyangyong! What exactly you were trying to do here? Some additional info would make the case clearer in view. It looks like you are violating Kotlin/Native concurrency rules. I mean mutable XOR shared, that is described here

I maintain a KN model static variable in oc, and then use this static variable in the child thread.