So, this happened several times in a number of different projects. I will debug my application in Xcode when Xcode breaks on error. Looking at this, I would click the Step Forward or Continue button ... and did nothing. More precisely, he acted as if he had stepped, but in fact did not go anywhere. As far as I can tell, this can be repeated endlessly. One of the reasons this is problematic is because it never gives me a crash log because it never ends in a crash. I only get the crash log when the application crashes and it is not debugging (which means I have to get it through Crittercism or by checking the device logs).
Does anyone see this before and / or know why he does it? I did not see mention of this elsewhere, but this happened to me in several projects.
For example, in one project, we use SocketRocket and every time at that time (for an unknown reason) it crashes in SRWebSocket.m as follows:
- (void)main; { @autoreleasepool { _runLoop = [NSRunLoop currentRunLoop]; dispatch_group_leave(_waitGroup); NSTimer *timer = [[NSTimer alloc] initWithFireDate:[NSDate distantFuture] interval:0.0 target:nil selector:nil userInfo:nil repeats:NO]; [_runLoop addTimer:timer forMode:NSDefaultRunLoopMode]; int i = 0; while ([_runLoop runMode:NSDefaultRunLoopMode beforeDate:[NSDate distantFuture]]) { NSLog(@"_runLoop %i %@", i++, [NSDate date]); } assert(NO); } }
It crashes on the while line. (By the way, I added the NSLog line). When I click Continue or Step by Step, the line indicator flashes instantly and then reappears on the same line. Note that it does not continue the NSLog line, and nothing is written to the console at all. I'm still trying to collapse it again (this crash is unpredictable), but if I remember correctly, the line indicator says EXC_BAD_ACCESS , possibly a prematurely freed object.
source share