Enterprise Distribution Provisioning Profile Expiration

旧巷老猫 提交于 2019-12-10 01:45:55

问题


Our company enterprise provisioning profile is set to expire in a month, but our distribution certificate is set to expire in a few more years. What are our options?

Do I need to regenerate a new provisioning profile and create a new build that I have to redistribute?

Or is there a simpler option like just sending out the new provisioning profile I generate? or better yet I don't have to do anything?

Thanks


回答1:


So generating a new provisioning profile will not invalidate any of the apps out there on devices. Simply generate the new provisioning profile, build a new version of the app with the new provisioning profile, and just make sure all your users / testers update to the new version of the app.

Alternatively, you could generate the provisioning profile and then distribute the profile to all the devices through MDM (if you're using an MDM solution) or by email (not a great experience). Basically the app will continue to run as long as the new provisioning profile gets on the device before the old one expires, whether that's through MDM, manually, or by installing a new version of the app with the provisioning profile in the .app payload. Or if your users download any app with the new provisioning profile, assuming that provisioning profile is set up with a wildcard app ID, that will also correct it (see information about that here: https://stackoverflow.com/a/29121777/3708242).

Basically, you need to do something before the provisioning profile expires (the sooner the better) and get that new provisioning profiles on the device (through one of the options above).




回答2:


The easiest thing to do is to go into developer.apple.com, choose the expiring provisioning profile, choose EDIT, then Generate.

It will create a new one for you, and you will need to refresh Xcode's stash of provisioning profiles before you re-build. However, if the app is already out to your "workforce" you will need to redistribute to your users

From Apple's documentation :

Managing Expiring Certificates and Provisioning Profiles

You are responsible for managing your team’s certificates and provisioning profiles. Apple Developer Enterprise Program certificates expire after three years and provisioning profiles expire after one year.

Before a distribution certificate expires, create an additional distribution certificate, described in Creating Additional Enterprise Distribution Certificates. You cannot renew an expired certificate. Instead, replace the expired certificate with the new certificate, described in Replacing Expired Certificates.

If a distribution provisioning profile expires, verify that you have a valid distribution certificate and renew the provisioning profile, described in Renewing Expired Provisioning Profiles.

Xcode manages your development certificates and team provisioning profiles for you.



来源:https://stackoverflow.com/questions/34594876/enterprise-distribution-provisioning-profile-expiration

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!