title: Failed to get the task for process 1640. Error when trying to run iPhone app on device
body: <p>I am getting the following error whenever I try to install my Cocos2d game on an iPhone device. </p>
  
  <p>Failed to get the task for process 1640</p>
  
  <p>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: 
  <img src="https://i.stack.imgur.com/DuUgW.png" alt="enter image description here"></p>
  
  <p>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. </p>