ioskotlin-multiplatformxcframework

Error while building the XCframework from Android KMM module


I have an Android project within which I have created the new KMM module. It is perfectly working with the Android app module. Now I want to generate the XCFramework out of that KMM module.

I am trying this gradle command to generate the XCFramework,

gradlew assembleXCFramework

Also tried,

gradlew assembleMySharedXCFramework 

But both of these didn't work. Android Studio is giving me this error,

enter image description here


Solution

  • The issue is because of the Kotlin library version.

    I solved it by upgrading the library from 1.5.30 to 1.9.22.