配置文件错误(启动远程程序时出错:无法获取进程 XXX 的任务。)

发布于 2024-10-12 20:05:05 字数 689 浏览 7 评论 0原文

今天我搞乱了我的开发者/发行版设置,我似乎改变了一些我无法弄清楚的东西。我正在运行 Xcode 3.2.5 和 iOS 4.2。

当我设置在调试模式下在我的设备上构建时,我可以毫无问题地在我的设备上安装我的应用程序

当我设置在发布模式下在我的设备上构建时,我收到以下错误:

Error launching remote program: failed to get the task for process XXX.
Error launching remote program: failed to get the task for process XXX.
The program being debugged is not being run.
The program being debugged is not being run.

程序退出,但似乎有安装在我的设备上,因为我可以毫无问题地启动它。

在我的项目配置文件中,我没有代码签名权利,并且代码签名身份设置为 iPhone Developer。

在发布的目标配置文件中,我将代码签名权利设置为:“Entitlements.plist”,并将代码签名实体设置为“iPhone Distribution”,该实体设置为我的临时配置文件。

我已经在网上搜索并尝试重新启动我的设备、删除配置文件并创建新的配置文件等。

任何帮助将不胜感激,谢谢。

Today I was messing with my Developer/Distribution settings and I seem to have changed something that I can not figure out. I am running Xcode 3.2.5 and iOS 4.2.

When I set to build on my device in Debug mode, I can install my app on my device with no problem

When I set to build on my device in Release mode, I get the following error:

Error launching remote program: failed to get the task for process XXX.
Error launching remote program: failed to get the task for process XXX.
The program being debugged is not being run.
The program being debugged is not being run.

The program quits, but it seems to have installed on my device as I can then launch it with no problems.

In my Project profile, I have no code signing entitlements and Code Signing Identity set to iPhone Developer.

In my Target profile under release, I have my Code Signing Entitlements set to: "Entitlements.plist" and my Code Signing Entity set to "iPhone Distribution" which is set to my Ad Hoc profile.

I've searched the web and have tried restarting my device, deleting the provision profile and creating a new one, etc.

Any help would be appreciated, thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

青丝拂面 2024-10-19 20:05:05

问题是因为您正在尝试使用分发配置文件来调试应用程序。如果您想在调试模式下运行应用程序,则必须使用开发配置文件和证书(在构建设置和目标中)对其进行签名。如果您尝试创建可分发文件,请使用分发凭据对其进行签名并添加 Entitlements.plist(同样在构建设置和目标中)。

The problem is because you are trying to debug your application using distribution provisioning profile. If you want to run your application in debug mode, you have to sign it with development provisioning profile and certificate (both in build settings and in target). If you are trying to create a distributable, sign it with distribution credentials and add Entitlements.plist (again both in build settings and target).

提笔书几行 2024-10-19 20:05:05

对于 xcode 4:您必须从新文件创建 Entitlements.plist 文件。

目标 -> 构建设置 -> 代码签名权利
你必须在这里写“Entitlements.plist”

我这样做了,xcode 不再出现错误

For xcode 4:you have to create Entitlements.plist file from new file.
and
Targets->build Settings->Code Signing Entitlements
you have to write here "Entitlements.plist"

I did this and xcode don not get anymore error

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文