https://kotlinlang.org logo
Title
o

One Xeor

04/26/2023, 9:28 PM
Hi guys, I've updated ktor version in my library and in my project where I'm using that library after what I started getting the following error. Does anyone know what could be the issue?
e: Could not find "org.jetbrains.kotlin.native.platform.CoreFoundationBase" in [/Users/username/project, /Users/username/.konan/klib, /Users/username/.konan/kotlin-native-prebuilt-macos-aarch64-1.7.20/klib/common, /Users/username/.konan/kotlin-native-prebuilt-macos-aarch64-1.7.20/klib/platform/ios_simulator_arm64]
p

Pablichjenkov

04/26/2023, 10:30 PM
You might need to update kotlin lang too
Check what version of kotlin that Ktor version was built with. And apply the latest multiplatform plugin too
And also clean, invalidate caches restart AS/IJ, the typical stuff
o

One Xeor

04/27/2023, 5:32 AM
Yeah I've tried to change kotlin version to 1.8.10/1.8.20 and 1.8.21 and applied the latest multiplatform plugin with invalidating caches and restart, but unfortunately it did not help.
p

Pablichjenkov

04/27/2023, 5:41 AM
I remember seeing that same error but forgot how it got fixed.
Do a lookup online for that specific dependency CoreFoundationBase and see what package in the kotlin native ecosystem it belongs, then try to include the package directly
It seems that Ktor client depends on some transitive dependency that your project probably already has and it doesn't pull the Ktor version.