Closed
Description
Describe the bug
kotlin.native.internal.IrLinkageError: Function 'Runnable' can not be called: No function found for symbol 'kotlinx.coroutines/Runnable|Runnable(kotlin.Function0<kotlin.Unit>){}[0]'
Uncaught Kotlin exception: at 0 KotlinProject.debug.dylib 0x1082bfd8f kfun:kotlin.Throwable#<init>(kotlin.String?){} + 99
at 1 KotlinProject.debug.dylib 0x1082b9f9f kfun:kotlin.Error#<init>(kotlin.String?){} + 95
at 2 KotlinProject.debug.dylib 0x1082edbaf kfun:kotlin.native.internal.IrLinkageError#<init>(kotlin.String?){} + 95
at 3 KotlinProject.debug.dylib 0x1082edc67 kfun:kotlin.native.internal#ThrowIrLinkageError(kotlin.String?){}kotlin.Nothing + 163
at 4 KotlinProject.debug.dylib 0x1088b643f kfun:androidx.compose.ui.scene.ComposeSceneRecomposer#scheduleAsEffect(kotlin.Function0<kotlin.Unit>){} + 175
at 5 KotlinProject.debug.dylib 0x10889e72f kfun:androidx.compose.ui.scene.BaseComposeScene#render(androidx.compose.ui.graphics.Canvas;kotlin.Long){} + 1547
at 6 KotlinProject.debug.dylib 0x108977b5b kfun:androidx.compose.ui.scene.ComposeScene#render(androidx.compose.ui.graphics.Canvas;kotlin.Long){}-trampoline + 107
at 7 KotlinProject.debug.dylib 0x1088fd3bf kfun:androidx.compose.ui.scene.ComposeSceneMediator#render(androidx.compose.ui.graphics.Canvas;kotlin.Long){} + 183
at 8 KotlinProject.debug.dylib 0x1088f2387 kfun:androidx.compose.ui.scene.ComposeHostingViewController.<init>$lambda$2$lambda$1#internal + 267
at 9 KotlinProject.debug.dylib 0x1088f4ab7 kfun:androidx.compose.ui.scene.ComposeHostingViewController.$<init>$lambda$2$lambda$1$FUNCTION_REFERENCE$13.invoke#internal + 115
at 10 KotlinProject.debug.dylib 0x1088f4bdf kfun:androidx.compose.ui.scene.ComposeHostingViewController.$<init>$lambda$2$lambda$1$FUNCTION_REFERENCE$13.$<bridge-DNNNU>invoke(org.jetbrains.skia.Canvas;kotlin.Long){}#internal + 159
at 11 KotlinProject.debug.dylib 0x1083c62d7 kfun:kotlin.Function2#invoke(1:0;1:1){}1:2-trampoline + 115
at 12 KotlinProject.debug.dylib 0x10894f5db kfun:androidx.compose.ui.window.MetalView.<init>$lambda$0#internal + 275
at 13 KotlinProject.debug.dylib 0x10894f673 kfun:androidx.compose.ui.window.MetalView.$<init>$lambda$0$FUNCTION_REFERENCE$0.invoke#internal + 115
at 14 KotlinProject.debug.dylib 0x10894f79b kfun:androidx.compose.ui.window.MetalView.$<init>$lambda$0$FUNCTION_REFERENCE$0.$<bridge-DNNNU>invoke(org.jetbrains.skia.Canvas;kotlin.Double){}#internal + 159
at 15 KotlinProject.debug.dylib 0x1083c62d7 kfun:kotlin.Function2#invoke(1:0;1:1){}1:2-trampoline + 115
at 16 KotlinProject.debug.dylib 0x1089455b3 kfun:androidx.compose.ui.window.MetalRedrawer.draw#internal + 4651
at 17 KotlinProject.debug.dylib 0x1089442ff kfun:androidx.compose.ui.window.MetalRedrawer#drawSynchronously(){} + 203
at 18 KotlinProject.debug.dylib 0x10894f12f kfun:androidx.compose.ui.window.MetalView.updateMetalLayerSize#internal + 3451
at 19 KotlinProject.debug.dylib 0x10894e32b kfun:androidx.compose.ui.window.MetalView#objc:layoutSubviews + 215
at 20 KotlinProject.debug.dylib 0x10895085f _6f72672e6a6574627261696e732e636f6d706f73652e75693a75692f6f70742f6275696c644167656e742f776f726b2f386132303736303934356430616562612f636f6d706f73652f75692f75692f7372632f75696b69744d61696e2f6b6f746c696e2f616e64726f6964782f636f6d706f73652f75692f77696e646f772f4d6574616c566965772e75696b69742e6b74_knbridge62 + 143
at 21 UIKitCore 0x1860a3417 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2403
at 22 QuartzCore 0x18b335623 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 431
at 23 QuartzCore 0x18b3403f7 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 123
at 24 QuartzCore 0x18b27242f _ZN2CA7Context18commit_transactionEPNS_11TransactionEdPd + 463
at 25 QuartzCore 0x18b2a0c6f _ZN2CA11Transaction6commitEv + 651
at 26 UIKitCore 0x185b4a683 __34-[UIApplication _firstCommitBlock]_block_invoke_2 + 31
at 27 CoreFoundation 0x18041d05b __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 19
at 28 CoreFoundation 0x18041c793 __CFRunLoopDoBlocks + 351
at 29 CoreFoundation 0x180416e9b __CFRunLoopRun + 811
at 30 CoreFoundation 0x1804166f3 CFRunLoopRunSpecific + 551
at 31 GraphicsServices 0x1905e5b0f GSEventRunModal + 159
at 32 UIKitCore 0x185b319db -[UIApplication _run] + 795
at 33 UIKitCore 0x185b35bd3 UIApplicationMain + 123
at 34 SwiftUI 0x1d34b903f $s7SwiftUI17KitRendererCommon33_ACC2C5639A7D76F611E170E831FCA491LLys5NeverOyXlXpFAESpySpys4Int8VGSgGXEfU_ + 163
at 35 SwiftUI 0x1d34b8d67 $s7SwiftUI6runAppys5NeverOxAA0D0RzlF + 83
at 36 SwiftUI 0x1d323d01b $s7SwiftUI3AppPAAE4mainyyFZ + 147
at 37 KotlinProject.debug.dylib 0x107a27b67 $s13KotlinProject6iOSAppV5$mainyyFZ + 39
at 38 KotlinProject.debug.dylib 0x107a27c17 __debug_main_executable_dylib_entry_point + 11 (~/KotlinProject/iosApp/iosApp/iOSApp.swift:4:8)
at 39 dyld 0x10508140f 0x0 + 4379382799
at 40 ??? 0x104f5e273 0x0 + 4378190451
Provide a Reproducer
I just downloaded the template project from Wizard, and then add implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.0")
in commonMain, It crashes when running, but it works fine when I modify the version to 1.9.0.