views:

240

answers:

0

Whenever I add a new user to my Ad Hoc distribution build, I download a new mobileprovision file and install it into Xcode by double-clicking on it. I then go into Xcode's Organizer screen and delete the old Ad Hoc profile, to ensure there's no confusion over which to use.

This never fails to generate an error when I build again. It will always say "Code Sign error: provisioning profile xxxxx-xxxxxx-xxxxx-xxxx-xxx can't be found." (where 'xxx' is the id of the provisioning profile I deleted.) My build settings are set to "iPhone Distrubition: [My Company Name]", so I'm not mentioning the old provisioning file by name. The only way I've found to fix the build is to go into the project.pbxproj file and literally replace the old provisioning ID with the new one.

Obviously, editing the project file directly is tiresome, error prone, and dangerous. How should I be handling this situation?

Thanks.

related questions