rhx / SwiftGtk

A Swift wrapper around gtk-3.x and gtk-4.x that is largely auto-generated from gobject-introspection
https://rhx.github.io/SwiftGtk/
BSD 2-Clause "Simplified" License
317 stars 26 forks source link

Issues with LLDB - LLDB fails upon setting a breakpoing and crashes when executing any Swift code #39

Closed mikolasstuchlik closed 3 years ago

mikolasstuchlik commented 3 years ago

Hello,

as I mentioned in https://github.com/rhx/SwiftGtk/issues/34 I had a problem with LLDB. I have described both the problem and the solution in two posts at the Swift forum.

Basically, whenever I tried to use LLDB, I was unable to do anything Swift related and if I attempted to, LLDB would crash on me.

I've ended up solving the issue by adding swiftSettings: [.unsafeFlags(["-Xfrontend", "-serialize-debugging-options"], .when(configuration: .debug))] to any target which has a .systemLibrary target as a dependency.

I will upload the fix to my forks shortly and in case some more problems arise, I will update this github issue.

Since I plan on merging my forks into the main repositories in the future, I just wanted to let you know about the problem and the solution.

Edit: I can conffirm the issue was solved and is public in my forks.