Tlaster / PreCompose

Compose Multiplatform Navigation && State Management
https://tlaster.github.io/PreCompose/
MIT License
853 stars 49 forks source link

iOS App Build Failure with Precompose ViewModel Library #141

Closed msomu closed 12 months ago

msomu commented 1 year ago

I encountered an issue while trying to build the iOS app with the Precompose ViewModel library 1.5.1. The error message I received is as follows:

e: Compilation failed: Generation of stubs for class org.jetbrains.kotlin.ir.symbols.impl.IrTypeParameterPublicSymbolImpl is not supported yet

 * Source files: 
 * Compiler version: 1.9.0
 * Output kind: FRAMEWORK

This error is preventing me from proceeding with the build. I'm seeking guidance on any possible workarounds or solutions to resolve this issue and successfully build the iOS app. FYI, the android app runs well and there are no issues with the android app.

The kotlin version was first 1.9.10 and i changed it to 1.9.0 still the issue is present.

Tlaster commented 1 year ago

Are you using inline version of viewModel in composable function? If so can you try non inline version of viewModel and see if it works?

Tlaster commented 12 months ago

Close as inactive, reopen if you still have the same issue.