自从升级到Xcode 4.6 final后,我经常在LLDB中看到这一点:
(lldb) po [0x12eaf7a0 description]
Error [IRForTarget]: Call to a symbol-only function 'objc_msgSend' that is not present in the target
error: warning: receiver type 'int' is not 'id' or interface pointer, consider casting it to 'id'
error: The expression could not be prepared to run in the target
我可以通过在左窗格中将其添加为表达式来验证0x12eaf7a0
是否为有效对象。我甚至可以使用“打印描述”上下文菜单成功显示它的描述。
任何想法(除了切换回GDB)?
答案 0 :(得分:0)
我认为您只需要将地址转换为id,例如
(lldb) po [(id)0x12eaf7a0 description]