My app crashes for some reason but I can't figure out why.
It just crashes after about 3 seconds after application is launched.
The console says:
Error launching remote program: failed to get the task for process 4091.
The program being debugged is not being run.
But it does not have problem with debug profile or developer provisioning. ( It also does not have problem with simulator. )
The crash only happens with distribution or ad-hoc provisioning in device.
The debugger also works with developer profile but not with ad-hoc(or distribution) profile.
I have tried many things I can do.
They did not work.
Does anybody have any idea?
Thank you.
I just solved the problem. I removed all previous versions of the same application in my phone. And it works fine!
Maybe there's some kind of collision.