Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ambiguous matches in iphone developer between System.keychain and login.keychain

Tags:

xcode

iphone

I'm running into a code signing problem. The solutions posted in SO and elsewhere to remove a duplicate certificate but I have already done that and the build error keeps popping. I'm out of ideas on what to do.

Under keychain access, there is login and System and both have iPhone developer: myName in it. Am I suppose to delete one of them? Which one should I delete? The login one or the System one?

Thanks!

like image 844
okysabeni Avatar asked Aug 30 '11 03:08

okysabeni


3 Answers

Most answers will tell you that you have a duplicate certificate. This is true for my case but the answers left out how to do it.

For me, my account expired and I have to get a new certificate and install it. Next, I looked at Keychain and removes the expired certificate but still got the error. What works for me is actually searching for "iPhone" in Keychain and removing all expired certificates. Apparently, some of it are not shown in System/Certificates or login/Certificates.

Hope this helps!

like image 113
okysabeni Avatar answered Nov 02 '22 23:11

okysabeni


Sometimes a duplicate certificate f.e. in System is not shown in the Keychain Access. Just do the following: Go to View -> Show expired (or the like) and the duplicate should be shown. Did it for me :)

like image 20
Mirco Ellmann Avatar answered Nov 03 '22 01:11

Mirco Ellmann


For my case, I encountered while building for injectionforxcode.

Took a look at the Run Script, and it has /usr/bin/codesign --force --sign "iPhone Developer". Since I have multiple accounts, the "iPhone Developer" has be changed to the specific one eg. "iPhone Developer: samwize"

I suppose any script running codesign could run into the same situation and would require this tweak.

like image 20
samwize Avatar answered Nov 03 '22 01:11

samwize



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!