I’m trying to add resources from another module `...
# compose-ios
r
I’m trying to add resources from another module
extraSpecAttributes["resources"] = "['src/commonMain/resources/**', 'src/iosMain/resources/**', '../libraries/ui/src/commonMain/resources/**', '../libraries/ui/src/iosMain/resources/**']"
I did a
pod install
but when I launch the app, it say Missing resources
a
This is a known limitation I think
There's been an open issue for around 3 years surrounding this for kmm in general
Maybe 2
I think the solution requires some form of resource merging.
moko-resources
exists for this, but I haven't had any luck whatsoever getting this to work
r
Thank’s, I’ll try look into it
j
Oh ok this explains why I never got it to work 😁 I think my solution at least for iOS was using only one shared module with resources and cocoapods. A little bit annoying but it works. Also avoids issue when having multiple modules sharing same shared pod, causing iOS linking issues.
d
You may look at how resources works in our sample projects, for example, in template: https://github.com/JetBrains/compose-multiplatform-template
a
The template seems to really only cover the usecase of one target