Search code examples
xcodekotlindebuggingkotlin-multiplatform

Touchlab Xcode-plugin is not working with complex KMP Project


I've got a huge KMP project. min version iOS 14, xCode 15.2 For debugging purpose Kotlin code injected as a local pod: as a src not a binary file. Pod named KotlinShared.

Unfortunately this plugin doesn't work: breakpoints became disabled after build process started.

I've tried to make proj folder struct, as same as at example where breakpoints works perfectly, but I failed, case too much dependencies in this code. Also i've tried to fix it with this answer with same result.

I've got two hypotheses problem in pod compile settings or in different folder struct.

I am not good at LLDB or compile or how xCode work internally but i think i should deep dive here.

So I will appreciated any ideas how i can fix it, or what i should learn in LLDB to fix it by my self or whatever what could help me


Solution

  • After long research I find that issue with breakpoints reproduced only with emulator and related with [support arm64 for iOS Simulators][1] [1]: https://medium.com/fusionui/from-fat-frameworks-to-xcframeworks-or-how-to-support-arm64-for-ios-simulators-a53f9f097f83

    So the issue was produced because path to dSyM files were changed.