I’ve been working through the first chapter of the third edition (current edition), and I’m getting a segfault when I try entering Swift code into lldb.
(lldb) ex -l swift -o -- unsafeBitCast(0x0000000112021000, to: NSView.self) note: Swift compiler options for Xcode conflict with options found in other modules; Switching to a new expression evaluator for Xcode, old $R variables are lost. Segmentation fault: 11
Any ideas what’s going wrong?
BTW, I’ve noticed a StackOverflow post and a related Apple Dev Forum post describing the same bug, but it turned out that the problem there was with the CommonCrypto framework, which we’re not using here. Nor did it mention anything about a segfault.