如何解决XCode 12.5 缺少权利 com.apple.developer.associated-appclip-app-identifiers
在我将 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.
解决方法
这似乎是 Apple 方面的错误。
您需要做的就是重新生成配置文件。
如果您使用 Automatically Manage Signing
,有一种方法可以欺骗 XCode
为您创建新的个人资料。转至项目目标 > Signing & Capabilities
页面并添加新的 Capability
(例如 Sign in with Apple
)。这将强制重新生成配置文件。之后,您可以删除新添加的 Capability 并上传新构建,而不会出现任何警告。
我遇到了同样的问题。我错过了$(AppIdentifierPrefix)
。
在为我修复的主应用程序的 .entitlement 文件中添加以下内容。
<key>com.apple.developer.associated-appclip-app-identifiers</key>
<array>
<string>$(AppIdentifierPrefix)com.app.appclipbundleid</string>
</array>
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。