coolcat

    coolcat

    1 year ago
    Is it possible to debug Kotlin in Xcode 12? I followed instructions here https://github.com/touchlab/xcode-kotlin/issues/16 but I can't set breakpoints in Kotlin.
    mbonnin

    mbonnin

    1 year ago
    You can set breakpoints manually in lldb
    (lldb) break -f YourFile.kt -l 42
    coolcat

    coolcat

    1 year ago
    Interesting information, thanks! However I was hoping for something more developer friendly 🙂
    mbonnin

    mbonnin

    1 year ago
    Another option would be to debug from Android Studio with the kmm plugin but I think this is broken with XCode 12 😕
    coolcat

    coolcat

    1 year ago
    Thanks
    mbonnin

    mbonnin

    1 year ago
    Sorry I don't have a better answer...
    Someone more knowledgeable with
    xcode-kotlin
    might know how to make it work
    s

    streetsofboston

    1 year ago
    @mbonnin I see something similar trying to debug from A.S.. It builds the iOS code fine until the linker tries to link the ARM64 version some cocoapods (instead of the X86_64 ones for the simulator). Do you see the same issue?
    mbonnin

    mbonnin

    1 year ago
    You can make it build by excluding
    arm64
    from the architectures in XCode but it still won't start in the emulator from AS