配置文件错误(启动远程程序时出错:无法获取进程XXX的任务。) [英] Profile bug (Error launching remote program: failed to get the task for process XXX.)

查看:114
本文介绍了配置文件错误(启动远程程序时出错:无法获取进程XXX的任务。)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

在我的项目资料中,我没有为iPhone开发人员设置代码签名权利和代码签名身份。

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

在我发布的目标配置文件中,我的代码签名权限设置为:Entitlements.plist,我的代码签名实体设置为iPhone Distribution,设置为我的Ad Hoc配置文件。

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.

推荐答案

问题是因为您尝试使用分发配置文件调试应用程序。如果要在调试模式下运行应用程序,则必须使用开发配置文件和证书(在构建设置和目标中)对其进行签名。如果您尝试创建可分发的,请使用分发凭据对其进行签名并添加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).

这篇关于配置文件错误(启动远程程序时出错:无法获取进程XXX的任务。)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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