Xamarin/XCode 注册配置文件错误

Xamarin/XCode register provisioning profile error

我有以下问题。我正在创建 Xamarin iOS 应用程序(by vs for max 2017)并且在 building 期间我有这个错误:

No installed provisioning profiles match the installed iOS signing identities.

据我所知,这个问题的解决方案与 xCode 创建配置文件有关。但是当我尝试通过 xCode 生成配置文件(名称为 testtesyui)时,我看到了这个错误:

Failed to create provisioning profile. There are no devices registered in your account on the developer website. Plug in and select a device to have Xcode register it.

No profiles for 'testtesyui' were found Xcode couldn't find any iOS App Development provisioning profiles matching 'testtesyui'.

我没有任何真正的 iOS 设备,我打算使用 iOS 模拟器。 下面,我列出了来自 xCode ui 的截图(我隐藏了个人数据): xCode account settings, xCode general settings

有人可以帮助解决这个问题吗?如果您需要更多详细信息,请告诉我。 谢谢。

正在更新: 我在 vs 中为 mac 打开了 info.plist 文件,我看到了以下内容: info.plist content。 我试图登录我的苹果账户,但最后我看到了这条信息: signin。结果,我还是不能select我的团队。

请问我哪里错了,请指点一下好吗?

You need to enable automatic signing to work with simulator

一旦您确定您的 Apple ID 已连接到 Visual Studio Mac,您就可以启用自动签名了

步骤

  1. 在您的 iOS 项目中,打开 Info.plist 文件。在 Signing section、select 团队下拉列表中您的团队:
  2. 然后,select 自动管理签名复选框。

更多信息here

我的问题出在解决方案配置中。由于某种原因,我尝试在 Debug|iPhone 模式下构建我的应用程序,而不是在 Debug|iPhoneSimulator 模式下。 当我切换到 Debug|iPhoneSimulator 模式时,构建工作正常。