Hieu Duc Pham
Hieu Duc Pham

Reputation: 1074

How to upload application with app groups to Apple store?

I create an app with Watchkit extension using App Groups function. Now I want to upload this app to Apple store. I do like this:

But when I tried to archive my app for submit to Apple Store I got this error:

Check dependencies

Code Sign error: No matching provisioning profiles found: None of the valid provisioning profiles allowed the specified entitlements: com.apple.security.application-groups.
CodeSign error: code signing is required for product type 'WatchKit Extension' in SDK 'iOS 8.3'

I don't know how to fix that, although I tried some method that I know or search google but no luck, please help me.

Upvotes: 3

Views: 2195

Answers (2)

Lucas Huang
Lucas Huang

Reputation: 4016

I just answered this question on this post, you can probably check this out: Submitting the Apple Watch app

That's the content here:

Because this is a very special piece of application, and you can not just simply submit the application like the way you used to do.

The differences are the total number of provisioning profile. Without WatchKitExtension, a provisioning profile is enough. However, you have to apply for three different application identifiers and three different provisioning profile in order to let the Xcode to detect you actually have your phone app, watch app and watch extension.

So, what you need to do is really simple. Just create two more app identifiers based on the bundle identifier you saw from the WatchApp target and WatchExtension target. Then, create two more provisioning profile. Last step, import them into your Xcode. And you are good to go.

Upvotes: 0

Rahul Mayani
Rahul Mayani

Reputation: 3831

You have a also create WatchKit Extension provisioning profiles & create and set the same way to your ios app.

  • create Extension app id (ex:com.standardApplication.tictactoe.watchkitApp)

  • Enable appGroup Capabilities in Extension app id and set Extension
    app target

  • Create Provisioning Profiles for Extension app and then set..

Upvotes: 1

Related Questions