每个 iOS Enterprise Provisioning Profiles 都会在 1 年后到期,对吗?在它们过期并且您更新它们之后,您是否需要为所有设备重新安装新的 Provisioning Profile,或者设备是否从 Apple 的证书服务器自动更新?
因此,换句话说,在您分发企业应用程序后,您是否需要每年更新所有设备,或者您是否可以简单地在开发者门户或通过 Xcode 续订证书?
最佳答案
BigDave的回答和我的回答here (正如 Thilo 发布的那样)实际上涵盖了您问题中的所有理由。如果您考虑重新签署并再次分发您的所有应用程序,我只想添加两个新内容,这是一个很大的麻烦。
您不需要您的应用代码来使用新证书重新签名。您可以通过终端执行此操作(如果您有大量应用程序,则可能会创建一个 shell 脚本)。检查this线程。
如果您的企业中分布着大量应用程序,请考虑部署 MDM 服务器。这样您就可以重新签署/更新您的应用程序,并以无线方式将它们推送到已注册的设备上,而用户交互最少。
编辑: 关于过期的配置文件,documentation 状态:
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 企业配置文件到期,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9270989/