Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error with Provisioning Profiles (no matches) in Xamarin for Visual Studio 2015

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

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

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.

screenshot shows matching provisioning profiles on mac and VS

like image 739
sqlt Avatar asked Nov 04 '16 18:11

sqlt


1 Answers

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:

  • No certificate (signing identity) that can be used with that provision
  • A previous certificate has expired and can't be used now
  • There is a certificate, but it does not have the private key

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

iPhone Distribution: My Name

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.

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.

Hope that helps!

like image 147
therealjohn Avatar answered Nov 15 '22 05:11

therealjohn