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

Terms of Service

Privacy Policy

Cookie Policy