为什么不使用开发配置而不是临时配置? [英] Why not use development provisioning instead of ad hoc?

查看:23
本文介绍了为什么不使用开发配置而不是临时配置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的印象是,当您使用开发配置文件构建应用时,只有指定的开发人员才能将该构建部署到手机上.

I was under the impression that when you use a development provisioning profile for a build of an app, only the specified developers can deploy that build to a phone.

但我只是使用 Xcode Organizer 将使用开发配置文件的构建部署到手机上,即使我不是该配置文件的有效开发人员之一.我的一位同事甚至没有安装 Xcode,他使用 iTunes 在他的手机上做了同样的事情.

在这种情况下,为什么不使用开发配置文件将您的应用分发到例如您的 QA 团队,而不是临时分发?

In that case, why not use a development provisioning profile for distributing your app to e.g. your QA team, instead of ad hoc distribution?

请在回答前仔细阅读粗体部分.我不是在问一个基本的这是如何工作的"问题.我做了很多开发、临时和应用商店构建,现在我发现我似乎做出了一些错误的假设.

Please read the part in bold carefully before answering. I'm not asking a basic "how does this work" question. I've made a lot of development, ad hoc, and app store builds, and now I find that I seem to have made some wrong assumptions.

推荐答案

在一种情况下,您需要一个 Ad Hoc 配置文件,这就是您想要测试推送通知的时候.

There's one situation in which you need an Ad Hoc profile, and that's when you want to test Push Notifications.

如果您在开发供应配置文件上测试推送通知,则需要使用开发推送通知证书发送您的推送通知,以便与 Apple 的沙盒 APNS 服务器建立 SSL 连接.

If you test Push Notifications on a Development Provisioning Profile, your push notifications need to be sent using the Development Push Notification Certificate for your SSL connections to Apple's sandbox APNS server.

如果您想使用生产推送通知证书和实时 APNS 服务器测试推送通知,则必须使用分发证书和 Ad Hoc 配置文件(包括执行 Entitlement.plist如果您只使用 Developer Provisioning Profiles,则通常可以跳过此部分.

If you want to test Push Notifications using your Production Push Notification Certificate and the live APNS servers, you'll have to deploy your app to a device using a Distribution Certificate and Ad Hoc Provisioning Profile (which includes doing the Entitlement.plist retardedness which you can ordinarily skip if you were only using Developer Provisioning Profiles).

另请注意,当您使用 Ad Hoc 配置文件进行部署时,您的设备令牌将与您在使用开发配置文件时使用的令牌不同.这也是测试 APN 的推荐方法,因为在 Ad Hoc 构建和 AppStore 上的最终实时部署之间不需要进行后端更改.

Also note that when you deploy using an Ad Hoc profile, your device token will be different from the one you use when you're using the development profile. Also this the recommended way to test APN because there's no back end changes that need to be made between the Ad Hoc build and the final live deployment on the AppStore.

这篇关于为什么不使用开发配置而不是临时配置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆