touchlab / CrashKiOS

Crash reporting for Kotlin/Native iOS applications
https://crashkios.touchlab.co/
Apache License 2.0
281 stars 15 forks source link

Error when build in IOS: shared:cinteropReachabilityIosX64 FAILED #53

Closed LuuNguyen0811 closed 1 year ago

LuuNguyen0811 commented 1 year ago

Task :shared:cinteropReachabilityIosX64 FAILED e: Could not find "org.jetbrains.kotlin.native.platform.CoreFoundationBase"

Execution failed for task ':shared:cinteropReachabilityIosX64'.

Process 'command '/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1

how can I fix that?

TadeasKriz commented 1 year ago

Hi, is that only happening when you apply CrashKiOS? If so, could you share more about how your project is set up and what versions are you using? Thanks!

LuuNguyen0811 commented 1 year ago

Yes, it only when I apply CrashKiOS. My project use kotlin version 1.7.20. I add implementation("co.touchlab.crashkios:crashlytics:0.8.2") and update gradle.properties kotlin.native.cacheKind.iosX64=none kotlin.native.cacheKind.iosSimulatorArm64=none

so, I'm facing that error

kpgalligan commented 1 year ago

1.7.20 is relatively old at this point, which may be causing issues. I would try 0.8.0 instead of 0.8.2. That was built with 1.7.20.

To review the README from that time, see this: https://github.com/touchlab/CrashKiOS/tree/0f3933bd6a2d787756b096524bb386ace14d7cca