Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.8.0-RC Could not find "org.jetbrains.kotlinx:atomicfu-cinterop-interop" #3968

Closed
martinbonnin opened this issue Dec 2, 2023 · 4 comments
Closed
Labels

Comments

@martinbonnin
Copy link

Trying to build an iosArm64 target with version 1.8.0-RC, I get hit by this error:

> Task :compileKotlinIosArm64 FAILED
e: Could not find "org.jetbrains.kotlinx:atomicfu-cinterop-interop" in [/Users/mbonnin/git/test-coroutines, /Users/mbonnin/.konan/klib, /Users/mbonnin/.konan/kotlin-native-prebuilt-macos-aarch64-1.9.21/klib/common, /Users/mbonnin/.konan/kotlin-native-prebuilt-macos-aarch64-1.9.21/klib/platform/ios_arm64]

Reproducer here. Am I missing something?

@martinbonnin
Copy link
Author

Explicitely adding atomicfu to the dependencies fixes the problem but sounds like it might not be needed?

PS: also tried disabling konan caches like in KT-44884 but didn't seem to help much

@hoangchungk53qx1
Copy link

try this
#3305

@martinbonnin
Copy link
Author

@hoangchungk53qx1 , that issue was from last year and fixed in atomicfu 0.17.2. The same workaround works (adding the dependency explicitely) but I'd say this is a new one.

@dkhalanskyjb
Copy link
Collaborator

Citing @mvicsokolova's words:


The problem is on kotlinx.atomicfu side: the new version of atomicfu-gradle-plugin does not provide coroutines with a transitive dependency to atomicfu anymore. Though it's required because coroutines use inline declarations from kotlinx-atomicfu.The WA for now is adding atomicfu implementation dependency for the native sourceSets:

val nativeMain by creating {
  dependencies {
    implementation("org.jetbrains.kotlinx:atomicfu:0.23.1")
  }
}

And I'll prepare the new release of atomicfu where this dependency is provided by atomicfu-gradle-plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants