Building iPhone App for Distribution
<p>I have a question on how exactly to do the final distribution build for my app. I have actually successfully built this app already but now I am trying to make an updated version and to remember what I did right the first time. It all seemed to go wrong when my provisioning profile expired....</p>

<p>Anyway, I have my distribution certificate and distribution provisioning profile. I have followed the instructions from Apple, an iPhone programming book and several online sources to create a build that checks against the right certificate etc. But the build always fails unless I connect a device, which is strange as the distribution provisioning profiles do not allow the inclusion of a device (which makes perfect sense in itself). However when I build with a device connected I am asked </p>

<blockquote>
  <p>'Can’t run XXX on the iPod “iPod
  touch”</p>
  
  <p>The iPod “iPod touch” doesn’t have the
  provisioning profile with which the
  application was signed.</p>
  
  <p>Click “Install and Run” to install the
  provisioning profile XXX on “iPod
  touch” and continue running XXX.'</p>
</blockquote>

<p>When I click install and run it fails with the message that </p>

<blockquote>
  <p>A valid provisioning profile for this
  executable was not found.</p>
</blockquote>

<p>So my basic question is how exactly should the final distribution build be done? An new executable appears, but it has a forbidden symbol on top of the application icon suggesting the build was unsuccessful. </p>

<p>Any help massively appreciated.</p>
