We are having many development pods that are currently linked as dynamic frameworks. I'm trying to migrate the dynamic framework to static libraries For static-libs, I'm setting resource bundle like below (pod_spec)
s.resource_bundles = { 'BundleName' => [ 'BundleName/**/*.{xcassets,lproj,storyboard,xib,xcassets,imageset,png,mp3,mp4,wma}' ] }
and accessing in code like below
Bundle.main.url(forResource: "BundleName", withExtension: "bundle")
when I run the app, I'm getting the resource bundle path, from that I can able to get images/localized text
The same is not working when I run Unit tests. resource bundle path is nil and all my test related to localized text are failing
how can I fix this?
thanks in advance