Ny previously running ios app is now running into ...
# kotlin-native
k
Ny previously running ios app is now running into a build error on the linkPodDebugFrameworkIos/linkDebugFrameworkIos task. It just says Compilation Failed: Assertion Error, with error being MethodbridgeKt.parameterAssociated. StackTrace in comments
e: Compilation failed: Assertion failed * Source files: * Compiler version info: Konan: 1.5.30 / Kotlin: 1.5.30 * Output kind: FRAMEWORK e: java.lang.AssertionError: Assertion failed at org.jetbrains.kotlin.backend.konan.objcexport.MethodBridgeKt.parametersAssociated(MethodBridge.kt:120) at org.jetbrains.kotlin.backend.konan.llvm.objcexport.ObjCExportCodeGeneratorKt.generateKotlinToObjCBridge(ObjCExportCodeGenerator.kt:1020) at org.jetbrains.kotlin.backend.konan.llvm.objcexport.ObjCExportCodeGeneratorKt.createReverseAdapter(ObjCExportCodeGenerator.kt:1171) at org.jetbrains.kotlin.backend.konan.llvm.objcexport.ObjCExportCodeGeneratorKt.createReverseAdapters(ObjCExportCodeGenerator.kt:1454) Compilation failed: Assertion failed
a
Hello, @Kweku! Could you please file an issue at kotl.in/issue with the project to reproduce the problem? If you cannot share the code in public, you can use YouTrack’s
Kotlin Team
visibility option or upload the archive to https://uploads.jetbrains.com/ and share the ID with us right in the issue.
k
do you mean an xcode archive?
a
No, I’m asking if you can share the project - both an Xcode and Kotlin parts.
k
I can't share the project, so I was referencing the part where you said upload the archive, but i'm realising you mean share a zip/rar which i'm not sure I can do
a
Maybe you could try to minimize the Kotlin code you build, to find a particular part causing this error I mean? It seems like a compiler bug, so sharing any related information would help us with it.
k
it may be related to a cinterop library, so i'll try in a fresh project and see if it recreates the error
I was fiddling with things and I have no idea what did it but it seems to be fixed. I can no longer recreate the error either
😅 2
d
I guess there are worse problems than not having a problem 🤷 😁