18.2 C
Canberra
Sunday, May 17, 2026

xcode – What’s the proper model mixture for navigation compose that works each on Android and iOS?


After including the navigation compose dependency to my Kotlin Multiplatform challenge working the app on Android all is ok however when working on iOS, the app crashes at runtime with the next error:

Uncaught Kotlin exception: kotlin.native.inside.IrLinkageError: Perform
'performRestore' can't be known as: No operate discovered for image
'androidx.savedstate/SavedStateRegistryController.performRestore|performRestore(androidx.core.bundle.Bundle?){}[0]'

I feel it is a model compatibility downside, that is my precise mixture of variations:

[versions]
agp = "8.6.0"
android-compileSdk = "35"
android-minSdk = "24"
android-targetSdk = "35"
androidx-activity = "1.9.3"
androidx-appcompat = "1.7.1"
androidx-core = "1.17.0"
androidx-espresso = "3.7.0"
androidx-lifecycle = "2.8.4"
androidx-testExt = "1.3.0"
composeMultiplatform = "1.9.3"
junit = "4.13.2"
kotlin = "2.1.21"
material3 = "1.10.0-alpha05"
googleServices = "4.4.4"
gitliveFirebase = "1.13.0"
googleFirebase-common = "21.0.0"
googleFirebase-firestore = "25.0.0"
kotlinxSerializationJson = "1.7.3"
datastore ="1.1.1"
kotlinx-datetime = "0.7.1"
multiplatform-settings = "1.1.1"
navigationCompose =  "2.8.0-alpha10"

I attempted a number of combos however nonetheless get the crash. like:

androidx-lifecycle = "2.8.4"
composeMultiplatform = "1.7.3"
kotlin = "2.1.21"
navigationCompose =  "2.9.2"

Any recommendation for the very best mixture of variations?

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

[td_block_social_counter facebook="tagdiv" twitter="tagdivofficial" youtube="tagdiv" style="style8 td-social-boxed td-social-font-icons" tdc_css="eyJhbGwiOnsibWFyZ2luLWJvdHRvbSI6IjM4IiwiZGlzcGxheSI6IiJ9LCJwb3J0cmFpdCI6eyJtYXJnaW4tYm90dG9tIjoiMzAiLCJkaXNwbGF5IjoiIn0sInBvcnRyYWl0X21heF93aWR0aCI6MTAxOCwicG9ydHJhaXRfbWluX3dpZHRoIjo3Njh9" custom_title="Stay Connected" block_template_id="td_block_template_8" f_header_font_family="712" f_header_font_transform="uppercase" f_header_font_weight="500" f_header_font_size="17" border_color="#dd3333"]
- Advertisement -spot_img

Latest Articles