Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode is not launching my app for debugging

My iOS project installs fine on the iPhone but the application won't launch automatically for debugging.

I'm using Xcode 4.2 (Build 4C199), the latest version for Snow Leopard (10.6.8).

I've already tried deleting the app from the iPhone, restarting the device, cleaning the project and reinstalled xCode.

Any ideas on how to solve this problem?

like image 656
neowinston Avatar asked Oct 17 '25 13:10

neowinston


2 Answers

In Xcode click on where the project name/Device or simulator version is (On the right of the Stop Button), and select Edit Scheme, on the Run Tab select Build Configuration -> DEBUG, and select a DEBUGGER -> GDB.

like image 60
Oscar Gomez Avatar answered Oct 19 '25 04:10

Oscar Gomez


In my case, I created a new target and a new scheme by duplicating the existing ones, in order to test my app on devices with on older iOS version.
However, the copied scheme had as executable selected "None":

enter image description here

As soon as I selected the right executable there from the drop-down menu, the app launched.

like image 25
Reinhard Männer Avatar answered Oct 19 '25 05:10

Reinhard Männer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!