Failed to get task for process 1640. Error trying to start iPhone application on device

I get the following error when I try to install my Cocos2d game on an iPhone device.

Failed to complete task for process 1640

I am using xCode 4.0.2, which I really hate as it is too complicated. I set the build parameters for my purpose, but when I click on the project, it says that the build settings were not configured, as shown in the screenshot below: enter image description here

Although the application does not start on the device, but when I use my iPhone and click on the application, it starts without using xCode.

+7
source share
1 answer

Make sure that you use the debug configuration and not the release or ad hoc version to deploy to the device.

Go to the assembly selection window in the upper left corner of the main Xcode window. Select a Schema that is not being built, and select Edit Schema.

In the next dialog box, select Run on the left and Information on the right. Make sure Build Configuration is set to Debug.

+16
source

All Articles