How to Debug an iPhone App after an ad Hoc Build?
Asked Answered
C

2

9

I did a ad Hoc Distribution of my App now i want to to Debug it again (i have changed something with CoreData) but i cant.

If i press Debug unsing the Settings for Distribution the Default picture starts on the device but i get an error "Error form Debuger: The programm being debugged is not being run.".

If i use the Debug Settings i get an other Error: "The Executeable was signed with invalid entitlements."

What do i have to do to be able to Debug again?

Catercorner answered 24/1, 2011 at 13:0 Comment(2)
I accepted some of them within the last 10min maybe because of that :-)Catercorner
Makes sense, we'll wait it out for now then :)Wimmer
C
9

You need to change the "Code Signing Identity" setting for your app target in XCode back to "iPhone Development", with the relevant certificate for your app. Only apps signed with development provisioning can be debugged.

Note that the target's setting (below the "Targets" node in the tree of "Groups & Files") overrides the global project's setting, so if you've already changed the latter, make sure the target isn't still set to "iPhone Distribution".

You can find these settings by right-clicking/ctrl-clicking the respective tree node and selecting "Get Info".

Finally, make sure you actually build the app with the new settings (Build & Debug/Build & Run is fine) to re-sign the binary.

Causalgia answered 24/1, 2011 at 13:9 Comment(1)
Thank you there still was the Entilements.plist in the target settings.Catercorner
C
1

In addition to making sure your current Debug build is using the correct Developer certificate, you might want to un-select the entitlements.plist in your non-Ad-Hoc Target's file inclusion pane if you have one.

If that still doesn't work, deleting the Ad Hoc certificate and app from your iPhone, rebooting it, restarting Xcode, and installing a clean build sometimes causes a borked debugger connection to start working again.

Courlan answered 24/1, 2011 at 21:22 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.