I\'m running Xcode, trying to get my app to run on my iphone. I\'m getting the error message \"the program being debugged is not being run.\"
I was having the same trouble and none of the above worked (even wiping / restoring the device).
Then I looked and saw that I had mistakenly set all my targets to use the adhoc distribution profile. Which doesn't support debugging.
See also iPhone Debugging: How to resolve 'failed to get the task for process'?