iOS UNNotificationServiceExtension - 如何解决配置文件问题?

iOS UNNotificationServiceExtension - how fix provisioning profiles issue?

我有 Xamarin iOS 应用程序。我为我的应用程序添加了 UNNotificationServiceExtension。现在我收到以下错误:

Your code signing/provisioning profiles are not correctly configured. Probably you have an entitlement 
not supported by your current provisioning profile, or your device is not part of the current 
provisioning profile. Please check the iOS Device Log for details (error: 0xe8008016).

我为我的应用程序和扩展程序使用不同的 ID。我还为每个 ID 创建了单独的配置文件。只有我删除扩展 - 然后我可以签署(部署)我的应用程序。

这是我的标识符示例:

app: com.my.testapp 
ext: com.my.testapp.NotifExt

任何建议 - 我将不胜感激

Your code signing/provisioning profiles are not correctly configured. Probably you have an entitlement not supported by your current provisioning profile, or your device is not part of the current provisioning profile. Please check the iOS Device Log for details (error: 0xe8008016).

当我们更新 IDE 时总是出现错误。实际上,有必要在 VS 和 Xcode 之间保持最新。

此外,该错误也可能是由于您的配置文件缺少您在 Apple 开发者帐户中要求 for.Login 的权利,其中列出了您的证书和配置文件。 Select prov。您正在使用的配置文件。在“Enabled Services”下,确保它列出了您正在使用的服务。

有关错误的更多详细信息,请参阅