Xamarin for Visual Studio 2015 中的配置文件错误(无匹配) [英] Error with Provisioning Profiles (no matches) in Xamarin for Visual Studio 2015

查看:20
本文介绍了Xamarin for Visual Studio 2015 中的配置文件错误(无匹配)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的 iPhone 上构建/运行我的 Xamarin.Forms (PCL) 以进行测试和调试.我突然收到以下错误:

I am trying to build/run my Xamarin.Forms (PCL) on my iPhone for testing and debugging. I'm suddenly getting the following error:

没有 iOS 签名身份与指定的配置文件匹配...

No iOS signing identities match the specified provisioning profile...

如下图所示,它正在寻找的配置文件可在 Mac 上的正确位置找到.我清除了所有其他配置文件(分发等),并从一个配置文件开始清理.我仍然收到错误.我尝试过更改应用标识符并返回、创建新配置文件、清理/重建包,并重新启动 VS、Mac 和 PC.

As you can see from the image below, the profile it's looking for is available on the Mac in the right spot. I cleared out all my other profiles (distribution,et al), and started clean with a single profile. I'm still getting the error. I've tried changing app identifiers and back, creating a new profile, cleaning/rebuilding package, and restarting VS, Mac, and PC.

任何帮助/协助将不胜感激.我在这里完全不知所措,正在尝试为应用程序修复一些错误.

Any help/assistance would be greatly appreciated. I'm at a total loss here, and am trying to get some bug fixes out for the app.

推荐答案

这个错误是在谈论签名身份,而不是规定.您的 Mac 可能存在以下一个或多个错误:

This error is talking about the signing identity, not the provision. It's likely that you have one or more of the following errors on your Mac:

  • 没有可用于该条款的证书(签名身份)
  • 以前的证书已过期,现在无法使用
  • 有证书,但没有私钥

打开 Keychain.app 并在证书"菜单下查看.你应该有类似的东西:

Open up Keychain.app and look under the Certificates menu. You should have something like:

iPhone Distribution: My Name

它也可能显示 iPhone Developer,具体取决于它是什么类型的证书.如果您看到您希望使用该条款的那个,请检查它是否 a.) 未过期.它会变红并说已过期.b.) 有公钥和私钥.您应该能够将其展开以查看两者.

It might also say iPhone Developer, depending on what type of certificate it is. If you see the one you expect to work with that provision, check that it's a.) Not expired. It will be red and say expired. b.) Has a public and private key. You should be able to expand it to see both.

如果其中任何一个是问题,您将必须从 http://developer 重新创建一个新的签名身份(证书).apple.com(前往会员中心 -> 证书).然后,您需要编辑其中的规定以适用于该新创建的证书并重新下载它.下载两个新文件后,单击它们打开它们,然后再次检查 Keychain.app 并进行验证.您应该也可以在 Signing Identity 菜单中选择它 VS 之后(重新启动 VS),然后也可以选择正确的供应.

If any of those is the issue, you will have to recreate a new signing identity (certificate) from http://developer.apple.com (go to the Member Center -> Certificates). Then, you need to edit the provision in there to work for that newly created certificate and re-download it. After downloading both new files, click on them to open them and then check Keychain.app again and verify. You should be able to select it VS afterwards (Restart VS) too in the Signing Identity menu, and then the correct provision will be selectable too.

希望有帮助!

这篇关于Xamarin for Visual Studio 2015 中的配置文件错误(无匹配)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆