Hello everyone, after some time, I decided to lau...
# compiler
s
Hello everyone, after some time, I decided to launch compose multiplatform project on iOS along with the transition to K2. But I got the following error, which does not provide clear information about what is wrong with my project. Maybe someone has encountered this problem or knows how to debug it. Because I didn’t find any information on this topic, nor did I find any mention of the “compareInternal” function in my project. Full log in attachment
Copy code
error: Compilation failed: external function <root>.compareInternal must have @TypedIntrinsic, @SymbolName, @GCUnsafeCall or @ObjCMethod annotation

 * Source files: 
 * Compiler version: 2.0.0
 * Output kind: FRAMEWORK

error: java.lang.Error: external function <root>.compareInternal must have @TypedIntrinsic, @SymbolName, @GCUnsafeCall or @ObjCMethod annotation
	at org.jetbrains.kotlin.backend.konan.ir.IrUtilsKt.externalSymbolOrThrow(IrUtils.kt:235)
	at org.jetbrains.kotlin.backend.konan.llvm.KonanBinaryInterface.funSymbolNameImpl(BinaryInterface.kt:73)
   ...
Task :composeApp:linkDebugFrameworkIosSimulatorArm64 FAILED
I found the problem was in a third party library. The error was related to an external function that did not exist. Updating the library helped get rid of the error. But the compiler would do well to handle such scenarios better.