jessewilson
11/03/2023, 5:04 PM> Task :treehouse:apis:ui:compileKotlinIosSimulatorArm64 FAILED
w: skipping /Users/jwilson/.gradle/caches/modules-2/files-2.1/app.cash.zipline/zipline-iossimulatorarm64/1.5.0/9c51551230e28885097f21691ddcd12999fb13fb/zipline-cinterop-quickjs.klib. The library versions don't match. Expected 'unspecified', found '1.5.0'
e: Could not find "app.cash.zipline:zipline-cinterop-quickjs" in [/Volumes/Development/cash-treehouse, /Users/jwilson/.konan/klib, /Users/jwilson/.konan/kotlin-native-prebuilt-macos-aarch64-1.9.20/klib/common, /Users/jwilson/.konan/kotlin-native-prebuilt-macos-aarch64-1.9.20/klib/platform/ios_simulator_arm64]
Why is it expecting 'unspecified’ ? Any tips on fixing this?zipline
: regular klib
zipline-cinterop-quickjs
: cinterop klib
redwood-treehouse
: depends on zipline-cinterop-quickjs
redwood-treehouse
library depends on zipline-cinterop-quickjs
with version unspecified
zipline
library depends on zipline-cinterop-quickjs
with version 1.5.0
unspecified
and 1.5.0
zipline
library klib’s default/manifest
built with 1.9.10:
dependency_version_app.cash.zipline\:zipline-cinterop-quickjs=unspecified
This line is in the zipline
library’s klib’s default/manifest
built with 1.9.20:
dependency_version_app.cash.zipline\:zipline-cinterop-quickjs=1.5.0
I think the 1.5.0 is both more correct and also the source of my current painlibrary_version
inside the klib’s own module is unspecified
when it’s built by Kotlin 1.9.10, and it’s the Gradle version (1.5.0) when it’s built by Kotlin 1.9.20
library_version=1.5.0
When zipline
depends on zipline-cinterop-quickjs
, it reads the version from the zipline-cinterop-quickjs
klib’s own default/manifest
filedefault/manifest
fileJeff Lockhart
11/16/2023, 5:53 AM> Task :couchbase-lite:cinteropCouchbaseLiteIosSimulatorArm64 FAILED
w: skipping /Users/jeff/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/atomicfu-iossimulatorarm64/0.23.0/10b6de0b94aceaca2bf723ec1cdedc261232cfd5/atomicfu-cinterop-interop.klib. The library versions don't match. Expected 'unspecified', found '0.23.0'
e: Could not find "org.jetbrains.kotlinx:atomicfu-cinterop-interop" in [/Users/jeff/Documents/GitHub/kotbase/couchbase-lite, /Users/jeff/.konan/klib, /Users/jeff/.konan/kotlin-native-prebuilt-macos-x86_64-1.9.20/klib/common, /Users/jeff/.konan/kotlin-native-prebuilt-macos-x86_64-1.9.20/klib/platform/ios_simulator_arm64]
If I understand the cause correctly, this is because another dependency (kotlinx-coroutines) depends on an older 0.21.0 version, which is published with cinterop version "unspecified", which conflicts with the newer version, published with cinterop version 0.23.0 because it was built with Kotlin 1.9.20?
Would your workaround need to be applied to the upstream atomicfu build? Is there no known workaround for my own build?jessewilson
11/16/2023, 5:54 AMJeff Lockhart
11/16/2023, 5:57 AMdmitriy.dolovov
11/16/2023, 1:38 PMAlex Acosta
11/16/2023, 6:24 PMCInteropProcess
the correct task type?jessewilson
11/16/2023, 6:36 PMAlex Acosta
11/16/2023, 6:50 PMJeff Lockhart
11/16/2023, 7:28 PMAlex Acosta
11/16/2023, 9:04 PMdmitriy.dolovov
11/17/2023, 3:36 PMWe are almost ready with the fix for KT-62515. The fix will land in 1.9.21 (to be released the next week) and in 2.0.0-Beta-2 (no exact date yet). Please wait for a while with upgrading to 1.9.20 till the release of 1.9.21.Hello. I would like to say that Kotlin 1.9.21 just has been released.