https://kotlinlang.org logo
c

coolcat

09/29/2020, 12:46 PM
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.
m

mbonnin

09/29/2020, 12:47 PM
You can set breakpoints manually in lldb
(lldb) break -f YourFile.kt -l 42
c

coolcat

09/29/2020, 1:00 PM
Interesting information, thanks! However I was hoping for something more developer friendly 🙂
m

mbonnin

09/29/2020, 1:02 PM
Another option would be to debug from Android Studio with the kmm plugin but I think this is broken with XCode 12 😕
c

coolcat

09/29/2020, 1:04 PM
Thanks
m

mbonnin

09/29/2020, 1:04 PM
Sorry I don't have a better answer...
Someone more knowledgeable with
xcode-kotlin
might know how to make it work
s

streetsofboston

09/29/2020, 2:37 PM
@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?
m

mbonnin

09/29/2020, 2:38 PM
👍 1
You can make it build by excluding
arm64
from the architectures in XCode but it still won't start in the emulator from AS