CodeSign error: Certificate identity 'iPhone Developer: XXXX appears more than once

CodeSign error: Certificate identity 'iPhone Developer: XXXX (12345678)' appears more than once in the keychain. The codesign tool requires there only be one.

一种解决方案:

  1. Quit Xcode
  2. If the Keychain access is open , keep it open.
  3. Launch Xcode now.
  4. See that the certificate Xcode was complaining about will be re-added into the keychain at launch from its cache.
  5. Go ahead and delete it.
  6. Compile and Happy Coding.
二.
  1. remove all certificates related to your account from keychain. QUIT keychain

  2. remove all provisioning profiles related to your account from xcode:organizer:device:Library:provisioning profiles. QUIT xcode

  3. revoke your certificate and regenerate it and download it to your build machine

  4. before download provisioning profile, click on Edit next to the download button to make sure your name is selected.

  5. Then download the provisioning profile

  6. double click on the certificate to install it onto keychain

  7. drag the provisioning profile to xcode:organizer:device:Library:provisioning profiles

  8. do not click the refresh button from the xcode.

  9. make the build.


你可能感兴趣的:(ios,ios,ios,xcode,xcode,xcode)