title: How to install previously-archived apps from xcode organizer to my iphone
body: <p>Xcode keeps an archive of all the versions of my apps that I've submitted to the app store in the 'archived applications' section.  I assumed using this I could install an old version of an app to my device, in order to reproduce any problems my client may have had with that particular version.</p>
  
  <p>However, when I try to do this I get an error:</p>
  
  <p>'this executable was signed with invalid entitlements, the entitlements specified in your applications code signing entitlements do not match those specified in your provisioning profile'</p>
  
  <p>The original app was signed using our App Store distribution certificate, and I use the Organizer interface to re-sign it using our Developer profile. </p>
  
  <ul>
  <li>select the archived app</li>
  <li>select the version I want to test</li>
  <li>click 'share'</li>
  <li>select 'iphone developer' next to identity</li>
  <li>save to disk (saves the ipa file)</li>
  <li>then copy the ipa to the device using the little + button you see next to 'applications' on the screen you get when you select the connected device.</li>
  </ul>
  
  <p>Then I get the error, and the app isn't installed.</p>
  
  <p>Is there something obvious I'm doing wrong here? Or is there a different process to re-install an archived app to my device?  </p>
  
  <p>Edit: Thanks for the answers, I've solved this now. I wrote up the process I used if others want to do this <a href="http://pervasivecode.blogspot.com/2011/01/installing-archived-application-to.html">http://pervasivecode.blogspot.com/2011/01/installing-archived-application-to.html</a></p>