由于我更新到了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
"self "是可以的:
(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的变量窗口可以正确地检索该值.我try 了一个干净的构建并删除了~/Library/Developer/Xcode/DerivedData/.谷歌还没有发现任何其他类似问题.
我在苹果的开发者论坛上找到了一个帖子,但没有解决方案:
https://devforums.apple.com/message/623694
我已经以Bug ID#11029004向苹果报告了这一点.