When I use LLDB on a Swift application in Xcode (e.g. by setting a breakpoint), I can call
settings set target.language swift
to have LLDB understand Swift code in commands like expression
(and therefore po
and print
).
When I run lldb
from the command line and try setting the target language as above, I get the error:
error: invalid language type 'swift', valid values are:
c89
c
c++
c99
objective-c
objective-c++
c++03
c++11
c11
c++14
Is anyone else having this same problem? How could I fix this?
I'm running macOS 10.15.7