Closed rmaloney3 closed 5 years ago
Forgot I referenced that command in the book. Revert a recent push. Verified working on Xcode 10.2 after a po @import AppKit
@DerekSelander thanks :)
@DerekSelander now after I po @import AppKit
, and execute dclass -t swift
, it throws and error:
Error [IRForTarget]: Rewriting an Objective-C constant string requires CFStringCreateWithBytes
error: error: error: The expression could not be prepared to run in the target
@MEnnabah Is this Xcode 11?
Can you run a (lldb) version
so I can see which version of Xcode I should download to test
I just started reading Advanced Apple Debugging & Reverse Engineering, and I am in chapter 1 where it says to execute:
When attached to Xcode 10.2, upon running this command, I receive over 1000 lines of output ending with this:
I attempted to break it down to find the problem, but quickly realized that even if I use
(lldb) sys echo "$(dclass -t swift)"
, I get the same output (minus the "0" at the end).If I just run
dclass -t swift
, I get the desired output. If I just runsys echo "hello world"
. I also get the desired output.I would like to be able to follow along with this part of the book, but I can not seem to get this command to work as desired. Any help would be appreciated.