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.