In KMM when I want to save data in sqldelight database on iOS, a KotlinException will be thrown while on Android it is Ok. How can I fix it?
k
Kweku
04/10/2021, 3:24 PM
Try running/debugging it in android studio using the kmm plugin so you can see the actual exception and where
k
kpgalligan
04/10/2021, 3:49 PM
That may help. I'd catch and print the exception in Kotlin just to see what's going on. Also, if you want to try in xcode, we publish an xcode plugin as well https://github.com/touchlab/xcode-kotlin
c
clark
04/15/2021, 3:08 PM
I had a similar error to this a little while back and I think it was related to concurrency in native. If you try and change an object that has been passed to a different thread, it throws an error.
May not be what you're seeing, but could be related?