title: Xcode fails to run on device after cancelling Keychain access popup
body: <p>I have an Xcode project which I built, deployed and released successfully for more than a year. Today, while working on it, Xcode popped up a permission dialog for accessing a keychain item. Stupid me hit the escape key. Starting from this time, all attmepts to run the project on a device failed with the error <code>A valid provisioning profile for this executable was not found</code>.</p>
  
  <p>So somehow I seem to have locked Xcode from accessing the provisioning profile data in the keychain. Is there a way to let Xcode re-ask me for access permission?</p>
  
  <p>The project is configured to "automatically manage signing"; I have selected the correct team, and the provisioning profile info in the project settings shows all checkmarks, no issues.</p>
  
  <p>So far I tried:</p>
  
  <ul>
  <li>unpair the device</li>
  <li>restart Xcode</li>
  <li>restart computer</li>
  <li>remove and re-add dev account (as suggested in the comments, thx @Paulw11)</li>
  <li>change the bundle id (as suggested in the comments, thx @matt)</li>
  <li>lock/unlock keychain (as suggested in the answer linked by @matt, thx again)</li>
  </ul>
  
  <p>Please not, this question is <em>not</em> a duplicate of the many questions about how to run an app which contain the same error message (e.g. <a href="https://stackoverflow.com/questions/4167466/a-valid-provisioning-profile-for-this-executable-was-not-found-for-debug-mode">this one</a>).
  My project setup is sound and used to work for months, and the current state of the codebase was runnable on a device 15 minutes ago, before the damn keychain popup incident.</p>
  
  <p>Oh, and P.S.: I hate Xcode. Feel free to downvote me for this outburst of emotion, but it's a fact.</p>