简体   繁体   English

App Store分发配置文件与开发配置文件

[英]App Store Distribution Provisioning Profile vs Development Provisioning Profile

I've got two provisioning profiles: App Store Distribution Provisioning Profile and Development Provisioning Profile. 我有两个配置文件:App Store Distribution Provisioning Profile和Development Provisioning Profile。 The question is rather easy but I need a clarification. 问题很简单,但我需要澄清一下。 I guess that the code signed with the App Store Distribution Provisioning Profile won't run on the devices I normally use for development. 我想用App Store Distribution Provisioning Profile签名的代码不会在我通常用于开发的设备上运行。 Am I right? 我对吗? And is there any possibility to run this code on my devices? 是否有可能在我的设备上运行此代码?

PS I know there are similar questions. PS我知道有类似的问题。 However, no one has asked whether it is possible to run code signed with the App Store Distribution Provisioning Profile on the devices normally used for development. 但是,没有人询问是否可以在通常用于开发的设备上运行使用App Store Distribution Provisioning Profile签名的代码。

The reason why I am asking is that I am integrating Push Notifications with Parse.com (which is in beta) and I'd like to test if their service works well in the production environment. 我之所以要问的是我正在将推送通知与Parse.com(处于测试阶段)集成,我想测试他们的服务是否在生产环境中运行良好。

The Answer (thanks to Kheldar): 答案 (感谢Kheldar):

App Store provisioning profiles do not allow for a distribution built application to be installed on an Apple device. App Store配置文件不允许在Apple设备上安装分发构建的应用程序。 To install your distribution ready application on a device, you must create an Ad Hoc provisioning profile. 要在设备上安装分发就绪应用程序,您必须创建一个Ad Hoc配置文件。

It can be also checked in the Organizer: 它也可以在管理器中检查:

The development profile serves for developing and testing on your devices. 开发配置文件用于在您的设备上进行开发和测试。

The distribution profile serves for making your IPA file, sign it and send it to Apple. 分发配置文件用于制作您的IPA文件,签名并将其发送给Apple。

It is clearly marked that you cannot run it on devices, unless you have an Ad Hoc distribution profile: 除非您有Ad Hoc分发配置文件,否则清楚地标记为您无法在设备上运行它:

App Store provisioning profiles do not allow for a distribution built application to be installed on an Apple device. App Store配置文件不允许在Apple设备上安装分发构建的应用程序。 To install your distribution ready application on a device, you must create an Ad Hoc provisioning profile. 要在设备上安装分发就绪应用程序,您必须创建一个Ad Hoc配置文件。

Back in 2014 when this question was asked, and perhaps a bit later, it was perfectly possible to install an application signed with an AppStore profile on device, provided that the matching AdHoc profile was already installed. 早在2014年,当问到这个问题时,或许稍后,如果已经安装了匹配的AdHoc配置文件,完全可以在设备上安装使用AppStore配置文件签名的应用程序。 This subsequently changed, and it is no longer possible (2019) to install an app signed with an AppStore profile except via download from Apple (eg via TestFlight). 随后更改,并且不再可能(2019)安装使用AppStore配置文件签名的应用程序,除非从Apple下载(例如通过TestFlight)。

另一种解决方法是使用分发证书将ipa文件上传到itunesconnect,并使用TestFlight确认推送通知。

When you build and run the code using the distribution profile, it will get installed on the device, but will not allow you to debug it. 使用分发配置文件构建和运行代码时,它将安装在设备上,但不允许您对其进行调试。 Pls note that the device must be a valid one included in the profile. 请注意,设备必须是配置文件中包含的有效设备。

it is not possible to code signed with the App Store Distribution Provisioning Profile on the devices. 无法在设备上使用App Store Distribution Provisioning Profile进行代码签名。 If it is App Store Distribution Provisioning Profile it is possible to install in devices by dragging to iTunes. 如果是App Store Distribution Provisioning Profile,则可以通过拖动到iTunes来安装设备。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM