Ngenge Senior

    Ngenge Senior

    1 year ago
    Hello all. I happen to be migrating my Jetpack Compose code to Kotlin Multiplatform since I want to reuse part of the common code in SwiftUI. I have followed all the necessary instructions given at the following URL,https://kotlinlang.org/docs/mobile/integrate-in-existing-app.html#use-the-shared-module-from-swift after creating a shared module and created a fresh Xcode project in the same directory as the android app and shared module but when I build the XCode project, it keeps failing. The log is found here,https://gist.github.com/ngengesenior/bbdf12ee129bb12427cf25bc6b78ce3b . I really need some help as it is my first time creating a kmm project
    To add a little more, the screenshot below shows the final logs
    t

    Tijl

    1 year ago
    this task is for Kotlin 1.5.20 and higher, since you were using jetpack compose I assume at best you were at 1.5.10
    Ngenge Senior

    Ngenge Senior

    1 year ago
    Oh I see
    t

    Tijl

    1 year ago
    if you switch to jetbrains compose I think you can use 1.5.20 , however compose 1.0.1 will support 1.5.21 so you could also wait a bit