Re: Automatic provisioning profile selector
Re: Automatic provisioning profile selector
- Subject: Re: Automatic provisioning profile selector
- From: Fritz Anderson <email@hidden>
- Date: Mon, 29 Oct 2012 11:14:03 -0500
On 29 Oct 2012, at 10:28 AM, Matt Neuburg <email@hidden> wrote:
[Omitted, sorry; I'm just replying to Matt because I don't have Rick's OP.]
> On Tue, 16 Oct 2012 22:20:25 -0700, Rick Mann <email@hidden> said:
>> How does this work? My app is having trouble building (used to be fine). I have a specific provisioning profile for it, but the automatic selector selects the team profile.
>>
>> Any idea why it can't just do the right thing?
I'm assuming this is iOS. Let me start from first principles.
Xcode presents a menu of signing identities for the "Code Signing Identity" build setting. The top two identities are for "iPhone Developer" and "iPhone Distribution," with no qualification for the name of the person/entity to which the certificate was issued (as would be iPhone Developer: Fritz Anderson). If you choose one of those, Xcode will look among the provisioning profiles for the best* match for the respective purpose (developer or distribution) and the app ID. It then automatically qualifies the identity name to match the one in the profile.
* (I've seen it take the Team profile in preference to an exact app ID match, however. I believe that's a bug.)
If it's a development certificate/profile, and you don't use any Apple server facilities, it doesn't matter whether it selects the Team Provisioning Profile. The effect is the same. If you are using Apple services, you need a specific development (not distribution) profile. Again, I think I've seen it skip exact-match profiles. In that case, go down the menu and select the identity that matches the correct profile. The setting should stick. It's kind of important that you take the generic identity setting, so you can share the project with other developers who have their own identities; Xcode will automatically adopt theirs.
If you're seeing the Team profile in a distribution build, check that (1) you have the _distribution_ profile for your product installed; (2) you have the matching _distribution_ certificate (both halves) installed; (3) you have selected the generic "iPhone Distribution" signing identity. A distribution identity shouldn't match a Team Provisioning Profile. Again, if Xcode doesn't match the identity properly, you can force it by picking one explicitly from down the list.
So the way to get the automatic behavior is to select the second or third item in the signing identity setting. And hope for the best. Provisioning is still a dark-gray art, and suitable for frightening small children in this Hallowe'en season.
— F
--
Fritz Anderson -- Xcode 4 Unleashed: 4.5 supplement on the way -- <http://x4u.manoverboard.org/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden