用于内部开发的 IPA 文件

IPA file for In-house development

我不清楚,内部模型分布。我需要为公司员工分发应用程序。我使用具有内部模型的 Apple Enterprise Developer Program 生成 IPA 文件。我为此使用 Xcode,所以我猜 IPA 文件可以在 Apple Developer 页面上的注册设备上分发。

如果有新员工,公司在 Apple Developer 页面 Devices 部分注册这名新员工。

  1. 是否需要在 XCode 重新生成 IPA 文件?
  2. 我可以使用旧的 IPA 文件为他们分发应用程序吗?
  3. 我可以使用 diawi 分发 IPA 文件吗?
  4. 内部 IPA 文件需要一年才能过期。在那之后,将强制生成另一个带有 XCode?
  5. 的 IPA 文件

我的问题是为了避免使用 Xcode 更多的初始 IPA 生成,因为我的客户没有源代码项目。

提前致谢。

如果该应用已与 In-House provisioning profile, you don't need to register new devices. You can just use Diawi, any Mobile Device Management system or a website to distribute the app. Note that if this is the first app the user installs from this Enterprise program, and it is an iOS 9 device, he/she has to trust 您的企业签署,请通过设置应用 -> 常规 -> 设备管理。

所以让我逐个回答这些问题。

  1. 是否需要在 XCode 重新生成 IPA 文件?

No, if you are using an enterprise distribution profile, you can distribute the IPA and it will be able to be installed on any device, as long as the certificate has not been revoked and the cert and profile have not yet expired. The profile is set to expire 1 year from when it is generated, and the cert is set to expire 3 years from when it is generated.

  1. 我可以使用旧的 IPA 文件为他们分发应用程序吗?

Yes, again, if correctly building with the enterprise distribution profile, you can give new employess the existing IPA and they will be able to install it. They will need to trust the profile, by going to Settings->General->Profiles & Device Management. There you will see your company name under "ENTERPRISE APPS". Tap that entry and trust the developer.

  1. 我可以使用 diawi 分发 IPA 文件吗?

Yes you can.

  1. 内部 IPA 文件需要一年才能过期。在那之后,将强制生成另一个带有 XCode?
  2. 的 IPA 文件

Technically no. When the profile expires, the only thing you need to do is get the new provisioning profile on the device that need to run the app. This is because the app doesn't necessarily care the profile that was installed when you installed the app. It just cares whether there is a valid provisioning profile on the device that matches the bundle ID of the app. This profile installation can be done with Mobile Device Management (MDM), or by emailing the profile to all the users (clunky), OR by building the app again in Xcode with the new profile and redistributing to the users. If you don't have MDM, or tech-savvy users, your best bet is to rebuild and redistribute. To make this easy on yourself, but a self-update check into your apps that prompts the user when a new version is available and automatically downloads the new version. That is how we do it. Just make sure you publish the update long enough before the old profile expires so that users have a chance to launch the app. After the expiration date, the app will simply crash on launch.

Certificate expiration is a different matter. For that, you do need to re-build the app and redistribute. An app that's been signed with an expired signing identity (tied to cert) will not run after the expiration date, so you need to build a new binary that is signed with a valid cert.