管理iOS企业开发人员计划 [英] Manage iOS Enterprise Developer Program

查看:297
本文介绍了管理iOS企业开发人员计划的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们最近注册了iOS企业开发人员计划,以便能够使用内部分发,这大大简化了我们公司内部相当大的应用程序部署。在加入之前,我们已经彻底阅读了程序文档,我们知道新帐户与我们用于AppStore提交的标准帐户完全分开。

We recently enrolled in the iOS Enterprise Developer Program to be able to use in-house distribution, which significantly simplifies the deployment of the apps inside our company which is fairly big. Before joining we have thoroughly read the program documentation and we were aware that the new account would live completely separated from the standard account we use for the AppStore submissions.

我是什么我不确定现在是什么是在开发人员门户网站中组织这两个帐户的最佳方式。我最关心的是bundle标识符,因为我将在Xcode中为每个应用程序处理两个不同的bundle id。我们所有的应用程序都使用iCloud和推送通知,因此不能选择通配符。

What I'm unsure about is now what would be the best way to organize the two accounts in the developer portals. I'm mostly concerned with the bundle identifier since I'll be dealing with two different bundle ids inside Xcode for each application. All of our apps use iCloud and Push notifications so wildcard is not an option.

如何在Xcode中组织这个?您是否创建了两个不同的目标,或者您是否能够使用新的项目配置来管理它? iCloud权利怎么样?

How do you organize this inside Xcode? Do you create two different targets or are you able to manage this with a new Project Configuration? What about iCloud entitlements?

编辑

正如我想要的更新一样明确表示我们正在寻找为内部发布和AppStore提交构建应用的最佳解决方案。

Just as an update I wanted to make clear that we're looking for the best solution to build an app for both In-House distribution and for AppStore submission.

EDIT2

鉴于企业程序不允许您访问可以设置测试用户和产品ID的iTunesConnect,是否真的无法测试InApp购买?

Given that the enterprise program does not grant you access to iTunesConnect, where test users and product ids can be setup, is there really no way to test InApp purchases?

推荐答案

我并不完全清楚您需要什么,但听起来您希望能够为内部构建应用商店应用企业使用。这是正确的吗?

I'm not entirely clear on what you need, but it sounds like you want to be able to build your app store apps for internal enterprise use. Is that correct?

如果您希望能够使用两个不同的包ID构建您的应用程序,您可以创建自定义生成设置,并为您的不同提供不同的值配置。

If you want to be able to build your app with two different bundle IDs you can create a custom build setting, and give it different values for your different configurations.

例如,您可以创建企业配置:

So for example, you could create your Enterprise configuration:

然后转到目标的构建设置并添加用户 - 定义的构建设置:

Then go to your target's build settings and add a user-defined build setting:

为它命名,如 BUNDLE_ID ,如果展开三角形,可以为每个配置赋予不同的值:

Give it a name like BUNDLE_ID, and if you expand the triangle you can give it different values for each configuration:

接下来,打开您的Info.plist文件并输入 $ {BUNDLE_ID} 获取包ID值:

Next, open your Info.plist file and enter ${BUNDLE_ID} for the bundle id value:

使用企业配置进行编译时,您可以使用自定义方案进行编译(或者通过命令行构建过程,如果这是您使用的),将使用相应的包ID。

When you compile using the "Enterprise" configuration, which you can do using a custom scheme (or via the command line build process if that's what you use), the appropriate bundle id will be used.

您还可以配置代码签名/配置文件配置文件同样的方式:

You can also configure the code signing/provisiong profile setting in the same way:

执行此操作后,将根据配置使用正确的推送通知/ iCloud权利。

Once you do this, the correct push notification/iCloud entitlements will be used depending on the configuration.

我们很长一段时间以来,我一直在做这种事情。我们的构建服务器将使用这种技术为每个构建生成我们的应用程序的企业版和应用商店版本。

We've been doing this kind of thing for a long time now. Our build server will generate enterprise and app store versions of our apps for each build, using exactly this technique.

当涉及到供应门户时,您需要配置两个应用ID分别用于推送通知,iCloud等。

When it comes to the provisioning portal, you will need to configure both app IDs separately for push notifications, iCloud, etc.

这意味着推送通知必须单独发送到应用商店和企业版本,因为他们不会共享相同的捆绑包ID或推送通知证书。

This does mean that push notifications must be sent separately to the app store and enterprise versions since they will not share the same bundle ID or push notification certificate.

默认情况下,iCloud存储将完全独立于两个版本。只要权利使用相同的团队ID设置,他们就可以访问同一个iCloud商店(如果您需要)。但如果您有两个单独的开发者帐户,这可能会出现问题。

The iCloud storage by default will be totally separate for the two versions. They may be able to access the same iCloud store (if you need this) as long as the entitlements are set up with the same team ID. But this may be a problem if you have two separate developer accounts.

这篇关于管理iOS企业开发人员计划的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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