How to Debug an iPhone App after an ad Hoc Build?

后端 未结 2 1140
情书的邮戳
情书的邮戳 2021-02-14 21:15

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 Distr

2条回答
  •  耶瑟儿~
    2021-02-14 22:00

    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.

提交回复
热议问题