title: iPhone Debugging: How to resolve 'failed to get the task for process'?
body: <p>I have just added a provisioning profile to XCode (needed to support notifications and in app purchase), setup as needed the build configuration for ad hoc distribution, and tried to run the app on the device (I have done this several times in the past, without any problem).</p>
  
  <p>The app is installed, but it does not start. On the console, I see the following message:</p>
  
  <pre><code>Error launching remote program: failed to get the task for process 82.
  Error launching remote program: failed to get the task for process 82.
  The program being debugged is not being run.
  The program being debugged is not being run.
  </code></pre>
  
  <p>However, if I start the application on the device manually, it works as expected. I have recently installed the latest XCode 3.2 for Snow Leopard. Is this a known bug of this version of XCode or am I doing something wrong?</p>
  
  <p>EDIT: It works fine with release distribution using the development provisioning profile.
  I have checked again the ad hoc provisioning profile to make sure it includes the device I am using.</p>