简体   繁体   中英

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?

在Xcode中,单击项目名称/设备或模拟器版本所在的位置(在“停止”按钮的右侧),然后选择“编辑方案”,在“运行”选项卡上,选择“构建配置”->“调试”,然后选择“调试”->“ GDB”。

I was having this problem as well. I removed the option Launch due to a background fetch event in Edit Scheme -> Run Debug -> Options and Xcode started launched the app again.

Hope that helps.

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

在此处输入图片说明

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

Can you confirm you are signing the app with a development certificate? This issue happens when you sign the app with a distribution certificate.

通过选择“编辑方案”(位于“停止”按钮的右侧),使用“构建配置”->“调试”,在“运行”选项卡上,通过将“ 调试器”更改为LLDB而不是GDB,可以解决此问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM