Apple Watch bundles consist of three components - a host app running on your iOS device, a watch extension which takes care of the communication between the iOS device and the Apple Watch and a watch app running on the Apple Watch. You must configure an App ID and a provisioning profile for each component. The provisioning profiles must be of the same type and must share the same certificate.
This article provides guidelines for obtaining the provisioning files needed to re-sign an Apple Watch bundle in AppManager.
To run an Apple Watch bundle on an iOS device, you need to code sign it. One of the files that you need for signing it is a
P12 certificate file. The entire process of obtaining it is described in this article: Obtaining a P12 Certificate.
Each component of an Apple Watch bundle must have a unique, explicit App ID which complies with the following requirements.
- The App ID for the host app must be a reverse-domain name string. For example,
- The App ID for the watch extension must be a reverse-domain name string consisting of the App ID of the host app and the
watchkitextensionsuffix. For example,
- The App ID for the watch app must be a reverse-domain name string consisting of the App ID of the host app and the
watchkitappsuffix. For example,
- All App IDs must belong to the same App Group. The App ID for the App Group must be a reverse-domain name string consisting of the App ID of the host app and the group prefix. For example,
- All App IDs must be explicit.
The entire process of registering an App ID for each component of the Apple Watch bundle is described here: Register an App ID.
When using Development and Ad Hoc provisioning profiles, based on their target bundle component, the provisioning profiles must include the Apple Watch or the paired iPhone on which you want to test the bundle. To include a device in a provisioning profile, you need to register it in the iOS Dev Center.
The process of registering iPhone and Apple Watch devices in the iOS Dev Center is described here: Register Apple Watch and iPhone for Development and Distribution.
There are four types of provisioning profiles—Development, App Store, Ad Hoc, In-house. All three provisioning profiles for the Apple Watch bundle must be of the same type. In AppManager, you can use Development, Ad Hoc and In-house profiles. App Store provisioning profiles are used only for apps uploaded in the Apple App Store. You can find instructions for creating the provisioning profile of your preference in the following articles:
- Create Development Provisioning Profiles
- Create Ad Hoc Distribution Provisioning Profiles
- Create In-House Distribution Provisioning Profiles