Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode5 "No matching provisioning profiles found issue" (but good at xcode4)

Everything is OK on Xcode4.6. When I try to use Xcode5 dp6 to run app on devices. I got an error of "No matching provisioning profiles found issue". How can I resolve this issue?

enter image description here

like image 211
liangwang Avatar asked Aug 27 '13 21:08

liangwang


5 Answers

Don't forget to change profile in Provision Profile sections: enter image description here

Ideally you should see Automatic in Code Signing Identity after you choose provision profile you need. If you don't see any option that's mean you don't have private key for current provision profile.

like image 113
Danil Avatar answered Nov 16 '22 06:11

Danil


What really confused me was that there are two different sets of build settings: 1) for the Project 2) for the Target

In the sidebar (top left) there is a blue icon that represents your project. Click that: enter image description here

Then in the main panel to the right, in the top bar, just to the left of the word, "General," there is a small icon of your Project. Click that, and now select the Target in the pop-up menu that appears:

the Target selection

Once you've selected the Target, now the build settings for the target can be changed. They are different than the ones for the Project itself... weird! I'm not sure why there are build settings for the Project as a whole, that are different from the Target, since the Target's settings are what gets used during building. So why even have settings for the Project? Not sure.

But that's how you change them. This solved the issue for me: go into the Target (not the Project!) under Code Signing > Provisioning Profile > and change the settings to the proper profile. For a long time I was just changing them in the Project only, since I didn't know I was supposed to select the Target, and I kept having this issue. This fixes it!

like image 28
CommaToast Avatar answered Nov 16 '22 08:11

CommaToast


Setting your provisioning profile moved. It confounded me for a while until I found it also.

  1. Select your project file (to open target)
  2. Click on the "Build Settings" tab
  3. Scroll down to "Code Signing" and see the new "Provisioning Profile" section there.

enter image description here

like image 7
DBD Avatar answered Nov 16 '22 07:11

DBD


OK - all answers provided above are correct to some extend, but did not resolve this issue for me. I'm using Xcode5.

There are lots of threads around this general error but from what I read this is a bug in Xcode dating back to 3.x versions that can randomly create conflicts with your Keychain.

I was able to resolve this by doing the following:

  1. Open Xcode -> preferences -> Accounts: delete your developer account

  2. Open Keychain: Select Keys, delete all iOS keys; Select My Certificates, delete all iPhone certificates

  3. Navigate to '/Users//Library/MobileDevice/Provisioning Profiles', delete all files (this is where Xcode stores mobile profiles)

  4. Open Xcode -> preferences -> Accounts: re-add your developer account

  5. Navigate to Project properties, Target, General Tab and you should see the following enter image description here

  6. Click 'Revoke and Request' (I tried this, it may take a few min) or 'Import Developer Profile' (or download from Apple developer portal and import this way, should be faster..)

  7. FINALLY: you can go over to Build Settings and set 'Provisioning Profile' and 'Signing Settings' as described by everyone here..

Doing this and only this resolved this error for me.

like image 6
AlexVPerl Avatar answered Nov 16 '22 07:11

AlexVPerl


Here's a simpler solution that worked for me:

In XCode5, double-click on your app's target. This brings up the Info pane for the target. In the "Build Settings" section, check the "code signing" section for any old profiles and replace with the correct one. update the value of "code signing identity" and "provisioning profile"

like image 3
guanhuiwit Avatar answered Nov 16 '22 06:11

guanhuiwit