https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
d

Dr.jacky

11/15/2020, 2:59 PM
Hey guys I have a problem My sample project was working perfectly on kotlin 1.3.70 and when I upgrade to 1.4.10, 14.20-rc and upgrade Kodein, Ktor, Serialization, ... the iOS app crashes but, Android run without problem. I struggled a lot but, couldn’t figure out what is wrong with the iOS app! Could anyone give me a hand on this? https://github.com/Drjacky/TMDbMultiplatform/tree/feature/kotlin1410 I appreciate that __ Before kotlin migration, I could see the app launch and see the list of movies on the list. Now on iOS, it shows a white screen for a second then, the app will close. I cleared the log system, then just run the app. It starts, then stopped:
Nov 14 195222 Drjacky-MacBookPro ios[11152]: assertion failed: 20B29 18B79: libxpc.dylib + 50260 [BDCDB527-0E34-3346-8444-E8CEEF0377ED]: 0x7d
Nov 14 195222 Drjacky-MacBookPro http://com.apple.CoreSimulator.SimDevice.623058DA-0F47-4361-BDE0-4F9E80184FF0[11005] (UIKitApplication:app.web.drjackycv.ios.debug[2196][rb-legacy][11152]): Service exited with abnormal code: 1
Nov 14 195223 Drjacky-MacBookPro ios[11153]: assertion failed: 20B29 18B79: libxpc.dylib + 50260 [BDCDB527-0E34-3346-8444-E8CEEF0377ED]: 0x7d
Nov 14 195223 Drjacky-MacBookPro http://com.apple.CoreSimulator.SimDevice.623058DA-0F47-4361-BDE0-4F9E80184FF0[11005] (UIKitApplication:app.web.drjackycv.ios.debug[96f0][rb-legacy][11153]): Service exited with abnormal code: 1
I’ve set all library version to the ones that use kotlin 1.4.0. I thought maybe this is the reason but, didn’t help. For example: ‍‍‍‍‍
Copy code
reactiveVersion=1.1.17
ktorVersion=1.4.0
kotlinVersion=1.4.0
kodeinVersion=7.1.0
plugings { kotlin("plugin.serialization") version "1.4.0"
m

Mateusz Krawczuk

11/16/2020, 1:30 PM
Hi, problem is with Ktor and Kodein: https://youtrack.jetbrains.com/issue/KTOR-915 https://github.com/Kodein-Framework/Kodein-DI/issues/343 Better keep using older version, because it may take a few weeks before they will solve all issue.
👍 1
6 Views