daniaviladomingo / kmm

Rick & Morty Kotlin/Compose Multiplatform: Ktor, Sqldelight, Koin, Flow, MVI, Compose
178 stars 15 forks source link

iOS build failed #2

Open Verona1024 opened 2 years ago

Verona1024 commented 2 years ago

Hello, thanks for sharing your project!

I just did a try to build it ad see some issues with that. For Android everything works perfectly. But for iOS I have some issues with that. Actually I am an Android developer so maybe I am missing something. This is what I have:

image

Seems like in my iOS project it does not see the shared module. Maybe I miss some command for linking the module to the iOS?

Thanks in advanced.

daniaviladomingo commented 2 years ago

Hi Vladislav,

Try execute "./gradlew :shared:podInstall" before build & run iOS project.

Regards

Verona1024 commented 2 years ago

Unfortunatelly did not help:

./gradlew :shared:podInstall

> Configure project :androidApp
ComposeOptions.kotlinCompilerVersion is deprecated. Compose now uses the kotlin compiler defined in your buildscript.

> Configure project :shared
Kotlin Multiplatform Projects are an Alpha feature. See: https://kotlinlang.org/docs/reference/evolution/components-stability.html. To hide this message, add 'kotlin.mpp.stability.nowarn=true' to the Gradle properties.

The Kotlin source set androidAndroidTestRelease was configured but not added to any Kotlin compilation. You can add a source set to a target's compilation by connecting it with the compilation's default source set using 'dependsOn'.
See https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html#connecting-source-sets

BUILD SUCCESSFUL in 859ms

In iOS I did clean and rebuild but still see the issue