11

将 Xcode 版本更新到 12.5 后,App Clip 出现问题。

在 App Store Connect 上传期间,我收到警告:

TMS-90876: Missing entitlement - This app contains an app clip. The entitlement 'com.apple.developer.associated-appclip-app-identifiers' should be present and include the value of the app clip's application identifier.

没有信息如何添加此权利

我尝试将“com.apple.developer.associated-appclip-app-identifiers”键添加到权利文件

<key>com.apple.developer.associated-appclip-app-identifiers</key>
<array>
    <string>{my_clip_bundle_id}</string>
</array>

但出现错误

Provisioning profile "iOS Team Provisioning Profile: {my_bundle_id}" doesn't match the entitlements file's value for the com.apple.developer.associated-appclip-app-identifiers entitlement.

4

2 回答 2

5

这似乎是苹果方面的一个错误。

您需要做的就是重新生成配置文件。

如果您正在使用Automatically Manage Signing,有一种方法可以XCode为您创建一个新的配置文件。转到项目目标 >Signing & Capabilities页面并添加一个新的Capability(例如Sign in with Apple)。这将强制重新生成配置文件。之后,您可以删除新添加的功能并上传新版本而不会出现任何警告。

于 2021-07-15T15:11:13.227 回答
2

我面临同样的问题。我失踪了$(AppIdentifierPrefix)

在为我修复的主应用程序的 .entitlement 文件中添加以下内容。

<key>com.apple.developer.associated-appclip-app-identifiers</key>
<array>
     <string>$(AppIdentifierPrefix)com.app.appclipbundleid</string>
</array>
于 2021-06-29T13:26:20.710 回答