Uncaught Kotlin exception: kotlin.native.internal.IrLinkageError: Function 'UIKitViewController' can not be called:
Opened this issue · 5 comments
Describe the bug
When using Paywall UI, in ios I get this error:
Uncaught Kotlin exception: kotlin.native.internal.IrLinkageError:
Function 'UIKitViewController' can not be called: No function found for symbol
'androidx.compose.ui.interop/UIKitViewController|UIKitViewController(kotlin.Function0<0:0>;
androidx.compose.ui.Modifier;kotlin.Function1<0:0,kotlin.Unit>?;
androidx.compose.ui.graphics.Color;kotlin.Function1<0:0,kotlin.Unit>?;kotlin.Function2<0:0,kotlinx.cinterop.CValue<platform.CoreGraphics.CGRect>,kotlin.Unit>?;kotlin.Boolean;androidx.compose.runtime.Composer?;kotlin.Int;kotlin.Int){0§<platform.UIKit.UIViewController>}[0]'
Any recommendation for quick fix?
Android works perfectly though
looks like because of compose version:
purchases-kmp/gradle/libs.versions.toml
Line 32 in cdf0e8d
Bumping to latest compose version (1.7.0-beta01
) should fix the issue I guess.
Similar issue: KevinnZou/compose-webview-multiplatform#219
for anyone having this issue, quick fix is to downgrade compose version to 1.6.11
Thanks for reporting! And thanks for the suggested workaround. Which version of Compose does your project use? And which version of Kotlin? That might help pin this down to a specific combination of those 2.
@JayShortway
kotlin version: 2.0.20
compose version: 1.7.0-beta01
Thanks! There seems to be a binary incompatibility between Compose 1.6.x and 1.7.0. As soon as 1.7.0 is stable, we should be able to support it and fix this issue.