I m stuck with this error:
Code Sign error: Certificate identity \'iPhone Developer: My Name (xxx)\' appears more than once in the keychain. The codesign tool requir
If you already deleted all other Developer Certificates in your KeyChain and the Error is still coming up, then try to delete all old/unused keys (private key) with your name. The one that's necessary, is the one with the little "folder-enhancer-icon" next to its name. Keeping this and deleting the rest fixed it for me.