title: Application failed codesign verification during validation in Xcode 4.2
body: <p>I am experiencing trouble with the distribution provisioning profile.</p>
  
  <p>I have tried for many times to create a distribution provisioning profile using the instruction: <a href="http://developer.apple.com/ios/manage/distribution/index.action" rel="nofollow">http://developer.apple.com/ios/manage/distribution/index.action</a></p>
  
  <p>But when I verificate the program I get an error: </p>
  
  <p><strong>Application failed codesign verification. The signature was invalid, or it was not signed with an iPhone Distribution Certificate.</strong> </p>
  
  <p>I have done the steps as follows:
  1.I have created certificates in key chain access.
  2.I have created provisioning profiles in iOS Provisioning Portal
  3.I have created an application ID
  4.I have set provisioning profiles in the Code Signing section in Xcode</p>
  
  <p>Besides, I have checked that there are no duplicate or out dated certificates in key chain access. </p>
  
  <p>I have looked through stackoverflow and have not found a solution.</p>
  
  <p>What can be the problem?</p>