简体   繁体   English

Xamarin / XCode寄存器设置配置文件错误

[英]Xamarin/XCode register provisioning profile error

I have the following problem. 我有以下问题。 I'm creating Xamarin iOS application(by vs for max 2017) and during a building I have this error: 我正在创建Xamarin iOS应用程序(由vs for max 2017),在建筑过程中出现此错误:

No installed provisioning profiles match the installed iOS signing identities. 没有已安装的配置文件与已安装的iOS签名身份匹配。

As far as I can understand the solution of this problem is connected with creating provisioning profile by xCode. 据我了解,此问题的解决方案与通过xCode创建配置文件有关。 But when I try to generate provisioning profile(with name testtesyui) by xCode I see this error: 但是,当我尝试通过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. 插入并选择要进行Xcode注册的设备。

No profiles for 'testtesyui' were found Xcode couldn't find any iOS App Development provisioning profiles matching 'testtesyui'. 找不到“ testtesyui”的配置文件Xcode找不到与“ testtesyui”匹配的任何iOS应用开发配置文件。

I don't have any real iOS device and I'm planning to use iOS emulator. 我没有任何真正的iOS设备,并且打算使用iOS模拟器。 Below, I listed screnshoots from xCode ui(I've hid personal data): xCode account settings , xCode general settings 下面,我列出了来自xCode ui(我已经隐藏了个人数据)的快照: xCode帐户设置xCode常规设置

Could some one help with this problem? 有人可以帮助解决这个问题吗? Please let me know if you need more details. 如果您需要更多详细信息,请告诉我。 Thanks. 谢谢。

Updating : I opened info.plist file in vs for mac and I saw the following: info.plist content . 更新 :我在vs for mac中打开了info.plist文件,并且看到了以下内容info.plist content I've tried to sign in in my apple account, but in the end I saw this message: signin . 我尝试登录我的Apple帐户,但最后我看到了以下消息: signin As a result, I still cannot select my team. 结果,我仍然无法选择我的团队。

Could you please give advice where am I wrong? 请问我在哪里错了?

my problem was in a solution configuration. 我的问题是在解决方案配置中。 By some reason, I tryed to build my application in Debug|iPhone mode, not in Debug|iPhoneSimulator mode. 由于某种原因,我试图以Debug | iPhone模式而不是Debug | iPhoneSimulator模式构建应用程序。 When I switched to Debug|iPhoneSimulator mode, then the build works fine. 当我切换到Debug | iPhoneSimulator模式时,构建工作正常。

You need to enable automatic signing to work with simulator 您需要启用自动签名才能与模拟器一起使用

Once you've ensured you have an Apple ID connected to Visual Studio for Mac, you're ready to enable Automatic Signing 确保已将Apple ID连接到Visual Studio for Mac后,就可以启用自动签名了。

Steps 脚步

  1. In your iOS project, open the Info.plist file. 在您的iOS项目中,打开Info.plist文件。 In the Signing section , select your team from the Team dropdown: 在“ Signing section ,从“团队”下拉列表中选择您的团队:
  2. Then, select the Automatically manage signing checkbox. 然后,选择“自动管理签名”复选框。

More Info here 更多信息在这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM