KMM project to support XCode15 build is failing

We are experiencing an Assertion failed error while building the Kotlin Multi-Platform project using XCode 15. However, the Xcode Error does not display the exact issue or line at which the issue occurs. So please help with this. Please check the error lines listed below:

Task ::linkPodDebugFrameworkIos FAILED
error: Compilation failed: Assertion failed

  • Source files:
  • Compiler version: 1.9.23
  • Output kind: FRAMEWORK
    error: java.lang.AssertionError: Assertion failed
    at org.jetbrains.kotlin.backend.konan.llvm.CodeGenerator.typeInfoForAllocation(CodeGenerator.kt:53)
    at org.jetbrains.kotlin.backend.konan.llvm.FunctionGenerationContext.allocInstance(CodeGenerator.kt:909)
    at org.jetbrains.kotlin.backend.konan.llvm.IntrinsicGenerator.emitCreateUninitializedInstance(IntrinsicGenerator.kt:465)
    Compilation failed: Assertion failed
    java.lang.AssertionError: Assertion failed
    Compilation finished with errors

We have a project where our SDK is built using Kotlin multiplatform and is added to our project as a pod dependency. Issue occurs during our SDK pod compilation.

XCode Version : 15.3

MultiPlatform version : 1.9.23

Java Version : 11