Hello everyone. In my team, we are having a big p...
# compose-ios
d
Hello everyone. In my team, we are having a big problem with
TextField
(and related) on iOS, it always crashes when we trying to click in it... The sample code:
Copy code
@Composable
@Preview
fun App() {
    TextField(value = "Type", onValueChange = {})
}
The srceenshot of the app in the simulator and the crash We tested with compose 1.8.2, 1.8.1, and 1.8.0. For iOS: 18 and 17. EDIT: we are using the 2.9.1 version of the life cycle view mode compose lib, so the proposed fix proposed in thread of the post above doesn't work... The crash error message:
Copy code
Can't show file for stack frame : <DBGLLDBStackFrame: 0x12c607040> - stackNumber:0 - name:kfun:kotlin.coroutines.Continuation#<get-context>(){}kotlin.coroutines.CoroutineContext-trampoline. The file path does not exist on the file system: /opt/buildAgent/work/2d153abd4d2c0600/kotlin/libraries/stdlib/src/kotlin/coroutines/Continuation.ktCan't show file for stack frame : <DBGLLDBStackFrame: 0x11c60ab40> - stackNumber:1 - name:kfun:kotlin.coroutines.native.internal.ContinuationImpl#<init>(kotlin.coroutines.Continuation<kotlin.Any?>?){}. The file path does not exist on the file system: /opt/buildAgent/work/2d153abd4d2c0600/kotlin/kotlin-native/runtime/src/main/kotlin/kotlin/coroutines/ContinuationImpl.ktCan't show file for stack frame : <DBGLLDBStackFrame: 0x11c60ab40> - stackNumber:1 - name:kfun:kotlin.coroutines.native.internal.ContinuationImpl#<init>(kotlin.coroutines.Continuation<kotlin.Any?>?){}. The file path does not exist on the file system: /opt/buildAgent/work/2d153abd4d2c0600/kotlin/kotlin-native/runtime/src/main/kotlin/kotlin/coroutines/ContinuationImpl.kt
c
Check the post above 😅
d
The proposed solution doesn't work for us... we were all along using the 2.9.1 version of the life cycle view model compose lib...
I tested the version 1.10.2 and 1.9.0 of kotlinx.coroutines, to no avail (I thought the version of some dependencies could be the problem for us too…)
We’ve tested with a minimal example, impossible to reproduce the crash. We were focusing on the android side, and we were not thoroughly testing the ios one, since its priority was lower… We will perform a git bisect in the near future to find the root cause, and we will post the results here when done.
s
Have you found any solutions? I also faced this issue and downgrading the library helped me to recover this.
j
I faced the same issue, after upgrading to
compose = "1.9.0-beta03"
it was solved
d
Thanks Joseph
m
I had the same issue with compose 1.8.2. I solved it by downgrading org.jetbrains.androidx.navigationnavigation compose2.9.0-beta03. With beta05 I got the textfield crash.
110 Views