icerockdev / moko-resources

Resources access for mobile (android & ios) Kotlin Multiplatform development
https://moko.icerock.dev/
Apache License 2.0
1.03k stars 119 forks source link

SwiftUI Previews doesn't work when a resource from Moko Resources used #396

Open mustafaozhan opened 1 year ago

mustafaozhan commented 1 year ago

Hello 👋

Wanted to create this issue since long time, maybe the solution will be found here will be helpful for others.

I created a reproducing branch here: https://github.com/Oztechan/CCC/tree/1441-Enable_iOS_SwiftUI_Previews You can see the diff in this PR: https://github.com/Oztechan/CCC/pull/1442/files

The branch currently shows the Preview since I commented 3 lines with colors, and i add one comented line for string as well for reproducing the issue.

Immediately after I enable one of the commented line I get the error below and the Preview crashes Attaching the log with crash here: CCC-2022-12-15-161941.ips.zip

harunagic commented 2 months ago

@Alex009 any update on this issue?