XCode 12.5 缺少权利 com.apple.developer.associated-appclip-app-identifiers

时间:2021-05-13 15:02:00

标签: ios swift xcode apple-appclips

在我将 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.related-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.

2 个答案:

答案 0 :(得分:4)

这似乎是 Apple 方面的错误。

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

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

答案 1 :(得分:0)

我遇到了同样的问题。我错过了$(AppIdentifierPrefix)

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

<key>com.apple.developer.associated-appclip-app-identifiers</key>
<array>
     <string>$(AppIdentifierPrefix)com.app.appclipbundleid</string>
</array>