Has anyone seen the issue where a MissingResourceE...
# kotlin-native
t
Has anyone seen the issue where a MissingResourceException is thrown on iOS due to the package for the resources being included in the path? I'm not sure why the package name is being included. The images resources are there, but at a path without the package name. For example, the image is here:
<http://MyResourceTest.app/commonMain/composeResources/drawables/test_image.xml|MyResourceTest.app/commonMain/composeResources/drawables/test_image.xml>
But the app is looking for it here:
<http://MyResourceTest.app/commonMain/composeResources/com.example.mytest.resources/drawables/test_image.xml|MyResourceTest.app/commonMain/composeResources/com.example.mytest.resources/drawables/test_image.xml>
Copy code
compose.resources {
    publicResClass = true
    packageOfResClass = "com.example.mytest.resources"
    generateResClass = always
}
I believe I see my issue. It seems to be due to the use of a composite build, where we include another project using 'includeBuild("../otherProject")'. I guess I'll open an issue for this bug.
Also, it may be necessary to " pod deintegrate" cocoapods and then "pod install".
a
I ditched cocoapods because it broke compose resources, it was the final straw as too many things go wrong with cocoapods
t
Plus, it is basically deprecated officially now. https://blog.cocoapods.org/CocoaPods-Support-Plans/