title: Xcode 4 -reinstalls keychain certs that I delete
body: <p>I am getting this error:</p>
  
  <blockquote>
    <p>CodeSign error: Certificate identity
    'iPhone Developer: XXX' appears more
    than once in the keychain. The
    codesign tool requires there only be
    one.</p>
  </blockquote>
  
  <p>At first I though, no worries, I will just go into keychain and delete the duplicate (older) one, which I did. I went back, closed Xcode, reopened Xcode and project, same error.  wtf I though to myself.  Back into keychain and the cert is there again.  I delete both certs, repeat, and notice as the project loads, the two certs I deleted pop back into the keychain.</p>
  
  <p>After much searching, I ensured I did not have the cert in the system keychain, which I did not.  Also did a clean and rebuild.  When I had duplicates with Xcode 3 I could just clean up the keychain duplicate and I was good.  But with Xcode 4 it literally just reinstalls them somehow when I open the project.  I even deleted all .cer files on my system that it might possibly be pulling them from.</p>
  
  <p>Any suggestions?</p>