Hey folks, not sure if many of you have used the `...
# ios
s
Hey folks, not sure if many of you have used the
touchlab/xcode-plugin
before that allows you to breakpoint Kotlin code within the Xcode project for KMM. Just wondering if any of you have come across this issue before whereby the breakpoints have stopped working indicating that the code isn’t getting compiled? Any ideas on how I might resolve this? More detail in the issue I’ve posted here https://github.com/touchlab/xcode-kotlin/issues/91 Not sure if this is better posted in #multiplatform or #kotlin-native, let me know!
s
Thanks @kpgalligan! Will take a look!
t
@Sean Howard I added you to #touchlab-tools where it is easier to get our attention. Thank you for creating the issue and following up in slack 👍
s
Ah amazing, thanks @touchlab_justin! In the meantime shall I close the Github issue? The Android developers on my team have said we’re not in a position to upgrade to Kotlin 1.8 just yet so I don’t want to leave the issue to go stale.
s
Hi Sean, Yes if you’d like to close it that would be great. Thanks for raising the question though and look forward to hearing more when you are able to try with 1.8
s
Will do! Back to using trusty print statements for the time being sad panda
j
Tried to upgrade to Kotlin 1.8.0, there is no change in behaviour in Xcode. Still misses breakpoints.
k
I have Xcode 14.1 and Kotlin 1.8.0 for KaMP Kit, and that does work for debugging on my machine. I’m not sure why that wouldn’t be working on yours. I’d guess maybe clean the Gradle build folder, and re-install the plugin (although I believe you’ve done that already). Outside of that, make sure it’s a debug and not release build (I would assume it’s a debug build), leaving only Xcode 14.2 vs 14.1, and (less likely) something with M1 vs Intel (I’m testing on an Intel machine). Can discuss further, though. I’m very curious as to what’s happening here.
I’m installing 14.2, although I would expect that to take quite some time…
j
It looks like it has something to do with Spotlight. Lldb is searching for dSym in the index. See the thread here: https://kotlinlang.slack.com/archives/C3PQML5NU/p1673631195903349