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

查看:13
本文介绍了配置文件错误(启动远程程序时出错:无法获取进程 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.

在发布的 Target 配置文件中,我将代码签名权利设置为: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天全站免登陆