Kamel-Media / Kamel

Kotlin asynchronous media loading and caching library for Compose.
Apache License 2.0
595 stars 23 forks source link

Classes not found when running on iOS #56

Closed Kashifmasood07 closed 10 months ago

Kashifmasood07 commented 10 months ago

I have added the dependency to common source set since I am using it for a multiplatform project and it works fine when I run Android app, but when I run it on iOS, I get following error.

Could not find "/Users/mac/.gradle/caches/modules-2/files-2.1/media.kamel/kamel-image-iosarm64/0.7.2/33fd052e978bb1ea02569817afbfd6929a1e350a/kamel-image.klib" in [/Users/mac/Documents/Markaz-Supplier/markazSupplierIos/Pods, /Users/mac/.konan/klib, /Users/mac/.konan/kotlin-native-prebuilt-macos-x86_64-1.8.20/klib/common, /Users/mac/.konan/kotlin-native-prebuilt-macos-x86_64-1.8.20/klib/platform/ios_arm64]

luca992 commented 10 months ago

Can you try kotlin 1.9.0? or kamel version 0.7.1?

luca992 commented 10 months ago

I added an ios sample and everything works. Provide an example if you want me to take a look.

Kashifmasood07 commented 10 months ago

I couldn't migrate kotlin to 1.9 but I used kamel version 0.7.1 and it worked. Thanks. The only problem I have right now is that ios app runs in to OOM error when loading a little large number of images. The images I load have the size range from 400kb-1mb. And there can be a lots of images. So it runs in to OOM.