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?
-
4Have to ask. Have you tried clicking the "Fix Issue" button?– Mick MacCallumAug 27, 2013 at 21:46
-
yes, i have tried on that, but not work– liangwangAug 28, 2013 at 13:42
-
8"Fix issue" just got stuck in a loop of supposedly fixing it for me. Regenerating certificates manually from the site and ensuring provisioning profile correctly set on the target (see images below) actually fixed it.– JasonSep 27, 2013 at 19:38
12 Answers
Don't forget to change profile in Provision Profile sections:
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.
-
-
@TomFishman Why Xcode doesn't require it? If you'd like to test your app on device you need provision profile with private key.– DanilApr 7, 2014 at 11:16
-
Xcode can handle it automatically now. We don't set it up any more. Apr 7, 2014 at 17:53
-
@TomFishman Do you mean "Fix issue" button which dosen't helps actually because sometimes you don't have provision for your bindle id? And how Xcode can get private key for your provision if you don't have it? I know you can generate a new private key in Xcode automaticaly but it's a really bad practice if you are working in team. So it's still an issue and a lot of developers work prefering manual settings– DanilApr 8, 2014 at 11:58
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:
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:
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!
-
This was exactly it for me; it's extremely confusing UI. If you could edit your screenshot to put a big red circle around the correct "Angel of View" piece, it might help others. I spent a few minutes re-reading and clicking. The project and target names are only shown about six times on the screen. ;)– JasonSep 27, 2013 at 19:32
-
Done. I added the circles. I agree, this aspect of XCode's UI is really confusing. Hence trying to help. Sep 28, 2013 at 14:30
-
Thanks a million times!! I wasted a couple of hours on this in the new XCode and was pulling my hair out. The Target setting are hidden in this new UI and I hate it! I wish Apple stops constantly fiddling with XCode ui and where things are.– R.SDec 13, 2013 at 8:45
-
1
-
Thumbs up!! I always missed the Target... Apple should change Target settings for us automatically when we change the Project settings. I remembered MSFT does that for VS products Mar 8, 2014 at 8:28
Setting your provisioning profile moved. It confounded me for a while until I found it also.
- Select your project file (to open target)
- Click on the "Build Settings" tab
- Scroll down to "Code Signing" and see the new "Provisioning Profile" section there.
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:
Open Xcode -> preferences -> Accounts: delete your developer account
Open Keychain: Select Keys, delete all iOS keys; Select My Certificates, delete all iPhone certificates
Navigate to '/Users//Library/MobileDevice/Provisioning Profiles', delete all files (this is where Xcode stores mobile profiles)
Open Xcode -> preferences -> Accounts: re-add your developer account
Navigate to Project properties, Target, General Tab and you should see the following
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..)
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.
-
You should be very careful doing this, you could lose private keys if you do this incorrectly.– BrettFeb 19, 2014 at 1:30
-
.. well the alternative is not being able to run your project at all :) Feb 21, 2014 at 19:36
-
-
you're a hero! Thanks for this advice. This fixed the problem for me! Apr 16, 2015 at 12:59
-
This worked for me. I agree with @TomFishman - step 2 wasn't necessary. Thanks! May 4, 2015 at 0:55
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"
Sometimes, especially after generating a new certificate or starting to use a new code signing identity, there seems to be no other way to fix this, other than doing some cleaning the .pbxproj file. This is probably a bug that will be fixed, so if you are reading this long after this post, maybe you should try some other solution.
There is an excellent post about this in the pixeldock blog: http://www.pixeldock.com/blog/code-sign-error-provisioning-profile-cant-be-found/
In short, mostly quoting from that article, you need to:
- Make sure you have fetched all your remote iTunes Connect certificates in xcode5 from Preferences, Accounts, (select your account), View Details, press refresh button. (Normally, I answer no when xcode asks if I want to create certficate signing requests, it's not necessary when you only want to download/refresh your certificates)
- Close Xcode
- Right click on your project’s .xcodeproj bundle to show it’s contents.
- Open the .pbxproj file in a text editor of your choice (make a backup copy first if you feel paranoid)
- Find all lines in that file that include the word PROVISIONING_PROFILE and delete them.
- Open Xcode
- Enter your target and select the provisioning profile that you want to use.
- Build your project
Good luck!
-
Removing just the line with PROVISIONING_PROFILE that contained the offending profile ID fixed my problem. Sometimes some old-fashioned text editing is best. Thanks! Apr 12, 2014 at 23:20
-
In xcode5 from Preferences, Accounts, (select your account), View Details, press refresh button. then select Provision Profile in build settings.
-
I had changed my password with developer.apple.com but not within xcode so it couldn't properly update my provisioning profiles. Make sure the saved password in xcode is the same.– JustinJan 24, 2014 at 2:30
In my case the "Fix Issue" button triggers a spinner for about 20 seconds and fixes nothing.
This works for me (iOS 7 iPhone 5, Xcode 5):
Xcode > Window > Organizer > Devices
Find the connected device(with a green dot) on the left pane. Select "Provisioning Profiles" On the right pane, there is a line with warning. Delete this line.
Now go back to click the "Fix Issue" button and everything is fine - the app runs in the device as expected.
I have 2 targets in my project, Free and Paid. My mistake was i was looking at my free target while trying to build the paid target, a stupid mistake but possible someone out there might learn from this as well.
I get the same question as you you can click here :
About the question in xcode5 "no matching provisioning profiles found"
(About xcode5 的no matching provisioning profiles found )
When I was fitting with iOS7,I get the warning like this:no matching provisioning profiles found. the reason may be that your project is in other group.
Do like this:find the file named *.xcodeproj in your protect,show the content of it.
You will see three files:
- project.pbxproj
- project.xcworkspace
- xcuserdata
open the first, search the uuid and delete the row.
All of drop down lists disappeared in Build Settings after running the Fix Issue in Xcode 5. Spent several days trying to figure out what was wrong with my provisioning profiles and code signing. Found a link Xcode 4 missing drop down lists in Build Settings and sure enough I needed to re-enabled "Show Values" under the Editor menu. Hopefully this helps anyone else in this predicament.
Also, I had to clear my derived data, clean the solution and quit and reopen Xcode into for the code signing identities to correctly appear. My distribution provisioning profiles where showing up as signed by my developer certificate which was incorrect.
I had the same error today, with XCode 6.1
What I found was that, no matter what I tried, I couldn't get XCode to stop complaining about this Provisioning Profile with a GUID as its name.
The solution was to search for this GUID in the .pbxproj file, which lives within the XCode .xcodeproj folder.
Just find the line containing your GUID:
PROVISIONING_PROFILE = "A9234343-.....34"
and change it to:
PROVISIONING_PROFILE = ""
One other thing to check: Your XCode PROJECT settings contain your Provisioning Profile & Code Signing settings, but, there is a second set under your project's "TARGETS" tab.
So, if XCode is complaining about a Provisioning Profile which isn't the one quoted in your project settings, then go have have a look at the settings shown under "TARGETS" in your XCode project.
(I wish someone had given me this advice, 4 painful hours ago..)
-
I deleted all the provisioning_profile statements. When I tried to build it, it offered the "Fix" option, but this time it worked. Feb 13, 2015 at 0:12