Updating Android Studio, Xcode, macOS, and Kotlin Multiplatform plugin of Android Studio to the latest versions solved the problem for me.
Hope this helps!