Do we need to change something in the artifact to ...
# touchlab-tools
j
Do we need to change something in the artifact to debug it using the Xcode plugin? We're using KMMBridge to build an artifact and we've added our local Kotlin sources, but set breakpoints aren't hit. From earlier comments here I note that linking the source is only to make it easier to set the breakpoints. Does that mean the compiled XCFramework has mapping info between Kotlin source files «» compiled code?
k
Compiled binaries cannot be debugged if they were created on a different machine (more accurrately, if the absolute path is different, which is almost certainly true if built with CI. This is NOT a Kotlin thing, a KMMBridge thing, or an Xcode-Kotlin plugin thing. This is an lldb thing (I.E. you'd have the same problem with a Swift binary). Linking the source is to allow debugging: https://touchlab.co/kmp-teams-use-source
thank you color 1
j
Thanks @kpgalligan. I've read that one (and others) about GitPortal already, super interesting recommendation. We're currently still in PoC/evaluation state, I thought the Xcode plugin was already supposed to work with published artifacts. Thanks for clearing that up!