Skip to content

Commit 2ad56e6

Browse files
sbogolepovSpace Team
authored andcommitted
kotlin-test-native-xctest: avoid separate cinterop for the test task
test compilations use cinterop from the main task. Adding a separate dependency breaks some invariants inside KGP
1 parent f714f7d commit 2ad56e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

native/kotlin-test-native-xctest/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ kotlin {
111111

112112
forEach {
113113
val copyTask = registerCopyFrameworkTask(it.konanTarget)
114-
it.compilations.all {
114+
it.compilations.getByName("main") {
115115
cinterops {
116116
register("XCTest") {
117117
compilerOpts("-iframework", copyTask.map { it.destinationDir }.get().absolutePath)

0 commit comments

Comments
 (0)