LLDB not working with SwiftSyntax?

I followed instructions here and I can run, from Xcode, a command line program that uses the SwiftSyntax package. But when I stop in the debugger and try to po something and I get:

error: warning: Failed to load linked library swiftSwiftOnoneSupport of module SwiftOnoneSupport - errors:
Failed to find "libswiftSwiftOnoneSupport.dylib" in paths:
,  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx
  /usr/lib/swift
Failed to find "libswiftSwiftOnoneSupport.dylib" on RPATH, error: (null)
...

Anyone know how to resolve that? Why does the program run fine, but not the debugger?

I found the library in multiple places under /Applications/Xcode.app. Eg:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.0/macosx

Hey Robin!

I'm running into the same error. Using Xcode version 13.2.1; latest version my old MacBook can run.

Did you happen to find any solution for your problem?

How are you building it and are you using an LLDB you built yourself or one from Xcode?

Nope. I dropped this and went another direction.