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

查看:166
本文介绍了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并进行验证.之后,您也应该能够在签名身份"菜单中选择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天全站免登陆