Closed aenadgrleey closed 1 year ago
Hello. Interesting error, I haven't seen it before. At what point in application is the image accessed? I mean at the very start or a little later. If you can show the code where it crashes and at what point this code is called that will be great :) I'll try to reproduce this error
What do I have: I have a project where I'm trying to build multimodule structure project. There's one "shared" module that depends on another module called "api" which depends on module called "impl", which has libres directory and holds resources. cocoapods are set up only at "shared" module. The result doesn't change regardless shared has libreы-plugin or doesn't. I have tried to postpone resource init by some sometime using LaunchedEffect - nothing has changed, it still crashes on initialization of res. My images are all SVG, and I'm trying to launch app on iOS 16.4 simulator
I think the error isn't directly related to resources.
I think it's some Kotlin/Native related issue, regarding class initialization.
Images object
initializes bundle at the moment of access, that's why I wanted to clarify at what point this access occurs.
I have fixed this issue by adding one more build phase in Xcode as it is done here: https://github.com/icerockdev/moko-resources#iosmacos-static-kotlin-frameworks-support
This phase is needed to copy resources into application. It is specific to moko. With Libres cocoapods does this. I also can’t imagine how it could be related to the runtime error in K/N. Mystery...
Hi I have the same issue and the images are access at the first application screen (compose).
@aenadgrleey can you please share what you have add to your build phase in Xcode please?
Getting this error when launching KMP and Compose MP multimodule project on iOS:
I have a multimodule project with resources stored in each module, bt while trying to launch it on iOS I'm getting this. On Android it works great with no problems