Kotlin / kmm-integration-sample

Apache License 2.0
93 stars 48 forks source link

Build Error with a clean new Project #5

Open Mitti30 opened 2 years ago

Mitti30 commented 2 years ago

Hey, i'm getting started with KMM. I tried different approaches in creating a new KMM Project but i'm unable to run any of it. My last approach is with the help of Android Studio. I created a clean Project but it crashes with this exception:

* What went wrong: Task 'embedAndSignAppleFrameworkForXcode' not found in project ':shared'.

Im working on a Mac mini with the new M1 Chip.

li2 commented 1 year ago

I got the same error when create KMM project via "Cocoapods dependency manager", fixed by creating a new kmm via "Regular framework"

If you want to create a new KMM project, consider using the KMM plugin for Android Studio project wizard. It allows you to create a KMM project with a suitable iOS integration option – either the Cocoapods dependency manager or a regular framework that will use the new embedAndSignAppleFrameworkForXcode in the generated project configuration.

https://blog.jetbrains.com/kotlin/2021/07/multiplatform-gradle-plugin-improved-for-connecting-kmm-modules/