如何在广告构建之后调试iPhone应用程序? [英] How to Debug an iPhone App after an ad Hoc Build?

查看:183
本文介绍了如何在广告构建之后调试iPhone应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了一个广告Hoc分布我的应用程序现在我想再次调试它(我改变了一些东西,CoreData)但我不能。

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

我必须做什么才能再次调试? / p>

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

推荐答案

您需要将XCode中的应用目标的代码签名身份设置更改为iPhone开发您的应用的相关证书。

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.

请注意,目标的设置(在组和文件树中的目标节点下方)会覆盖全局项目的设置,所以如果你已经改变了后者,请确保目标仍然设置为iPhone分发。

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

你可以找到这些设置右键单击/按住Ctrl键点击相应的树节点,然后选择获取信息。

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.

这篇关于如何在广告构建之后调试iPhone应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆