Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
371 views
in Technique[技术] by (71.8m points)

ios - Code Sign error: Certificate identity 'iPhone Developer: My Name (xxx)' appears more than once in the keychain

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 requires there only be one.

I try to renew the build a new CSR, remove the old certificate, build a new one, again and again and again and this error is still present

in the keychain I dont see any duplicated certificate and if I remove the only one I can see in the keychain , Xcode complains that the certificate can't be found ...

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Xcode 4.3 now searches all keychains for signing certificates but that is increasing the frequency of the build error:

Certificate identity (x) appears more than once in the keychain...

Apple's steps to resolve it are here: "How do I resolve the CodeSign error: Certificate identity appears more than once in the keychain?"

However, if you are affected by the keychain bug mentioned in the final note of that guide, following is a simpler and preferred solution to problem:

1) Keychain Access > Edit > Keychain List, uncheck "Shared" for the login keychain.

2) next, IF going back into the Keychain List you find the login keychain is still marked as Shared, create a backup of the following files and then remove them if they exist:

/Library/Preferences/com.apple.security-common.plist
~/Library/Preferences/com.apple.security.plist

3) Retry your build.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...