xcode iPhone SDK - 来自调试器的错误:正在调试的程序没有运行

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2037328/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 19:03:38  来源:igfitidea点击:

iPhone SDK- Error from Debugger: The program being debugged is not being run

iphonexcode

提问by zerlphr

I followed the exact instructions on iPhone SDK Developers Portal by launching Assistant found on the first page.

我按照 iPhone SDK 开发人员门户上的确切说明启动了第一页上的助手。

But I still get the same error even though I deleted the provisioning profile, certificates many times and repeated the same process more than once.

但是,即使我多次删除了配置文件、证书并多次重复相同的过程,我仍然遇到相同的错误。

Please help.

请帮忙。

采纳答案by Ross

If you have previously used them...check NSDebugEnabled, NSZombieEnabled, MallocStackLogging and MallocStackLoggingCompact are all disabled in the Executable info Argument's panel. You can't run with these on a device.

如果您以前使用过它们...请检查 NSDebugEnabled、NSZombieEnabled、MallocStackLogging 和 MallocStackLoggingCompact 在 Executable info Argument 面板中都已禁用。你不能在设备上运行这些。

回答by Adam Wo?

It can happen if you build using an ad-hoc provisioning profile. If you followed the steps from Building your Application with Xcode for Distribution, you're building with a special Entitlements.plist, in which you disallow get-task-allow- this prevents the debugger from connecting to the application.

如果您使用临时配置文件进行构建,则可能会发生这种情况。如果您按照Build your Application with Xcode for Distribution 中的步骤进行操作,您将使用特殊的 Entitlements.plist 进行构建,您在其中禁止get-task-allow- 这会阻止调试器连接到应用程序。

Try building with another provisioning profile (e.g. a Development profile).

尝试使用另一个供应配置文件(例如开发配置文件)进行构建。

回答by James Raybould

Restart both the device and Xcode - this normally clears it up for me

重新启动设备和 Xcode - 这通常会为我清除它

回答by Drew C

When you build for distribution, make sure that the "Active SDK" is set to an iPhone Device SDK and notan iPhone Simulator SDK. Having it set to Simulator will still allow you to build the app, but it will give you this error when you try to run it on another device.

当您为分发而构建时,请确保将“Active SDK”设置为 iPhone 设备 SDK 而不是iPhone 模拟器 SDK。将其设置为 Simulator 仍然允许您构建应用程序,但是当您尝试在另一台设备上运行它时,它会出现此错误。

Also, make sure that whenever you plan on installing a new build you first change the Current Project Version in the Project Settings to a new version number.

此外,请确保每当您计划安装新版本时,首先将“项目设置”中的“当前项目版本”更改为新版本号。

-Drew

-德鲁

回答by pmark

Make sure you delete and reinstall all of the provisioning profiles in Organizer AND on your device (also using Organizer). The profiles exist in 2 places.

确保删除并重新安装管理器和设备上的所有配置文件(也使用管理器)。配置文件存在于 2 个地方。

回答by user385232

I had the exact same problem. My solution was to quit XCode, start it again, and then do a clean build. Works for now.

我有同样的问题。我的解决方案是退出 XCode,重新启动它,然后进行干净的构建。暂时有效。

回答by Mk.zRealDeal

Restart the dam device! it worked for me. I was running extensive provisioning deletion frenzy.

重启大坝设备!它对我有用。我正在运行广泛的配置删除狂潮。

回答by JordanC

Deleting the debugged app from the phone, and restarting X-Code resolved this for me.

从手机中删除调试的应用程序,然后重新启动 X-Code 为我解决了这个问题。