开发者

debugging xcode 4: says it's running application on device, but nothing actually happens

I can't debug my application on my device with xcode 4. The application builds, links and signs and installs on the device but when xcode 4 says "running on Dev iPad 2" nothing happens on the device.

I've quit and restarted xcode, and restarted the Mac. No difference.

The only warning it gives me is "warning: no debug symbols in executable (-arch armv7)". I'm not sure if that's related to my problem.

If I start the application manually on the device, it works.

I created a small test app. It compiled and ran on the device with n开发者_如何转开发o problem.

What could be causing this in my application?


I found this could be fixed by deleting the app from the device, and also deleting the provisioning profile from the device as well.


Check the name of your executable in Build Settings - specifically, make sure that Debug and Release versions have the same name. It may be trying to run an executable that isn't there.


Check the Build settings: Strip Linked Product. In my case I had to set this setting to No. After that the warning was gone.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜