Since I updated to xcode 4.3 and let it switch my debugger over to lldb, any request to print a member variable fails with this error message:
(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' is ok:
(lldb) print self (LoginViewController *) $6 = 0x1cd54d50
And other forms of printing the member variable also fail:
(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
Everything else otherwise seems to be working fine. Xcode's variable window can correctly retrieve the value. I've tried a clean build and deleting ~/Library/Developer/Xcode/DerivedData/. Googling hasn't revealed any other instances of the same problem.
I found one thread on Apple's dev forum but no solution:
https://devforums.apple.com/message/623694
I've reported this to Apple as Bug ID# 11029004.
I found one workaround:
Use 'Edit scheme' under the 'Product' menu, select 'Run' in the left bar, the 'Info' tab, and change the Debugger to gdb (this does not apply to xcode 5, which no longer has gdb).
Apparently Apple thought they'd fixed this bug in xcode 4.3.1, but it still happens. I submitted some extra debug information they requested, so I'm hoping it'll be fixed for the next release of xcode. It's still failing in 4.3.2. See https://devforums.apple.com/message/623694 for an update from Apple.
UPDATE
I've tried various cases I was having trouble with, and they all seem to be working fine with lldb in Xcode 4.4.1 - hence I highly recommend upgrading if you're having this problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With