hello i have a multiplatform module that has corou...
# multiplatform
g
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
What versions of Kotlin and coroutines are you using?
g
1.3.72 and 1.3.7
e
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
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
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
I figure it out, there was something wrong with the library's ios sourcesets.