Search code examples
xcodeprovisioning-profilewatchkitapple-watch

WatchKit Upload


I am trying to submit my WatchKit app t iTunesConnect. I click "Archive" and then validate and I am shown the message below. I have created an App Id for the app, extension and WatchKit App as well as distribution profiles. Where am I going wrong?

Thanks

Error


Solution

  • To properly sign a watch app, you need three different App IDs and each App ID needs a provision profile.

    1. Go to Developer Member Center

    2. Add/Edit the three App IDs:

      • One for your main App bundle, you may need to add the entitlements you need, like App Groups, Keychain Access Group.
      • One for your watchkit extension bundle, you may need to add the entitlements you need.
      • One for your watchkit app bundle. No entitlements needed.
    3. Delete the distribution provision profiles for the three App IDs, if they already exists.

    4. Add three new distribution provision profiles for the three App IDs.

    5. Now go back to Xcode, open Preference and go to Accounts.

    6. Choose your Apple ID, click View Details on the bottom right.

    7. Click the refresh button on the bottom left, wait for the list of provision profiles to change.

    8. In Build Settings for all your targets, configure the Code Signing part as below.

    Code Signing

    1. Try Archive again.

    2. When you submit your app, XCode will ask you to confirm the provision profile it uses to sign each of your bundles. You need to be sure that the provision profile names match those you configured in Developer Member Center.