XCode12.5缺少权利com.apple.developer.associate-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.associate-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.
回答
这似乎是苹果方面的一个错误。
您需要做的就是重新生成配置文件。
如果您正在使用Automatically Manage Signing,有一种方法可以XCode为您创建新的配置文件。转到 Project Target >Signing & Capabilities页面并添加一个新的Capability(例如Sign in with Apple)。这将强制重新生成配置文件。之后,您可以删除新添加的 Capability 并上传新构建,而不会发出任何警告。