Closed agrosner closed 4 years ago
Hi @agrosner, could you file the reproducer?
here is a working example @e5l https://github.com/agrosner/kotlin-multiplaform-bug-example
I seem to have the same issue with Ktor 1.3.0, Kotlin 1.3.61. Any news? Did someone find a workaround?
Is there any way to avoid this issue ?
Can't reproduce it with kotlin 1.3.71
and ktor 1.3.2
.
Ktor Version and Engine Used (client or server and name) 1.2.2, 1.2.0, 1.2.3-rc all tested Gradle Version: 5.5 Kotlin Version 1.3.41
Describe the bug I have a Kotlin multiplatform library (not application) with targets on Android, IOS, and JS web. The project contains a subproject called
lib
and another subprojectcodegen
. I run./gradlew :lib:check
and Android and JS are working great. On IOS I receive this error on compiling when I add aiosTest
directory and adding a test so it gets compiled:It seems as though the common code is not compiling for Ktor from Kotlin Native IOS. If I remove the problematic code (but keep around other code such as kotlinx.serialization and kotlinx.coroutines) then the project will compile.
I have tried adding more ios specific dependencies to ios project and other artifacts shown in the dependencies of other ktor projects, to no luck.
To Reproduce
./gradlew :lib:check
Expected behavior IOS can build.
I've attached dependencies for reference and to note Ive added
enableFeaturePreview("GRADLE_METADATA")
to my settings.gradle.And in theory this should work. I cannot find a solution to this problem.
Let me know if you need more information