iOS 企业配置文件过期

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9270989/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 16:50:24  来源:igfitidea点击:

iOS Enterprise Provisioning Profile Expiration

iosiphoneenterprise

提问by user1207592

Every iOS Enterprise Provisioning Profiles expires after 1 year, correct? After they expire and you renew them, do you need to re-install the new Provisioning Profile to all the devices, or do the devices get renewed automatically from Apple's certificate server?

每个 iOS 企业配置文件都会在 1 年后过期,对吗?在它们到期并续订后,您是否需要将新的 Provisioning Profile 重新安装到所有设备上,或者设备是否会从 Apple 的证书服务器自动续订?

So, in other words, after you distribute an Enterprise app, do you need to update all the devices every year or can you simply renew the certificate on the Developer Portal or via Xcode?

那么,换句话说,在您分发企业应用程序后,您是否需要每年更新所有设备,或者您可以简单地在开发人员门户或通过 Xcode 更新证书?

回答by Vin

BigDave's answer and my answer here(as Thilo posted) actually cover all grounds in your question. I would just add two new things if you consider re-signing and distributing all your apps again, a big hassle.

BigDave 的回答和我在这里的回答(如 Thilo 发布的)实际上涵盖了您问题中的所有理由。如果您考虑重新签名并再次分发所有应用程序,我会添加两个新内容,这是一个很大的麻烦。

  1. You don't need the code of your app to re-sign with new certificate. You can do it through the terminal(and probably create a shell script if you have large number of apps). Check thisthread.

  2. If you have large number of apps distributed in your enterprise, consider deploying a MDM server. That way you can re-sign/Update your apps and push them wirelessly on registered devices with minimal user interaction.

  1. 您不需要应用程序的代码来使用新证书重新签名。你可以通过终端来完成(如果你有大量的应用程序,可能会创建一个 shell 脚本)。检查这个线程。

  2. 如果您的企业中分布有大量应用程序,请考虑部署 MDM 服务器。这样您就可以重新签名/更新您的应用程序,并以最少的用户交互将它们无线推送到已注册的设备上。

EDIT:In regards to expiring provisioning profiles, the documentation states:

编辑:关于过期配置文件,文档指出:

If the expired provisioning profile is installed on your device, remove it, as described in Verifying and Removing Provisioning Profiles on Devices. If the provisioning profile is an ad hoc provisioning profile, re-sign and distribute your app using the regenerated provisioning profile, as described in Exporting Your App for Testing (iOS, tvOS, watchOS).

如果您的设备上安装了过期的配置文件,请将其删除,如验证和删除设备上的配置文件中所述。如果配置文件是临时配置文件,请使用重新生成的配置文件重新签名和分发您的应用程序,如导出您的应用程序进行测试(iOS、tvOS、watchOS)中所述。

回答by oenpelli

From the apple site:

来自苹果网站:

An app won't run if its distribution certificate has expired. Currently, distribution certificates are valid for one year, and you can have two certificates active at the same time. The second certificate is intended to provide an overlapping period during which you can update your apps before the first certificate expires.

如果分发证书已过期,应用程序将不会运行。目前,分发证书的有效期为一年,您可以同时拥有两个有效的证书。第二个证书旨在提供一个重叠的时间段,在此期间您可以在第一个证书到期之前更新您的应用程序。

So updating an app once a year is actually the best case. If the app is signed with a distribution certificate with only 6 months left then it will need to be updated after 6 months.

因此,每年更新一次应用程序实际上是最好的情况。如果应用程序使用分发证书签名,仅剩 6 个月,则需要在 6 个月后更新。

回答by mskw

Just send your users the renewed .mobiprovision profile, no need to update existing apps.

只需向您的用户发送更新的 .mobiprovision 配置文件,无需更新现有应用程序。