Closed harshakiran3 closed 1 year ago
this mean that this method
return null.
https://developer.apple.com/documentation/uikit/uiimage/1624154-imagenamed
as described in apple docs - nil is about no image found. what image you try to use? maybe file corrupted someway?
I was using
Icon(painter = painterResource(MR.images.icon_bottomnav_home),contentDescription = screen.title)
in a Compose file inside Shared module.
It is running fine in Android but when I run on xcode, it crashes giving the error as
Uncaught Kotlin exception: kotlin.IllegalArgumentException: can't read UIImage of dev.icerock.moko.resources.ImageResource@4bc1b080
Here MR.images.icon_bottomnav_home is a svg file
can you attach this svg file? and on what iOS version you try to run?
also check please release 0.22.2
Hi, I was having the same issue and it seems to resolved with 0.22.2 version
can you create reproducer from this template? https://github.com/icerockdev/moko-compose-multiplatform-ios-android-template
Umm, I mentioned it's resolved in the latest version 😅. I have it in this project https://github.com/msasikanth/reader
oh, sorry, i read incorrectly your previous message. cool that resolved! @harshakiran3 for your case issue resolved too, or not?
Hey @Alex009 The issue got resolved when I did invalidate cache and restart on Android studio and then clean build folder in XCode.
so i think we can close this issue
Getting the following error and then the app crashes.
Uncaught Kotlin exception: kotlin.IllegalArgumentException: can't read UIImage of dev.icerock.moko.resources.ImageResource@4bc1b080