无法获取进程1640的任务。尝试在设备上运行iPhone应用程序时出错 [英] Failed to get the task for process 1640. Error when trying to run iPhone app on device

查看:89
本文介绍了无法获取进程1640的任务。尝试在设备上运行iPhone应用程序时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我尝试在iPhone设备上安装我的Cocos2d游戏时,我都会收到以下错误。

I am getting the following error whenever I try to install my Cocos2d game on an iPhone device.

无法获得流程1640的任务

Failed to get the task for process 1640

我使用的是xCode 4.0.2,我真的很讨厌这简直太复杂了。我已经为我的目标设置了构建设置,但是当我点击项目时,它表示没有配置任何构建设置,如下面的屏幕截图所示:

I am using xCode 4.0.2 which I really hate as it is simply too complicated. I have set the build settings for my target but when I click on the project it says no build settings have been configured as shown in the screenshot below:

虽然应用程序无法在设备上运行,但是当我使用iPhone并点击应用程序时它确实在不使用xCode的情况下运行。

Although the app fails to run on the device but when I use my iPhone and click on the app it does run without using xCode.

推荐答案

确保使用调试配置而不是发布或临时配置来部署到设备。

Make sure you are using a debug configuration and not a release or ad hoc configuration to deploy to the device.

转到Xcode主窗口左上角的Build select框。选择未构建的Scheme并选择Edit Scheme。

Go to the Build select box at the upper left of the Xcode main window. Select the "Scheme" that isn't building and select Edit Scheme.

在下一个对话框中选择左侧的Run和右侧的Info。确保Build Configuration设置为Debug。

In the next dialog select Run on the left hand side and Info on the right. Make sure Build Configuration is set to Debug.

这篇关于无法获取进程1640的任务。尝试在设备上运行iPhone应用程序时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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