如何将带有应用程序组的应用程序上传到苹果商店?

How to upload application with app groups to Apple store?

我使用 App Groups 功能创建了一个带有 Watchkit 扩展的应用程序。现在我想把这个应用程序上传到苹果商店。我喜欢这样:

但是当我尝试存档我的应​​用程序以提交到 Apple Store 时,我收到了这个错误:

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'

我不知道如何解决这个问题,虽然我尝试了一些我知道的方法或搜索 google 但没有成功,请帮助我。

您还创建了 WatchKit Extension 配置文件,并以相同的方式为您的 ios 应用创建和设置。

  • 创建扩展应用程序 ID(例如:com.standardApplication.tictactoe.watchkitApp)

  • 在Extension app id中启用appGroup Capabilities并设置Extension
    应用目标

  • 为扩展应用程序创建配置文件然后设置..

我刚刚就这个 post 回答了这个问题,你可以看看这个: Submitting the Apple Watch app

这就是内容:

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.