我在 Entitlement plist 中为我的移动应用程序添加了钥匙串(keychain)支持,但无法在 xamarin 中准备发布版本
下面是我在 iOS 项目属性中添加 Entitlement 后遇到的错误
Error: error MT1006: Could not install the application '/Users/MyUser/Library/Caches/Xamarin/mtbs/builds/ValuD.MobilD.IWMS.iOS/251d0141d24521bb61666d94057028a9/bin/iPhone/Release/ProjectNamespace.app' on the device 'iPhone 6s Plus': 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.
请查找附加的屏幕截图以获得更多帮助。
最佳答案
**
在这个错误上付出了很多努力并最终解决了它 ;) .. 伙计们分享我的答案,这是 100% 的工作......相信我,你会发现它非常有用。
**
每当您需要将授权 plist 添加为构建的一部分时,它必须在自定义授权部分中提供,您可以在我们选择供应配置文件的 iOS 项目属性中找到它。
要为您的配置文件找到合适的授权 Plist,只需按照以下步骤完成:-
- 登录您的 developer.apple.com 门户网站下载配置文件
- 在编辑文本 (MAC) 或记事本 (windows) 中打开配置文件并查找关键权利
- 在上面的 TAG 下方,您会发现 Entitlement Plist 代码包含在 TAG 中,如下例所示:-
例如:-
<dict> <key> keychain-access-groups </key> <array> </dict>
将TAG代码复制并替换到你的plist中
完成
享受...:)
关于c# - 我在 Entitlement plist 中为我的移动应用程序添加了钥匙串(keychain)支持但无法在 xamarin 中准备发布版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49820363/