For anybody experiencing freezing issues with Ktor for iOS it looks like version
1.4.0
is broken. I used version
1.3.2-1.4.0-rc
and it worked like a charm as suggested here. Had this issue since last week and after a few days finally found the cause haha thought I'd save others the time. For the record, my iOS app was throwing a
Thread 1: signal SIGABRT
on the IDE and saw this in the logs
Uncaught Kotlin exception: kotlin.native.concurrent.InvalidMutabilityException: mutation attempt of frozen kotlinx.coroutines.ChildHandleNode@31dca08
.
Again it all works now after reverting the versions.