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

aleksey.tomin

06/15/2020, 7:34 AM
@e5l I try to move my OSX project to 1.4-M2 and 1.3-1.4-M2 With this code
Copy code
val kotlinVersion = "1.4-M2"
    val ktorVersion = "1.3.2-1.4-M2"
    sourceSets {
        commonMain {
            dependencies {
                implementation(kotlin("stdlib-common"))
                implementation("io.ktor:ktor-client-core:${ktorVersion}")
    }.  }.  }
I have error
e: Could not find "io.ktor:ktor-io-cinterop-bits" in [/Users/atomin/Documents/iq/xpoint-sdk, /Users/atomin/.konan/klib, /Users/atomin/.konan/kotlin-native-prebuilt-macos-1.4-M2/klib/common, /Users/atomin/.konan/kotlin-native-prebuilt-macos-1.4-M2/klib/platform/macos_x64].
I try to add
Copy code
val macosMain by getting {
            dependencies {
                implementation("io.ktor:ktor-client-core:${ktorVersion}")
            }
        }
but nothing was changed. I try to fix something like https://github.com/ktorio/ktor/issues/943
Copy code
macosX64("macos") {
        binaries.all {
            linkerOpts = mutableListOf("-L/usr/local/opt/curl/lib", "-I/usr/local/opt/curl/include/curl", "-lcurl")
        }
    }
but error still active.
Copy code
$ ls /usr/local/opt/curl/lib
libcurl.4.dylib	libcurl.a	libcurl.dylib	pkgconfig
$ ls /usr/local/opt/curl/include/curl
curl.h		curlver.h	easy.h		mprintf.h	multi.h		stdcheaders.h	system.h	typecheck-gcc.h	urlapi.h
e

e5l

06/15/2020, 7:37 AM
Hey, @aleksey.tomin. Thanks for the report. Could you file an issue about that? And share the OS version and
ktor
dependencies strings from your
build.gradle
a

aleksey.tomin

06/15/2020, 8:11 AM
Copy code
$ ./gradlew --version
Picked up JAVA_TOOL_OPTIONS: -Djava.awt.headless=true

------------------------------------------------------------
Gradle 6.5
------------------------------------------------------------

Build time:   2020-06-02 20:46:21 UTC
Revision:     a27f41e4ae5e8a41ab9b19f8dd6d86d7b384dad4

Kotlin:       1.3.72
Groovy:       2.5.11
Ant:          Apache Ant(TM) version 1.10.7 compiled on September 1 2019
JVM:          14 (Oracle Corporation 14+36-1461)
OS:           Mac OS X 10.15.5 x86_64
e

e5l

06/15/2020, 8:12 AM
We published dependencies with gradle
6.3
, I'm not sure if that could be a problem. @h0tk3y
a

aleksey.tomin

06/15/2020, 8:12 AM
Copy code
repositories {
        mavenCentral()
        jcenter()
        maven("<https://dl.bintray.com/kotlin/kotlin-eap>")
        maven("<https://kotlin.bintray.com/ktor>")
        maven("<https://kotlin.bintray.com/kotlinx>")
    }
...
val ktorVersion = "1.3.2-1.4-M2"
...
                implementation("io.ktor:ktor-client-core:${ktorVersion}")
It’s OK with gradle 6.3 Error with gradle 6.4 and 6.5
🙏 1
e

e5l

06/15/2020, 8:23 AM
We got it! Thanks for the investigation.
Could you tell me if something restricts you from using
6.3
for now?
a

aleksey.tomin

06/15/2020, 8:26 AM
I can use 6.3 now 🙂
👍 1