Hello, I am trying to build my multiplatform proje...
# kotlin-native
g
Hello, I am trying to build my multiplatform project to iOS on 1.3.30 and after upgrading a few versions like ktor and coroutines I got the following error:
Copy code
e: Compilation failed: Could not find "kotlinx-coroutines-core-native" in [...]`
The dependencies of the iOS project are set up like this:
Copy code
iosMain.dependencies {
            implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core-native:$kotlinx_coroutines_version"
            implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime-native:$kotlinx_serialization_version"
            implementation "io.ktor:ktor-client-json-native:$ktor_version"
            implementation "io.ktor:ktor-client-ios:$ktor_version"
        }
Any idea why it can’t find that lib?
d
What's the value of
kotlinx_coroutines_version
?
Do you have metadata enabled?
g
As I understand those are the latest values we should use:
Copy code
kotlin_version=1.3.30
kotlin_native_version=1.3.30
ktor_version=1.2.0-alpha-1.3.0-eap-125
kotlinx_serialization_version=0.11.0
kotlinx_coroutines_version=1.2.0
Yes metadata enabled in settings,gradle
d
You may have to wait for ktor to get to
1.2.0
.
Any red lines in the gradle window on the right?
g
Checking
Ah you mean in the dependencies? nope everything looks ok there
I’ll revert to 1.3.21 for now I guess
d
Yeah, at least until ktor is up to date.
g
Too bad this Cocoapods plugin looks promising I wanted to try it 😄
I’ll just use Alec Strong’s cocoapods plugin instead till I can upgrade to 1.3.0
Thanks @Dominaezzz!
d
No problem!
Should work now with ktor
1.1.4
.
g
It does work with ktor
1.1.4
!