I\'m trying to debug a problem running under iOS 5.1 and when I stop in the debugger inside the code that gets the error and try to print something with the debugger I get t
In Build Settings, setting Precompile Prefix Header
to NO
fixed it for me.
It was happening the same to me with Xcode 5 and iOS 6.1 development.
I was compiling in Release mode, if someone has this problem again check that you compile on Debug mode.
This is a debugger bug (Yeah, imagine that!)
Simply restart XCode, and it shouldn't be a problem for you anymore :)
EDIT:
Psyche! I was thinking of something else.
You're creating a retain cycle, and as of now, the debugger classifies this specific retain cycle this way (As I said, a bug).
To fix this, create a weak copy of self
:
__weak __typeof(self)weakSelf = self;
Then for the self
that's giving you trouble:
Change self.object
to weakSelf.object