Reputation: 835
I'm a new iOS developer and I am having a strange problem with my Xcode-generated provisioning profile. I am the only developer on my team (and in my company) and yet the provisioning profile shows 50 certificates. I only have one development certificate and am the only person developing. I only use one Mac and one Mac server. I'm not sure how this happened. I guess I can't post an image here yet, but on Member Center, when clicking on the iOSTeam Provisioning Profile it shows:
I've searched here and elsewhere on the web and tried many ways to get Xcode to simply create a new provisioning profile, but it always seems to just recreate one with 50 certificates. I've tried:
At this point, Xcode just recreates the iOSTeam Provisioning Profile with 50 certificates.
I have also revoked my development certificate, created a new one, and had Xcode recreate the provisioning profile. Same thing happened.
I have created my own provisioning profile and that one is correct. But, I'd like to have Xcode manage all this so would prefer to use that one.
I've talked to Apple, and they don't know what happened, but don't think there is really an issue since this profile is working OK. They said to just keep using this one. But, I guess I'm neurotic and would like a correct profile.
I guess I really have two questions:
I appreciate any insight and help.
Upvotes: 1
Views: 3375
Reputation: 535138
Has anyone figured out how to get Xcode to truly re-create a provisioning profile from scratch
Yes, but it's not easy. You have to delete everything related to certificates and provisioning profiles, both on your computer(s) and at the Member Center.
So, first you quit Xcode and restart the computer so that nothing is cached.
Now delete all caches associated with Xcode, as I explain here: How to Empty Caches and Clean All Targets Xcode 4
Delete the contents of ~/Library/MobileDevice/Provisioning Profiles.
Use Keychain Access to delete your identities and certificates.
Do the above on every machine you develop on!
Go to the Member Center and revoke/delete absolute everything, one by one. This can be a long process. You won't be able to delete distribution certificates for apps already on the app store, but everything else you will be able to remove.
Just to be on the safe side, go to every device and delete any profiles (General settings).
You can now begin the process of requesting a development certificate. I always do this manually, generating the request from Keychain Access and uploading it to the Member Center. When you've downloaded and installed the certificate in the keychain, launch Xcode and attach a device and ask to use it for development. You will end up with a new team profile. I hope.
Upvotes: 1