I am getting this error:
CodeSign error: Certificate identity \'iPhone Developer: XXX\' appears more than once in the keychain. The codesign too
the above method not work for my case
finally , i go to keychain
and search the key by entering the name
i finally found the cert which is supposed to be deleted before . then i deleted it and the problem solved
it's really frustrating , and i don't know whether it's the bug ....... really exhausting.