diff --git a/kotlin-native/backend.native/tests/build.gradle b/kotlin-native/backend.native/tests/build.gradle index 85cce01551e..f36a2d0f9e3 100644 --- a/kotlin-native/backend.native/tests/build.gradle +++ b/kotlin-native/backend.native/tests/build.gradle @@ -6107,7 +6107,7 @@ project.tasks.register("debugger_test", Test.class) { } // Configure build for iOS device targets. -if (UtilsKt.supportsRunningTestsOnDevice(target)) { +if (UtilsKt.supportsRunningTestsOnDevice(target) && !UtilsKt.getCompileOnlyTests(project)) { project.tasks .withType(KonanTestExecutable.class) .configureEach {