English
English
简体中文
Contact Us
Register
Log In
layoutIndex

Configure iOS Certificates for Watch

Last Updated on : 2022-09-23 11:55:38

This topic describes how to configure iOS certificates for your OEM app. These certificates are required for the app to run on Apple Watch.

Preparation

Log in to the Apple Developer platform and select Certificates, Identifiers & Profiles.

Configure iOS Certificates for Watch

Step 1: Create app group

If an app group already exists in your account and the value of Group ID is group.Bundle ID, you can skip this step and proceed to Step 2: Create app ID.

To allow your app to run on Apple Watch, you must create an app group for the existing main app.

  1. Go to the Identifiers page and click +. Select App Groups, and in the top right corner of the page, click Continue.

    Configure iOS Certificates for Watch Configure iOS Certificates for Watch
  2. Enter the following information and click Continue.

    • Description: Enter a name for the app group.

    • ID: Enter the bundle ID of the main app, in the following format: group.Bundle ID. Format of Bundle ID: com.xxx.xxx.

      Configure iOS Certificates for Watch
  3. Confirm the information about the app group. To rectify any error, click Back and modify the information. After all information is confirmed, click Register.

    Configure iOS Certificates for Watch
  4. Now, the app group is created.

Step 2: Create app ID

  1. Go to the Identifiers page and click +. Select App IDs, and in the top right corner of the page, click Continue.

    Configure iOS Certificates for Watch Configure iOS Certificates for Watch
  2. Enter the following information:

    • Description: Enter the certificate name for the app to run on Watch.

    • Bundle ID: Enter the Watch bundle ID, in the format of Bundle ID of main app.watchkitapp.

      After you enter the preceding information, you must select App Groups in the Capabilities section and then click Continue.

      Configure iOS Certificates for Watch

  3. Bind the app ID with the app group. Perform the following steps:

    Click the newly-created app ID, find Capabilities > App Groups, click Edit, select the app group for Watch created in Step 1, and then click Continue.

    Configure iOS Certificates for Watch

    Configure iOS Certificates for Watch

Step 3: Create extension certificate ID

  1. Go to the Identifiers page and click +. Select App IDs, and in the top right corner of the page, click Continue.

    Configure iOS Certificates for Watch Configure iOS Certificates for Watch
  2. Enter the following information:

    • Description: Enter the extension certificate name for the app to run on Watch.

    • Bundle ID: Enter the bundle ID for the extension certificate, in the format of Bundle ID of main app.watchkitapp.watchkitextension.

      After you enter the preceding information, you must select App Groups in the Capabilities section and then click Continue.

      Configure iOS Certificates for Watch

      Configure iOS Certificates for Watch
  3. Bind the extension certificate ID with the app group. Perform the following steps:

    Click the newly-created extension certificate ID, find Capabilities > App Groups, click Edit, select the app group for Watch created in Step 1, and then click Continue.

    Configure iOS Certificates for Watch

    Configure iOS Certificates for Watch

Step 4: Generate .mobileprovision certificate

  1. Go to the Profiles page and click +.

    Configure iOS Certificates for Watch
  2. In the Distribution section, select App Store and click Continue.

    Configure iOS Certificates for Watch
  3. From the App ID drop-down list, select the app ID in the format of Bundle ID of main app.watchkitapp, and click Continue.

    Configure iOS Certificates for Watch
  4. Select the distribution certificate for the main app and click Continue.

    In certain cases, multiple certificates with the same name might appear. You can distinguish these certificates by their expiration time, and select the one that matches the actual expiration time of the distribution certificate.

    Configure iOS Certificates for Watch
  5. In the Provisioning Profile Name field, enter the name of the .mobileprovision certificate for Watch.

    Configure iOS Certificates for Watch
  6. Now, the .mobileprovision certificate is configured for Watch. Click Download to download the certificate file, and submit a ticket to send this file to Tuya.

    Configure iOS Certificates for Watch

Step 5: Generate .mobileprovision extension certificate

  1. Go to the Profiles page and click +.

    Configure iOS Certificates for Watch
  2. In the Distribution section, select App Store and click Continue.

    Configure iOS Certificates for Watch
  3. From the App ID drop-down list, select the app ID in the format of Bundle ID of main app.watchkitapp.watchkitextension, and click Continue.

    Configure iOS Certificates for Watch
  4. Select the distribution certificate for the main app and click Continue.

    In certain cases, multiple certificates with the same name might appear. You can distinguish these certificates by their expiration time, and select the one that matches the actual expiration time of the distribution certificate.

    Configure iOS Certificates for Watch
  5. In the Provisioning Profile Name field, enter the name of the .mobileprovision extension certificate for Watch.

    Configure iOS Certificates for Watch
  6. Now, the .mobileprovision extension certificate is configured. Click Download to download the certificate file, and submit a ticket to send this file to Tuya.

    Configure iOS Certificates for Watch
  7. Tuya will help you upload the .mobileprovision certificate for Watch generated in Step 4 and the .mobileprovision extension certificate for Watch generated in Step 5 to the Tuya IoT Development Platform. After they are uploaded, you can rebuild the app to make the configuration take effect.