Is there an LLDB command that can cast a raw address into a usable Swift class?
(lldb) po 0x7df67c50 as MKPinAnnotationView
You can use Swift's
unsafeBitCast function to cast an address to an object instance:
(lldb) e let $pin = unsafeBitCast(0x7df67c50, MKPinAnnotationView.self) (lldb) po $pin
Then you can work with
$pin as usual – access properties, call methods, etc.
Check out this article for more information: Swift Memory Dumping.