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\".
When you have infinite recursion, I think you can also have this error. This was a case for me.