androidkotlin-multiplatformxcframework

XCFramework is not being generated within the KMM library


I Have created a Kotlin Multiplatform Library project and haven't added any custom code per se.
Now I am trying to build the XCFramework out of the KMM project. But I am getting empty directories instead of .xcframework files.

XCFramework directories

I have tried the basic things like,
1. Clean and re-build the project.
2. Invalidating the cache and restarting the Android Studio.

But those didn't worked, Looking for an answer or any references would also serve the purpose.


Solution

  • I solved it by running the following command to build the XCframework

    gradlew assembleXCFramework
    

    enter image description here