Title
r

ribesg

01/11/2023, 3:47 PM
My multiplatform backend project stopped compiling for the MacOS targets. Fails with
e: Could not find "org.jetbrains.kotlin.native.platform.CoreFoundationBase" in [/Users/ribesg/Projects/Inboxbooster-Mailer/HttpReceiver, /Users/ribesg/.konan/klib, /Users/ribesg/.konan/kotlin-native-prebuilt-macos-aarch64-1.7.22/klib/common, /Users/ribesg/.konan/kotlin-native-prebuilt-macos-aarch64-1.7.22/klib/platform/macos_arm64]
during
compileKotlinMacosArm64
and
compileKotlinMacosX64
. It worked before, it appeared when I added a dependency on
com.squareup.okio:okio:3.3.0
, but the problem is that I don't understand the error. It's open source so you can try for yourself here https://github.com/wizbii/Inboxbooster-Mailer/tree/feature/kotlin-receiver/HttpReceiver Was caused by Okio 3.3.0 being built for Kotlin 1.8 while I am using 1.7.22.
It appeared when I added a dependency on
com.squareup.okio:okio
Oh, 3.3.0 is for Kotlin 1.8. Using Okio 3.2.0 seem to work. Still don't know what the error is supposed to mean.