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?jessewilson
11/03/2023, 6:03 PMjessewilson
11/03/2023, 6:07 PMjessewilson
11/03/2023, 6:08 PMjessewilson
11/03/2023, 6:48 PMzipline
: regular klib
zipline-cinterop-quickjs
: cinterop klib
redwood-treehouse
: depends on zipline-cinterop-quickjs
jessewilson
11/03/2023, 6:48 PMredwood-treehouse
library depends on zipline-cinterop-quickjs
with version unspecified
jessewilson
11/03/2023, 6:48 PMzipline
library depends on zipline-cinterop-quickjs
with version 1.5.0
jessewilson
11/03/2023, 6:49 PMunspecified
and 1.5.0
jessewilson
11/03/2023, 7:05 PMzipline
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 painjessewilson
11/03/2023, 7:06 PMjessewilson
11/03/2023, 9:31 PMlibrary_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
filejessewilson
11/03/2023, 9:32 PMdefault/manifest
filejessewilson
11/04/2023, 1:54 AMjessewilson
11/04/2023, 1:55 AMjessewilson
11/04/2023, 2:09 AMJeff 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 AMJeff Lockhart
11/16/2023, 6:07 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 PMdmitriy.dolovov
11/23/2023, 11:26 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.