Encountering the same issue on Sonoma 14.6.1 (23G93) and Xcode 16.0 (16A242d). Seems this one is more like Xcode-related. As for me it sometimes get fixed after navigating through code using "steps" (step over/step into, etc.) and attempting to print object one more time, even after such error.
Report after running swift-healthcheck in lldb contains such errors like:
SwiftASTContextForExpressions(module: "ModuleName", cu: "MyFile.swift")::MyMethod() -- Missing Swift module or Clang module found for "ModuleName", "imported" via SwiftDWARFImporterDelegate. Hint: Register Swift modules with the linker using -add_ast_path.
Seems like suggested hint could solve the problem, but before upgrading to new Xcode I didn't have such issue.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: