权利不匹配:配置文件问题

Entitlements Do Not Match: Provisioning Profile Issue

使用 Xcode,我正在尝试将我的存档上传到 App Store,我得到:

ERROR ITMS-90163: "Invalid Code Signing Entitlements. The entitlements in your app bundle signature do not match the ones that are contained in the provisioning profile. The bundle contains a key that is not included in the provisioning profile 'aps-environment' in 'Payload/App Name.app/App Name'."

然后下面给出了额外的细节,识别:

The bundle contains a key that is not included in the provisioning profile: 'com.apple.security.application-groups' in Payload/App Name.app/App Name'."

在此版本中,我添加了 'today notification widget'、iMessage 贴纸和 3D Touch 支持。我认为通知数据共享(应用程序组)与我的问题有关。有谁知道如何解决它?

我能够通过重置代码签名来解决这个问题(取消选中,等待 10 秒,再次检查):