Sander Rõuk
04/21/2025, 12:23 PMshared
project in a ios app, the app fails to start in simulator with error message:
Can't show file for stack frame : <DBGLLDBStackFrame: 0x10bedffc0> - stackNumber:9 - name:objc2kotlin_kfun:com.bundleid.mobile.core.di.SharedDependencies#<init>(kotlin.String;com.bundleid.mobile.auth.AuthenticationProvider){}. The file path does not exist on the file system: /<compiler-generated>
It was possible to run the app without shared code beforehand. The project was generated from the wizard, with introducing some code afterwards.
I am not sure this is related to ktor at all though, seems to me there is a general setup issue here, can't seem to find a solution elsewhere either, so hoping for assistance here.
This might also be somewhat relevant but AuthenticationProvider
is an interface defined in shared code but implemented on iOS side, workarounds i have considered, but not nailed is passing on a function instead of an object, but i would prefer to figure out the passing the object part.
Question: Does anything that is crossing this shared
<-> iOS boundary need some implementation like the Platform example has a Platform.ios.kt
Sander Rõuk
04/22/2025, 7:50 PM@Throws
annotationdorche
04/22/2025, 9:55 PMPlatform.ios.kt
does a similar thing but keeps the implementation in the Kotlin side too. It's more a personal preference than anything else whether you use expect/actual or go via Swift (although sometimes one could be easier than the other).Sander Rõuk
04/23/2025, 6:31 AM