Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XCode fails to run app on device, saying the program being debugged is not being run

Tags:

xcode

iphone

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."

like image 761
benvolioT Avatar asked Nov 13 '09 04:11

benvolioT


People also ask

How do I run an Xcode project on a real device?

Plug in your device via USB​Open the Product menu from Xcode's menubar, then go to Destination. Look for and select your device from the list. Xcode will then register your device for development.

How do I run a debug app in Xcode?

When you run an application in Xcode, the debugger is automatically started and attached to the process of the application. Click the Run button in the top left or press Command + R. From the moment the application is up and running, we can start inspecting the process and, if necessary, debug it.

What is debugging executable in Xcode?

The “Debug executable” checkbox specifies whether or not you want to run with the debugger enabled. Once running, you can use Debug > Attach to Process on a process that has been launched with debugging disabled if needed. It seems like all this does is start your app with the debugger attached.

How do I test my Apple Watch with Xcode?

As per apple documentation, first build and run your application on iPhone which contains ipa file for both iphone and iwatch as extension and then select watch app target and run from xcode it will launch app on iWatch.


2 Answers

The solution was to remove my developer provisioning profiles from my phone using Xcode's organizer window while my phone was connected to my computer, then to re-add my developer provisioning profile, which I re-downloaded from developer.apple.com.

like image 127
benvolioT Avatar answered Oct 15 '22 11:10

benvolioT


It only worked for me when I removed another unrelated expired provisioning profile from the device. Very weird.

like image 7
leolobato Avatar answered Oct 15 '22 12:10

leolobato