I've faced the same issue. Since (at least) Xcode 16 release debugging performance has been drastically degraded, many unobvious errors are persisting in the error logs like this:
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.
as well as other types of errors mentioned by people above.
And nothing, even swift healthcheck "hints" couldn't help with it.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: