title: Xcode fails to get the task for process XXX. How do I solve this? (iPhone SDK 4.0)
body: <p>I have the following error when I try to run a new project on my ipod:</p>
  
  <pre><code>Error launching remote program: failed to get the task for process 312.
  The program being debugged is not being run.
  </code></pre>
  
  <p>I've read about Entitlements.plist, and I've tried to add the get-task-allow, but then it doesn't let me compile because of a code signing error. I only have a development provisioning profile, so it's not the same as the people who were trying to debug the distribution build (I'm also in the debug build, so that isn't a problem).</p>
  
  <p>Old projects build and run fine on the ipod, just new projects.</p>
  
  <p>I've tried restarting both xcode and my ipod, but it doesn't help.</p>
  
  <p>I have no more ideas on how to build/run new projects on xcode, so any help is much appreciated!</p>
  
  <p>Oh, and I'm using an iPod 3G with iOS 4.0.1. Xcode is 3.2.3 (64-bit).</p>