CodeSign error: Certificate identity \'iPhone Developer: XXXX (12345678)\' appears more than once in the keychain. The codesign tool requires there only be one.
So I
I have the same issue with xcode45-DP1. this works for me:
remove all certificates related to your account from keychain. QUIT keychain
remove all provisioning profiles related to your account from xcode:organizer:device:Library:provisioning profiles. QUIT xcode
revoke your certificate and regenerate it and download it to your build machine
before download provisioning profile, click on Edit next to the download button to make sure your name is selected.
Then download the provisioning profile
double click on the certificate to install it onto keychain
drag the provisioning profile to xcode:organizer:device:Library:provisioning profiles
do not click the refresh button from the xcode.
make the build.