繁体   English   中英

Xcode 4.6 LLDB中的IRForTarget错误

[英]IRForTarget error in Xcode 4.6 LLDB

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

我认为您只需要将地址投射为id,例如

(lldb) po [(id)0x12eaf7a0 description]

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM