Has anyone seen this type on error when trying to ...
# compose
a
Has anyone seen this type on error when trying to run on iOS after migrating to Kotlin 2.0?? Android target is running without issues.
> Task :composeApp:linkDebugFrameworkIosSimulatorArm64
error: Compilation failed: Exception during generating code for following declaration:
Inside: FILE fqName:com.xxx.multiplatform.mobile.landing fileName:/Users/xxx/AndroidStudioProjects/features-sdk/composeApp/src/commonMain/kotlin/com/xxx/multiplatform/mobile/landing/LandingScreen.kt
Inside: FUN name:LandingScreen visibility:public modality:FINAL <> (state:com.xxx.features.landing.LandingContract.State, onUIEvent:kotlin.Function1<com.xxx.features.landing.LandingContract.Event, kotlin.Unit>, $composer:androidx.compose.runtime.Composer?, $changed:<http://kotlin.Int|kotlin.Int>) returnType:kotlin.Unit
Inside: FILE fqName:androidx.compose.foundation.layout fileName:/opt/buildAgent/work/8a20760945d0aeba/compose/foundation/foundation-layout/src/commonMain/kotlin/androidx/compose/foundation/layout/Column.kt
Inside: FILE fqName:androidx.compose.ui.layout fileName:/opt/buildAgent/work/8a20760945d0aeba/compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/layout/Layout.kt
Inside: FILE fqName:androidx.compose.runtime fileName:/opt/buildAgent/work/8a20760945d0aeba/compose/runtime/runtime/src/commonMain/kotlin/androidx/compose/runtime/Composables.kt
Inside: FILE fqName:androidx.compose.foundation.layout fileName:/opt/buildAgent/work/8a20760945d0aeba/compose/foundation/foundation-layout/src/commonMain/kotlin/androidx/compose/foundation/layout/Column.kt
// FILE: LandingScreen.kt
// path: /Users/xxx/AndroidStudioProjects/features-sdk/composeApp/src/commonMain/kotlin/com/xxx/multiplatform/mobile/landing/LandingScreen.kt
package com.xxx.multiplatform.mobile.landing
@OptIn(markerClass = [ExperimentalResourceApi::class])
@Composable
@HiddenFromObjC
fun LandingScreen(state: State, onUIEvent: Function1<Event, Unit>, /* var */ $composer: Composer?, $changed: Int) {
var $composer: Composer? = $composer
$composer = $composer.startRestartGroup(key = -906139497)
var $dirty: Int = $changed
.......
The following build commands failed:
PhaseScriptExecution Run\ Script /Users/xxx/AndroidStudioProjects/features-sdk/build/ios/iosApp.build/Debug-iphonesimulator/iosApp.build/Script-A9D80A052AAB5CDE006C8738.sh (in target 'iosApp' from project 'iosApp')
(1 failure)
z
Please keep long code snippets to the thread to keep the main channel more readable.