Discussion Forums  >  Xcode, Errors, Installing, Configuring

Replies: 12    Views: 325

stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
03/15/12 06:03 AM (13 years ago)

Those re-aapearing certificates.

Reading old discussions and google posts I'm sure many have been confronted with the following :Code Sign error: Certificate identity 'iPhone Developer: stephen KRONWITH (2A6BNHNYC9)' appears more than once in the keychain. The codesign tool requires there only be one. These certificates get deleted and magically re-appear all the time. I'm usually able to delete them from the keychain but sooner or later (sometimes immediately) they come back from the dead. I'm able to get them to not reappear long enough to compile and run but still, this is a major headache that Apple doesn't seem to want to fix. Has anyone out there finally come up with a permanent fix? Thanks.
 
Crown Solutions
Aspiring developer
Profile
Posts: 463
Reg: Nov 11, 2011
MN
13,480
like
03/15/12 07:19 AM (13 years ago)
Not sure if this is a "fix" but I have noticed that if I have a testing device always plugged in when I open xcode, I don't have this issue. Jim
 
jbrzensk
buzztouch Evangelist
Profile
Posts: 56
Reg: Oct 04, 2011
Denver
8,010
like
03/15/12 08:19 AM (13 years ago)
When you keep getting an old certificate, it is usually a device or "other" old certificate importing it in. There is no point to keep old certificates, and I think it is good practice to delete old ones you no longer use. Delete them from any devices you use and from the organizer in Xcode, then from the keychain. The trick for you is finding the certificate that is importing the duplicate into your keychain. I had this problem all the time, and since deleting all the old certificates off of everything, (especially the devices) I have not had the problem anymore.
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
03/15/12 08:59 AM (13 years ago)
jbrzerisk, how do you delete a certificate from a device? A I mentioned, I delete the old ones from keychain but they keep re-appearing. Didn't know a device had one.
 
jbrzensk
buzztouch Evangelist
Profile
Posts: 56
Reg: Oct 04, 2011
Denver
8,010
like
03/15/12 09:04 AM (13 years ago)
In Xcode>organizer, when you plug your device in, click >devices on the top, then you can click your device on the left, expand the menu, and see the certificates associated on that device. If you don't need them, delete em. And be sure to delete from Xcode first, that's what imports into keychain.
 
Crown Solutions
Aspiring developer
Profile
Posts: 463
Reg: Nov 11, 2011
MN
13,480
like
03/15/12 09:06 AM (13 years ago)
In the device, Settings, General, Profiles Should be a list of Provisioning Profiles. I am guessing these profiles that have the certificate attached are what the issue is?
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
03/15/12 09:20 AM (13 years ago)
Now I have a conundrum. On my devices I indeed have two profiles. One is called IOS Team Provisioning Profile and for some reason it has an asterix next to it. The other is called skyprovisioningprofile which I think has something to do with the name of an app I have installed on iTunes called sky event finder, though I'm not sure. So first question would be which one gets deleted? The problem in the keychain is with Developer profiles reappearing, not provisioning profiles which I don't see any in the keychain. Are they the same, different? I don't want to delete the wrong thing from the devices because at least at the moment Ican get things to work. Any ideas?
 
jbrzensk
buzztouch Evangelist
Profile
Posts: 56
Reg: Oct 04, 2011
Denver
8,010
like
03/15/12 09:27 AM (13 years ago)
in xcode or on the device, do they both say "Valid" or something like that? If they do, they are fine. If your developer profile keeps reappearing, it is a development certificate that is probably causing it. In xcode, those two profiles are the only two that show up? On all your devices? Dont worry, if you do delete something you shouldn't, the Apple Provisioning Portal has all your stuff ready for re-downloading.
 
Crown Solutions
Aspiring developer
Profile
Posts: 463
Reg: Nov 11, 2011
MN
13,480
like
03/15/12 09:28 AM (13 years ago)
Sorry, if I confused the situation. It will be easier and cleaner if it is done in xcode with the organizer window. (with device connected) The * profile is your wildcard profile from Apple
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
03/15/12 09:37 AM (13 years ago)
In xcode I have 3 profiles, the two that are on the devices and a third. One of them has as name skronwithdistribution and the other skyprovisioningprofile and both have as the app identifier com.company.appname . The third's name is IOS provisioning profile and has the app name with just the asterix. So three in xcode, two on the devices (skyprovisioning profile and IOS provisioning profile). Which should be deleted? in xcode and which should be deleted on the devices? Thanks
 
jbrzensk
buzztouch Evangelist
Profile
Posts: 56
Reg: Oct 04, 2011
Denver
8,010
like
03/15/12 09:45 AM (13 years ago)
If they all say valid, they should be fine. Any that say revalidate, expired, or other stuff should be deleted. At this point, do you still have the extra developer profile in Keychain? Are you sure you are deleting the correct one out of Keychain (the oldest one)? If so, try closing Keychain and Xcode, and reopening them again. Is the extra developer certificate put back into Keychain? If it still doesn't work, deleting all developer profiles, deleting the developer certificates from keychain, and redownloading the only one you need might also work. (I am sorry for going from "will work" to "probably work" to "might work", just know I spent a few hours doing what you are doing now, swearing at my computer)
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
03/15/12 10:18 AM (13 years ago)
All are valid so I guess I'll keep them. So far only one developer profile in keychain, but, as experience tells me, that's bound to change any time soon. You'd think Apple could fix this once and for all. Thanks for the help.
 
jbrzensk
buzztouch Evangelist
Profile
Posts: 56
Reg: Oct 04, 2011
Denver
8,010
like
03/15/12 10:31 AM (13 years ago)
no worries. Apple's original advice is to delete every certificate and profile in keychain and xcode, restart the computer and start from scratch. Good luck.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.