Sterling Albury
11/05/2024, 7:20 AMresources directory that has the images in the commonMain and iosMain source sets and access the file uri. I added val iosMain by getting { resources.srcDirs("src/iosMain/resources") } in my gradle script, and in the ios sources, I was trying NSBundle.mainBundle.pathForResource(imageName, "jpg") but it's not find the image. I've also tried to add the images to the assets in xcode without luck but I may not have added them correctly. what's the best way to get a uri to a packaged image in a kmp module?Sterling Albury
11/05/2024, 7:38 AMSterling Albury
11/05/2024, 8:57 AMFrançois
11/06/2024, 7:16 AMNSBundle.mainBundle.pathForResource means you try to get a ressource from the app, not the shared libraryFrançois
11/06/2024, 7:16 AMmainBundle = App itselfFrançois
11/06/2024, 7:18 AMNSBundle *bundle = [NSBundle bundleWithIdentifier:@"com.example.App.ExampleFramework"];François
11/06/2024, 7:26 AMxcassets, can be access with UIImage(named)