moko-resources
moko-resources copied to clipboard
0.24.1 Change Causing -> iOS "Bundle with identifier *** not found" Error
Hi, we are experiencing the following error:
kotlin.IllegalArgumentException: bundle with identifier *** not found
We think it's due to the following changes introduced in 0.24.1:
https://github.com/icerockdev/moko-resources/pull/715/files#diff-74b2961a5d6d48ad53d5ab6e4529f3688bdae02391f7d66628bdb6086a06854eL14-L16
This change limits the use of bundles to be in the main bundle only.
We encounter the crash when attempting to access MR.strings() in a framework while running unit tests against the framework target. We are using copyFrameworkResourcesToApp in a build phase for the framework target using $CONTENTS_FOLDER_PATH, which, in this case, points to the framework product and not the path for the main bundle.
Could you revert the line change from the PR or make it possible to inject a path to the moko-generated bundle via the moko plugin or some other method?