From 38369150120e2786bbab4763aed0e5dcb02cbf2c Mon Sep 17 00:00:00 2001 From: Alexander Likhachev Date: Mon, 29 Aug 2022 23:04:46 +0200 Subject: [PATCH] [Gradle] Skip XCFramework task when there's no input frameworks #KT-53686 --- .../jetbrains/kotlin/gradle/plugin/mpp/apple/XCFrameworkTask.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/apple/XCFrameworkTask.kt b/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/apple/XCFrameworkTask.kt index 5ce1ca28cf7..d0f0b37a918 100644 --- a/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/apple/XCFrameworkTask.kt +++ b/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/apple/XCFrameworkTask.kt @@ -166,7 +166,7 @@ abstract class XCFrameworkTask : DefaultTask() { @get:PathSensitive(PathSensitivity.ABSOLUTE) @get:SkipWhenEmpty val inputFrameworkFiles: Collection - get() = groupedFrameworkFiles.values.flatten().map { it.file } + get() = groupedFrameworkFiles.values.flatten().map { it.file }.filter { it.exists() } /** * A parent directory for the XCFramework.