由于我更新到 xcode 4.3 并让它将我的调试器切换到 lldb,任何打印成员变量的请求都会失败并显示以下错误消息:
(lldb) print request
error: error: reference to 'id' is ambiguous
note: candidate found by name lookup is 'id'
note: candidate found by name lookup is 'id'
error: 1 errors parsing expression
“自我”没问题:
(lldb) print self
(LoginViewController *) $6 = 0x1cd54d50
其他形式的打印成员变量也失败:
(lldb) print self.request
error: property 'request' not found on object of type 'LoginViewController *'; did you mean to access ivar 'request'?
error: 1 errors parsing expression
(lldb) print self->request
error: error: reference to 'id' is ambiguous
note: candidate found by name lookup is 'id'
note: candidate found by name lookup is 'id'
error: 1 errors parsing expression
其他一切似乎都运行良好。Xcode 的变量 window 可以正确检索值。我尝试了一个干净的构建并删除 ~/Library/Developer/Xcode/DerivedData/。谷歌搜索没有发现任何其他相同问题的实例。
我在 Apple 的开发论坛上找到了一个帖子,但没有解决方案:
https://devforums.apple.com/message/623694
我已将此作为 Bug ID# 11029004 报告给 Apple。