Ivann Ruiz
09/08/2020, 5:20 PM1.4.0 to make a very simple API call on a multiplatform mobile project, however I get Thread 1: EXC_BAD_ACCESS(code=1, ...) error when I run the IOS code. Anybody run into this issue? It throws the error on this line in the mainIos source set:
actual val engine by lazy { Ios.create() }
would appreciate any insight 🙂saket
09/08/2020, 6:13 PMlazy will freeze implicitly, resulting in that crash because ktor doesn't support it yetsaket
09/08/2020, 6:13 PMatomicLazy?Ivann Ruiz
09/08/2020, 7:01 PMatomicLazy but I had the same code with the lazy{...} on a project with Kotlin 1.3.72 and everything ran fine. Only getting this issue recently though 🤔louiscad
09/09/2020, 6:16 AM./gradlew :yourModule:dependencies?Ivann Ruiz
09/09/2020, 1:11 PM1.3.9 . What fixed my freezing problem was to downgrade Ktor from 1.4.0 to 1.3.2-1.4.0-rcIvann Ruiz
09/09/2020, 1:15 PMMike
09/15/2020, 9:41 PM<https://github.com/ktorio/ktor/issues/821>
<https://github.com/ktorio/ktor/issues/679>
<https://github.com/ktorio/ktor/issues/770>Mike
09/15/2020, 9:41 PM