【问题标题】:XCode 12.5 Missing entitlement com.apple.developer.associated-appclip-app-identifiersXCode 12.5 缺少权利 com.apple.developer.associated-appclip-app-identifiers
【发布时间】:2021-08-03 20:57:01
【问题描述】:

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

【问题讨论】:

  • 权利应该是自动生成的。这就是我所做的:guide
  • 确实如此,并且一直工作到 Xcode 12.5。我在您的示例中看到没有 com.apple.developer.associated-appclip-app-identifiers 的迹象但是您是否尝试将应用程序上传到 TestFlight ?只有上传完成后才会出现警告
  • 有趣...其他一些人是also getting the same problem。可能是 Xcode 12.5 的错误。
  • 我昨天在 xcode 12.5 中突然遇到了同样的问题,尽管一周前发布了一个版本。我们没有应用剪辑,也没有尝试添加应用剪辑,所以这很神秘。
  • 您解决了这个问题吗?我仍然无法使用应用剪辑

标签: ios swift xcode apple-appclips


【解决方案1】:

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

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

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

【讨论】:

  • 在我的情况下它不起作用,即使我刚刚重新生成了它抱怨的配置文件不包含该权利。我错过了什么吗?
【解决方案2】:

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

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

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

【讨论】:

    猜你喜欢
    • 2014-03-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-11-25
    • 1970-01-01
    • 1970-01-01
    • 2015-06-23
    相关资源
    最近更新 更多