LLDB seems to be broken in the nightly toolchains. LLDB.framework is not included in the toolchains anymore for some reason, resulting in the following linking error when trying to run the toolchain-provided lldb:
dyld: Library not loaded: @rpath/LLDB.framework/Versions/A/LLDB
Referenced from: /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2019-08-05-a.xctoolchain/usr/bin/lldb
Reason: image not found
[1] 54252 abort
The cache file for macOS hardcodes the LLDB.framework install path to be
# Choose the install location for LLDB.framework so that it matches the
# INSTALL_RPATH of the lldb driver. It's either absolute or relative to
# CMAKE_INSTALL_PREFIX. In any case, DESTDIR will be an extra prefix.
set(LLDB_FRAMEWORK_INSTALL_DIR /Applications/Xcode.app/Contents/SharedFrameworks CACHE STRING "")
Which is obviously wrong in the case of a nightly toolchain. It should be something like ${CMAKE_INSTALL_PREFIX}../System/Library/PrivateFrameworks
So, LLDB.framework is not copied in the right place, which makes debugging not functional :)
I have a WIP patch, I need to do some additional testing to make sure this doesn't break internal use-cases (e.g. Xcode) & Linux. I'll try to have the patch merged tomorrow so the next toolchain should hopefully have a workin REPL [and lldb].
I merged the PR, and I'll work on the integration test next. Wait for the next toolchain which should contain the fix. If you still run into issues, let me know.