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'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."
It only worked for me when I removed another unrelated expired provisioning profile from the device. Very weird.
You should check which certificate you ase using, remember to use developer provision for debug on you device and ensure all configuration is done.
I have two developer identities (work and home) and use the same device for development. I also use a wildcard app identifier (xxxxxxxxxx.*) at home, and I often build different apps using the same profile. Sometimes when I switch locations (e.g. from work to home) I get the above error.
Removing and re-adding the developer profiles from the device, reloading the profile from Apple and restarting the device (in various combinations) did not solve the issue for me.
What did enable running and debugging on the device again was:
(I also quit Xcode and did rm -rf build, but that is probably not needed).
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'?
I just had to power off my iPhone device and restart the same.
I tried in this order:
Only 3. worked for me.
imp: My Provisoning profiles are valid for almost a year and there was no reason for them to expire (I even cross-checked them to be doubly sure :)). If this hadn't work, I would have checked - as someone rightly suggested, if Developer provisioning profile was being used - which was, in my case.