In KMM when I want to save data in sqldelight data...
# multiplatform
h
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
Try running/debugging it in android studio using the kmm plugin so you can see the actual exception and where
k
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
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?