I have a large Swift project, which is technically a mixed project, as it has a small amount of Objective-C code. But whenever I get into LLDB, the expression evaluator expects Objective-C syntax. I can use Swift with e -l swift -- but it is tiring to print every time.
e -l swift --
Is it possible to evaluate LLDB expression in Swift by default?
There is a target level setting for the forced translation of the language:
(lldb) settings set target.language swift
Or you can create an alias for quick specific expressions:
command alias es expression -l swift --