问题
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:
- Create App ID for my App (ex:com.standardApplication.tictactoe)
Enable appGroup in Capabilities in Xcode for IOS app and Watchkit app using identifier: "group.com.standardApplication.ticTacToe"
Create Provisioning Profiles for Development and Distribution on Certificates, Identifiers & Profiles center with my App ID that I create before. Download it and double klick to add it to my Xcode.
After that I go to Itune connect to make a new App with my App ID and info...
- After that in Xcode and build Setting, I changed the code signing for all targets(iOS Target and Watchkit target) 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.
回答1:
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 targetCreate Provisioning Profiles for Extension app and then set..
回答2:
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.
来源:https://stackoverflow.com/questions/30022915/how-to-upload-application-with-app-groups-to-apple-store