When deploying the application to the device, the program will quit after a few cycles with the following error:
Program received signal: \"EXC_BAD_ACCESS\".
Just to add another situation where this can happen:
I had the code:
NSMutableString *string; [string appendWithFormat:@"foo"];
Obviously I had forgotten to allocate memory for the string:
NSMutableString *string = [[NSMutableString alloc] init]; [string appendWithFormat:@"foo"];
fixes the problem.