title: Xcode with iPhone 4 Development: The executable was signed with invalid entitlements.
body: <p>The complete error message is:</p>
  <blockquote>
  <h3>The executable was signed with invalid entitlements.</h3>
  <p>The executable
  was signed with invalid entitlements. The entitlements specified in
  your application's Code Signing Entitlements file do not match those
  specified in your provisioning profile. (0xE8008016).</p>
  </blockquote>
  <p>I have already spent a couple of hours resolving this error message but haven't resolved it yet. Basically, I have made my iPhone-4.0 for development and installed the valid provisioning profile from my account on developer.apple.com.</p>
  <p>We have our main application, which is signed with the same provisioning profile, and it works fine, but when I try running application given in the <a href="http://teachyourselfiphone.com/" rel="noreferrer">http://teachyourselfiphone.com/</a> book for learning and testing purposes, it just doesn't work.</p>
  <p>I have tried all of the following things, but nothing works.</p>
  <ol>
  <li><a href="https://stackoverflow.com/questions/1074546/the-executable-was-signed-with-invalid-entitlements">The executable was signed with invalid entitlements</a></li>
  <li><a href="http://jomnius.blogspot.com/2010/11/executable-was-signed-with-invalid.html" rel="noreferrer">http://jomnius.blogspot.com/2010/11/executable-was-signed-with-invalid.html</a></li>
  </ol>
  <p>Could anyone please help me to get rid of this?</p>