alarochelle
10/06/2025, 4:57 PMExecution failed for task ':commonJasper:iosArm64DebugSwiftExport'.
> A failure occurred while executing org.jetbrains.kotlin.gradle.plugin.mpp.apple.swiftexport.internal.SwiftExportAction
> Type org.jetbrains.kotlin.sir.SirFunctionalType@5cee6b54 can not be named
I’m assuming this is because Swift Export doesn’t support functional types?Artem Olkov
10/06/2025, 5:44 PMI’m assuming this is because Swift Export doesn’t support functional types?You are absolutely right! 🙂 with a small nuance - swift export supports incoming functional types. And your pulbic api probably has either 1. inheritance from functional type 2. extension on functional type
alarochelle
10/06/2025, 5:44 PMsergey.bogolepov
10/07/2025, 6:50 AMalarochelle
10/07/2025, 11:43 AMArtem Olkov
10/07/2025, 12:19 PMtypealias Demo = ()->Unit
fun Demo.foo(): Unit = TODO()
abstract class Demo2: Demo
class CLZ: Demo2() {
override fun invoke() {
TODO("Not yet implemented")
}
}
fun bar(): Demo = TODO()
interface DemoI: ()->Unit {
fun dummy() {}
}
fun Function1<Unit, Unit>.demo(): Unit = TODO()
There are typealias, inheritance, extension. None of this causes a crash in swift export.
Is there a chance you could find an actual declaration that causes swift export to crash?alarochelle
10/07/2025, 12:20 PMArtem Olkov
10/07/2025, 12:22 PM