I am getting this error:
CodeSign error: Certificate identity \'iPhone Developer: XXX\' appears more than once in the keychain. The codesign too
Figured out a really easy way to fix this in 4.6.1. You can do it without restarting anything or deleting any profiles!
With Keychain Access and your Xcode project open:
Hope it helps!