Manage iOS Enterprise Developer Program

余生颓废 提交于 2019-12-02 14:42:42

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?

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:

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

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

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:

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.

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

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.

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!