iOS:什么是DISTRIBUTION配置文件用于?

Zol*_*tók 13 distribution provisioning app-store ios provisioning-profile

这可能已被问过很多次,但我仍然找不到他们为什么需要的信息.我使用DEVELOPER prov配置文件在我的设备上测试应用程序,这是有道理的.

供应门户网站解释了这样的prov配置文件:

A Provisioning Profile is a collection of digital assets that uniquely ties
 developers and devices to an authorized iOS Development Team and enables
 a device to be used for testing. 
Run Code Online (Sandbox Code Playgroud)

通过这种逻辑,它们仅用于测试,例如不用于分发.我们是否需要在AppStore上部署应用程序?

Pau*_*nne 5

绝对没错。分发配置文件用于提交到App Store。它没有开发配置文件具有的100个设备限制。

从“ 工具工作流程指南”

When you’re ready to share your app for user testing or for general distribution through the 
App Store, you need to create an archive of the app using a distribution provisioning 
profile and send it to app testers or submit it to iTunes Connect. This chapter shows 
how to perform these tasks.
Run Code Online (Sandbox Code Playgroud)

  • 谢谢!我真正不明白的是,为什么Apple需要我们将二进制文件链接到配置文件?我的意思是它已经用证书进行了代码签名,为什么他们还需要这个配置文件? (4认同)

Kry*_*ton 5

分发配置文件可防止攻击者将您的应用程序的修改版本提交到商店 - 只有您持有分发证书的私钥,才能提交和更新您的应用程序。

提交您的应用程序后,embedded.mobileprovision将检查并比较您和您的二进制文件,以确保您是合法作者。embedded.mobileprovision然后丢弃文件,Apple 使用他们自己的证书(默认情况下所有 iDevices 都接受)再次签署该应用程序,以便所有 iDevices 都可以运行它。

当 iDevice 下载应用程序时,可执行二进制文件随后会使用与该设备关联的加密密钥进行加密。在运行时,只有该设备才能解密可执行二进制文件并运行它。