1

自从升级到 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)?

4

1 回答 1

0

我认为您只需要将您的地址转换为 id,例如

(lldb) po [(id)0x12eaf7a0 description]
于 2013-01-29T22:34:55.573 回答