iOS 企业配置文件过期

发布于 2025-01-05 05:22:25 字数 181 浏览 0 评论 0原文

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

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

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?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

远昼 2025-01-12 05:22:25

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

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

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

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

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

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.

  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 this thread.

  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.

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).

避讳 2025-01-12 05:22:25

来自苹果网站:

如果应用程序的分发证书已过期,则该应用程序将无法运行。
目前,分发证书的有效期为一年,您
可以同时激活两个证书。第二个
证书的目的是提供一个重叠的时期,在此期间
您可以在第一个证书到期之前更新您的应用程序。

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

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.

单身狗的梦 2025-01-12 05:22:25

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

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文