CrashKiOS icon indicating copy to clipboard operation
CrashKiOS copied to clipboard

Function 'setUnhandledExceptionHook' can not be called: No function found for symbol

Open karottenreibe opened this issue 4 months ago • 0 comments

Function doesn't have or inherit @Throws annotation and thus exception isn't propagated from Kotlin to Objective-C/Swift as NSError.
It is considered unexpected and unhandled instead. Program will be terminated.
Uncaught Kotlin exception: kotlin.native.internal.IrLinkageError: Function 'setUnhandledExceptionHook' can not be called: No function found for symbol 'kotlin.native/setUnhandledExceptionHook|7054769515521739261[0]'
    at 0   shared                              0x1072e119b        kfun:kotlin.Throwable#<init>(kotlin.String?){} + 99 
    at 1   shared                              0x1072dafe3        kfun:kotlin.Error#<init>(kotlin.String?){} + 95 
    at 2   shared                              0x107311ed3        kfun:kotlin.native.internal.IrLinkageError#<init>(kotlin.String?){} + 95 
    at 3   shared                              0x107311f8b        kfun:kotlin.native.internal#ThrowIrLinkageError(kotlin.String?){}kotlin.Nothing + 163 
    at 4   shared                              0x10766f09b        kfun:co.touchlab.crashkios#setupDefaultUnhandledExceptionHook(){} + 351 
    at 5   shared                              0x10766ef17        kfun:co.touchlab.crashkios#setupCrashHandler(co.touchlab.crashkios.CrashHandler){} + 139 
[...]

Using CrashKiOS 0.6.0 with latest stable XCode on an iPhone 11 Pro running iOS 18.2, I get this error. Cannot try newer versions of CrashKiOS since they are not published to Maven Central.

karottenreibe avatar Sep 28 '25 09:09 karottenreibe