【问题标题】:Xamarin forms : Could not find any available provisioning profiles for IOSXamarin 表单:找不到任何可用的 IOS 配置文件
【发布时间】:2021-04-01 21:47:30
【问题描述】:

经过大量时间寻找解决我问题的方法后,我向您寻求帮助。

当我尝试在我的 Xamarin Forms 项目中使用 SecureStorage 时,在 android 上一切正常,但是当我在 IOS 模拟器上编译时,出现以下错误消息:“添加记录时出错:MissingEntitlement”。

我找到了这个错误的解决方案,我只是按照微软文档:https://docs.microsoft.com/fr-fr/xamarin/essentials/secure-storage?tabs=ios

Keychain enable

Signature of bundle ios

现在,还有一条错误消息:找不到任何可用的 IOS 配置文件。

然后,我创建了一个 Apple Developer 帐户,转到我已安装的 Mac 并启动 Xcode,并将我的 Apple Developer 帐户连接到 Xcode。但该错误在 Visual Studio for Windows 上仍然存在。

我已经尝试了所有找到的解决方案,但没有任何效果。 我真的不知道该怎么办了。

【问题讨论】:

  • 您需要在 VS for windows 上登录您的苹果帐户。 工具 -> 选项 -> Xamarin ->Apple 帐户
  • 我已经尝试登录 VS,但是我有一个“安装 fastlane”按钮,当我点击该按钮时出现错误消息:“下载 fastlane 时出错。再试一次。”

标签: ios xamarin profile simulator provisioning


【解决方案1】:

即使没有 Apple Dev 帐户,您也可以在 iOS 模拟器上使用 SecureStorage。为此,您需要与您的模拟器构建相关的有效权利。我已经在我的类似回复here 和官方Microsoft docs 中描述了这一点:

  1. 修改您的自定义 Entitlements.plist 以包含钥匙串访问组:
<key>keychain-access-groups</key>
<array>
     <string>$(AppIdentifierPrefix)xxx.xxx.xxx</string>
</array>
  1. 将权利应用于项目设置中的 iOS 模拟器配置:

【讨论】:

  • 我将自定义权利修改为 $(AppIdentifierPrefix)com.companyname.AppliMobileDepot,并修改了我的项目 Bundle Signing,如图所示,但这并不能解决问题。我能做什么?
  • @oguzhan.cblt 请在您的问题中提供该配置的屏幕截图,我将对其进行审核
猜你喜欢
  • 2018-09-12
  • 2018-09-20
  • 2018-02-17
  • 2018-12-25
  • 1970-01-01
  • 1970-01-01
  • 2021-01-28
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多