diff --git a/native/kotlin-test-native-xctest/build.gradle.kts b/native/kotlin-test-native-xctest/build.gradle.kts index 52358c2b3df..1f47078cda5 100644 --- a/native/kotlin-test-native-xctest/build.gradle.kts +++ b/native/kotlin-test-native-xctest/build.gradle.kts @@ -79,16 +79,16 @@ abstract class DevFrameworkPathValueSource : ValueSource = tasks.register("${target}FrameworkCopy") { + into(layout.buildDirectory.dir("$target/Frameworks")) from( providers.of(DevFrameworkPathValueSource::class) { parameters { konanTarget = target } - }.map { - Paths.get(it).resolve("XCTest.framework") } - ) - into(layout.buildDirectory.dir("$target/Frameworks/XCTest.framework")) + ) { + include("XCTest.framework/**") + } } // endregion @@ -167,7 +167,7 @@ nativeTargets.forEach { target -> builtBy(cinteropKlibTask) } // Add a path to a directory that contains copied framework to share it with test infrastructure - add(kotlinTestNativeXCTest.name, frameworkCopyTask.map { it.destinationDir.parentFile }) { + add(kotlinTestNativeXCTest.name, frameworkCopyTask.map { it.destinationDir }) { classifier = "${targetName}Frameworks" builtBy(frameworkCopyTask) }