https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
g

gumil

07/12/2020, 9:26 PM
hello i have a multiplatform module that has coroutines as a dependency, when it tries to do
linkDebugTestIos
i get this error
Copy code
e: Could not find "atomicfu-cinterop-interop"
I have added this as a dependency to the native source set
"org.jetbrains.kotlinx:atomicfu-native:0.14.3"
but it sill has the same error. Can anyone help me figure this out?
e

Erik Christensen

07/13/2020, 12:15 AM
What versions of Kotlin and coroutines are you using?
g

gumil

07/13/2020, 6:53 AM
1.3.72 and 1.3.7
e

Erik Christensen

07/13/2020, 11:50 AM
1.3.7 uses atomicfu 0.14.2, so that seems odd. You should be able to fix it by adding an implementation dependency to the native source set like you did, but maybe it's coming from something else?
g

gumil

07/13/2020, 12:58 PM
It tries to search on
.konan
folder. it also executes a konanc command. I'm not really sure how it works on the background
I have another dependency that has a dependency to coroutines 1.3.7. maybe because of this klib?
e

Erik Christensen

07/13/2020, 4:42 PM
I dunno. I guess you could also try using the common instead of native version of the atomicfu -- ie. "org.jetbrains.kotlinatomicfu0.14.3". That might be necessary with the metadata publishing changes made for that version. Whatever library isn't propagating the atomicfu dependency correctly needs to get fixed though.
g

gumil

07/17/2020, 3:58 PM
I figure it out, there was something wrong with the library's ios sourcesets.