kmm-integration-sample
kmm-integration-sample copied to clipboard
Build Error with a clean new Project
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.
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/