title: iPhone App Ad Hoc Distribution Issue - "Failed to sync"
body: <p>Just getting back into iPhone dev after almost two years off (last dev'd on iOS3) and I'm getting grief while trying to do an ad hoc distribution.  </p>
  
  <p>I:</p>
  
  <ul>
  <li>Added new devices in the provisioning portal (inc. my own to test)</li>
  <li>Recreated my ad hoc provisioning profile</li>
  <li>Installed it in Xcode</li>
  <li>Updated the target to use it and built the app (no problem so far)</li>
  <li>Dragged the app and profile into iTunes</li>
  <li>Sync'd </li>
  <li>Got the message "Failed to sync"  </li>
  </ul>
  
  <p>Knowing that this was likely an issue with the profile I started from scratch and:  </p>
  
  <ul>
  <li>Removed the old profile</li>
  <li>Recreated my certificate</li>
  <li>Recreated the profile</li>
  <li>Completed the above steps</li>
  <li>Got the same result</li>
  </ul>
  
  <p>I'm not 100% sure of my target and build settings. Here are screen shots of the relevant sections in case it helps:  </p>
  
  <p><em>Target Code Signing (the correct profile is selected):</em>
  <img src="https://i.stack.imgur.com/EwhwI.png" alt="Target Code Signing"></p>
  
  <p><em>Project Configuration:</em><br>
  <img src="https://i.stack.imgur.com/sgmTf.png" alt="Project Configuration">  </p>
  
  <p>I've been advised in another post to refer to the documentation but I have been unable to locate specific information on these settings. I still have doco on how to do it in Xcode 3.x but it doesn't sdeem to be doing me much good here.</p>
  
  <p>Thanks in advance,</p>
  
  <p>Alan.</p>