Hello, I want to use cash multi paging library (<h...
# squarelibraries
a
Hello, I want to use cash multi paging library (https://github.com/cashapp/multiplatform-paging) in my project which has support for following architectures:
iosX64() iosArm64() iosSimulatorArm64()
Copy code
but this library gives error which used in my KMM project. Error stack 
    
     ```
Task widgetcompileKotlinIosSimulatorArm64 FAILED
e: Could not find "org.jetbrains.kotlin.native.platform.CoreFoundationBase" in [/Users/Documents/felix, /Users/.konan/klib, /Users/.konan/kotlin-native-prebuilt-macos-aarch64-1.7.21/klib/common, /Users/.konan/kotlin-native-prebuilt-macos-aarch64-1.7.21/klib/platform/ios_simulator_arm64]
FAILURE: Build failed with an exception. Any help is much appreciated!
v
I'm unsure based on the error message alone. Do you have some code that reproduces this issue, so that I can check it out?
a
@veyndan thanks for replying. sample of my gradle file:
Copy code
kotlin {
    if (providers.gradleProperty("include_ios").get().toBoolean()) {
        iosX64()
        iosArm64()
        iosSimulatorArm64()
    }
}

binary file of this architectures are not published and hence creates problem when I try to use it in my app.
v
Unfortunately, that sample isn't enough to go on. Do you mind sharing the whole Gradle file?
a
Hello, @veyndan I found the actual reason for the error. paging library 3.1.1-0.2.0 is using kotlin version 1.8.10. My app is configured for kotlin version 1.7.21 thus creating this issue. Verified above conclusion by setting kotlin version in toml file as 1.7.21 in repo-search sample.
v
Interesting! I'm not sure what Kotlin version AndroidX Paging 3.1.1 uses off the top of my head, but Multiplatform Paging should match it. Do you mind creating a GitHub Issue about this?
a
I have already created issue for this https://github.com/cashapp/multiplatform-paging/issues/120 I will add more details and solution (work around for this issue)
@veyndan updated solutions/ work around in the same issue
v
That's awesome. Thank you! I'm a bit swamped atm, but I'll look into it as soon as I have time