I\'m using AdHoc deploy to deploy my app on an iPad, and I get this error. I\'ve checked out a few questions in SO that say the same, but the solution has always been restart XC
This problem seems to happen whenever I quit the app on my device (pressing the home button) while the debugger is stopped at a breakpoint. Any subsequent build and run on my device results in this error.
To fix this, there's no need to delete the app, clean or rebuild. Just need to restart the device.
I had the same error - I not only restarted my device, but also deleted the app on my device and cleaned the build directory (product --> clean on Xcode 4).
I then built and ran the program again and it worked.
I did not need to restart Xcode.
Well, I've restored my iPad to factory defaults. And it seems to work now, so yeah.
EDIT: Please look at @mud's answer below since it solves most cases without a complete restore. In my case that didn't work, so I've accepted this answer.
If you tried all above trick then Here is one that works for me.
Just go to the project Directory and delete the Build folder there.