When are profiles renewed when using "Automatically manage signing"/allowProvisioningUpdates

I have an enterprise distributed app which is built on a build server using xcodebuild. Last year we made a change to use the "Automatically manage signing" feature with the "-allowProvisioningUpdates" flag. The provisioning profile is generated fine using this technique, but we're coming up to a year with this profile, and it expires in 31 days.


Initially I was under the impression that using "allowProvisioningUpdates" would cause the provisioning profile to be regenerated on each new build, but if that were the case it wouldn't be expiring. We need to do a new build with an updated profile so our users aren't left with a broken app in a months time. However the generated provisioning profile is not shown in the "Certificates, Identifiers & Profiles" section in the Apple Developer Center, and I cannot find any way to force Xcode or xcodebuild to generate a new provisioning profile. How can I force this to happen to ensure no down time for our users? What will happen when the profile finally expires?

Answered by SamOakley3 in 328090022

A follow up email from Apple:


> Automatically manage signing on Xcode only

> creates a new provisioning profile after the expiration date of the

> previous.

>

> That is the best option for new builds that needs to be submitted to

> App Store because there is no downtime from current users when the

> provisioning profile.

>

> As you are developing in-house apps, if you let the provisioning

> profile expire to automatically sign for your new build (with new

> provisioning profile auto-created) your users will not be able to

> access you app.


Therefore the answer seems to be that we shouldn't be using automatic signing for in-house/enterprise distibution, but instead only for App Store deployments.

You might want to ask Apple's Developer Support directly. I Don't see their phone number on the Contact Us page any more, but clicking on "Development and Technical", then "Certificates, Identifiers, and Provisioning Profiles", then "Email" takes you to an email form.

>I Don't see their phone number


Right - gone....they apparently grew weary of watching all the lights on the phones blink, so they moved to a strict "don't call us, we'll call you policy".


When sending an email in hopes of being called (pick me!! pick me!!!), make sure to write a compelling enough story, including the part where the 3 puppies you're holding hostage won't be fed until you hear from support...

I gave this a go at the same time I made this post and just recieved a reply - apparently Developer Support is not trained in using xcodebuild, so they weren't able to help much. I was advised to create a provisioning profile manually, so at this point I'm really not sure what "-allowProvisioningUpdates" is meant to do.

>apparently Developer Support is not trained in using xcodebuild


Right, not their job.


If you consider this a code level issue, you might try using one of your support tickets with DTS via the Member Center.


Good luck.

Accepted Answer

A follow up email from Apple:


> Automatically manage signing on Xcode only

> creates a new provisioning profile after the expiration date of the

> previous.

>

> That is the best option for new builds that needs to be submitted to

> App Store because there is no downtime from current users when the

> provisioning profile.

>

> As you are developing in-house apps, if you let the provisioning

> profile expire to automatically sign for your new build (with new

> provisioning profile auto-created) your users will not be able to

> access you app.


Therefore the answer seems to be that we shouldn't be using automatic signing for in-house/enterprise distibution, but instead only for App Store deployments.

When are profiles renewed when using "Automatically manage signing"/allowProvisioningUpdates
 
 
Q