https://kotlinlang.org logo
s

Sebouh Aguehian

10/23/2020, 10:51 AM
I’m testing Android Studio KMM plugin (0.1.3-release-54-Studio4.1). When I add a cinterop dependency to the iOS shared code, debugging a unit test no longer works. It seems gradle waits on
:shared:iosTest
forever. Has anyone experience this before?
Here’s what I see in the logs. I have a sample project I can share if anyone’s interested.
a

Artyom Degtyarev [JB]

10/23/2020, 11:20 AM
Sample would help a lot, could you share it please?
a

Artyom Degtyarev [JB]

10/23/2020, 3:50 PM
Sorry, cannot reproduce. Used AS 4.1, KMM 0.1.3-release-54-Studio4.1 and Gradle 6.5
s

Sebouh Aguehian

10/23/2020, 3:51 PM
The scenario is, I put a breakpoint on the assert line and start debug from the gutter.
👀 1
a

Artyom Degtyarev [JB]

10/23/2020, 4:30 PM
Reproduced. Thanks for the project, now I’ll try to find the problem, or file a bug at least.
Also, please see https://youtrack.jetbrains.com/issue/KT-42221, the only similar issue I can remember about 1.4.10. Even more interestingly, changing this line in the root
build.gradle.kts
to
Copy code
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.20-M2")
helped. Please try this.
s

Sebouh Aguehian

10/24/2020, 9:23 AM
I changed it and tried again, but unfortunately it did not help. 😞
5 Views