I have created a basic KMM by following "Create your first app" guide https://kotlinlang.org/docs/kmm-create-first-app.html
Then I've tried to build the framework with the following command from Terminal in Android Studio. ./gradlew :shared:embedAndSignAppleFrameworkForXcode
But I'm getting this error. Task 'embedAndSignAppleFrameworkForXcode' not found in project ':shared'.
Android Studio 2020.3.1 Patch 3 Kotlin 1.5.31
There's a similar question on SO. People say that embedAndSignAppleFrameworkForXcode should work with Kotlin 1.5.20 at least. KMM - Error Task 'embedAndSignAppleFrameworkForXcode' not found in project ':shared' But it doesn't in my setup.
Does anyone know how to fix this?
UPDATE The task is running perfectly fine when launched form XCode/Build Phases script. Somehow it is not able to launch from terminal (Android Studio or system one).