Delete provisioning profile from Xcode 5 - xcode

I've struggling with this for hours. I have 2 same provisioning profiles I've created and the new profile didn't substitute the old one (which expires 6 days earlier than the new one). Through the XCode 5 menu I can't seem to delete the duplicate provisioning profile. Any workaround in this situation?

If you delete the profile from the Apple development a/c and hit refresh in XCode (Using xcode>Preferences>Accounts) then these profiles will be gone.
You can remove them from the this directory on your machine:
"~/Library/MobileDevice/Provisioning\ Profiles"

In the Xcode Preferences, go to Accounts, then go to your apple ID, then click "View Details"
Click the provisioning profile which you would like to delete, then press the "delete" key ONCE. Then click the refresh icon for manually update the list(pretty counterintuitive...).
Using this method I was able to delete all but one copy of the same provisioning profile, after which the delete does nothing.

You probably don't need to delete the duplicate profiles. Just go to
Xcode / Preferences / Accounts / / View Details
and hit the refresh button.
I did this and my duplicate provisioning profiles disappeared. Now when I post builds to TestFlight the distribution lists are all correct.

In the Xcode Preferences--> Accounts, delete your account, add account again,click on your developer ID, press refresh, select provisioning profile again under build settings.
THATS IT. ALL YOUR PROBLEMS ARE SOLVED

I am using "iPhone configuration utility for Mac OS x" provided by apple for managing my all provisioning profiles for Xcode 5.
From apple's website:
iPhone Configuration Utility lets you easily create, maintain, encrypt, and install configuration profiles, track and install provisioning profiles and authorized applications, and capture device information including console logs.
You can download it from here
You can delete the provisioning profile:
Open the utility and select the provisioning profile from the list.
From the top menu select "Edit" than "Delete"

To remove any reference to an unwanted provisioning profile from XCODE 5 here is what I did:
1) Browse into the YOURAPP.xcodeproj directory
2) With vi I opened up the project.pbxproj file
3) Find PROVISIONING_PROFILE="ID_OF_THE_PROV_PROFILE_YOU_WANT_TO_DELETE"
In every instance I saw this in the file I just set it to "" and XCODE never gave me an error again.

All of the methods mentioned so far will still fail to delete certain "Managed by Xcode" profiles, which you may find will continually re-appear no matter what you do to delete them.
The problem seems to be that certain profiles are auto-generated by Xcode/Apple Developer Centre based on the App Ids you have. In my case I see one "Developer" profile per app ID (including the wildcard).
I would imagine that the only way to get rid of these is to remove the App Id itself through the Dev Centre. Often this is not possible since the Dev Centre will complain that the app "...exists in the App Store so it cannot be removed" - even when the app in question is not actually in the store.

None of the previous suggestions worked for me. What did finally eliminate the unwanted profiles was the following:
Remove the developer account from Xcode > Accounts
Quit Xcode.
Delete the unwanted provisioning profiles in the developer portal.
Delete all the files ~/Library/Developer/Xcode/DeveloperPortal*.*
Empty the trash.
Restart Xcode and add the developer account back in.
I was thrashing around so this might not be quite the magic formula but something along those lines. By design, Xcode automatically creates provisioning profiles based on the app identifiers set up in the developer portal with names like "Mac Team Provisioning Profile: ". This is a great feature but it adds to the confusion with this deletion issue.

From my experimentation i believe that Xcode pulls the provisioning profiles straight from the dev center.
i say this because i created a new provisioning profile from the dev center and it appeared in Settings > Accounts before i double-clicked the .mobileprovision file.
So basically, delete the profiles from developer.apple.com

In my case this worked:
Right click on a provisioning profile in the accounts tab -> view details panel.
Click the option show in finder -> delete them directly in finder.

For all the people who are seeing the profiles magically reappear after deleting them and hitting refresh, simply wait a few minutes after deleting and before hitting the refresh button.

For deleting provisioning profile we can use iPhone Configuration Utility software.
iPhone Configuration Utility Software -> Install this software -> Open Software -> Provisioning Profiles -> find list of your all profile -> Press Backspace button, it will ask to delete provisioning profile ->Click on delete provisioning profile button. So it will remove it from your existing Xcode application and even from your PC.

I've figured out that it takes some time interval to sync between local path of the provisioning(~/Library/Developer/Xcode/DeveloperPortal) and the iTunesConnect server. So once you have deleted your provisioning profile on the local path and on the iTunesConnect server (you should remove both for clearing), you need to wait at least 5 minutes, otherwise you will see the files you've deleted again on the local path when you try to press 'fix it' button in Xcode.

Related

How to delete a provisioning file for xcode

I ever tried to create a provisioning file and certificate in the apple's developer manager web page.And latter on,I want to delete them all.I did delete the certificate,while I just failed to do so with the provisioning file.Here is the issue:
I logged in the Apple's Developer Manage Web page and delete the provisioning file.then I refresh the web page.It seemed to be
successful.
I open my Xcode and click the preference menu the view all the
provisioning files.And I did open the directory and deleted all the
provisioning files I had downloaded already.and then I refresh the
panel.It seemed to be the same as the web page.I clicked "download
all".
I closed the Xcode window and exit.
4.I refreshed the web page.The provisioning file that I want to delete appeared again with a suffix “managed by Xcode”.
So could any kind guy tell me what this shit really is and how to delete this shit?Please,give me some help.
Navigate to
~/Library/MobileDevice/
and delete all the profiles from there
Goto https://developer.apple.com/account/ios/profile/
Choose the provisioning profile you want to delete. You will see the image below. Use the Delete button.

Provisioning Profiles menu item missing from Xcode 6 (as opposed to Xcode 5)

Xcode 6 does not have a menu item to access provisioning profiles. How can one manage existing provisioning profiles (list, delete, etc)?
For reference purposes, a similar question was asked pertaining to Xcode 5:
Provisioning Profiles menu item missing from Xcode 5
I commented on the selected answer that in Xcode 6 the Accounts tab now shows Repositories. I was encouraged to start a new question to help others find information relevant to Xcode 6.
Adding Apple ID
As Bo A points out, in order to see more than just Repositories, you need to add an Apple ID.
Select Xcode -> Preferences...
On the Accounts tab, click on the + sign in the lower left corner and select Add Apple ID...
Fill out the required information and select Add.
This addresses the part of the question that indicates that the Accounts tab just shows Repositories.
Listing provisioning profiles
As Nikos M. points out, you can select an Apple ID and then the View Details... button to see your provisioning profiles (and signing identities).
Deleting provisioning profile
Another part of the question was asking about how to delete a provisioning profile (in addition to listing). It appears that there are two steps to this process:
Right click on a provisioning profile (that you listed from above) and select Show in Finder. You can then move the highlighted item to the trash.
Go to the Member Center on developer.apple.com and follow links to the section on Certificates, Identifiers & Profiles. Find and delete the provisioning profile of interest.
If you only remove the provisioning profile on developer.apple.com, I found that the profile still exists on your computer locally (not sure if it is eventually synced or if there is a way to force sync).
If you only remove the profile locally you may be okay for a while, but deleting and re-adding your Apple ID will cause the profile to reappear on your local machine.
The accounts tab shows both Apple IDs and Repositories (as well as "servers"). Make sure you have added your Apple ID by clicking the + icon at the bottom left.
In the accounts tab in Xcode preferences, select the account you want (appleID not repository) and click the view details button at the bottom right corner. There you will see both your certificates (at the top section) and the provisioning profiles for that account (at the bottom section).

Xcode Provisioning Profile Expiring

I'm trying to clear a couple non-fatal errors from a couple projects. They are both "Target Integrity" "Provisioning profile is expiring: . . . ".
Yet, I don't have the Provisioning profile that's expiring as a part of the project in any way. Can anyone tell me why it might be giving me an error like this for a Provisioning profile that is being used only by a different project?
Had the same problem. This is how to fix it:
Open Xcode > Preferences > Accounts
Click 'View Details' on the relevant account, and you'll see all associated provisioning profiles will open in a list. Sort the list by expiration date to find expired profiles, and for each one right click and choose 'show in finder'. Then you can simply delete it.
When you delete an expired profile in the finder it immediately disappears from Xcode and from the warnings panel.
You can find your provisioning profiles in
~/Library/MobileDevice/Provisioning Profiles/
There you can see all your provisioning profiles, but it's difficult to know which one is which because they are named with a UUID.
However, you can install this QuickLook plugin to see details about each profile and delete the ones that are expired:
https://github.com/chockenberry/Provisioning
The warning disappears instantly from Xcode after you delete the profile.
EDIT:
An easier method to clean up old profiles may be to download iPhone Configuration Utility from here:
http://support.apple.com/downloads/#iphone%20configuration%20utility
It gives you a nice overview over you installed profiles and they can be deleted as well.
Xcode -> Preferences -> Accounts -> View Details
Then select that particular provisioning profile and click refresh button.
If you are still having warning then go to
https://developer.apple.com and
select provisioning profile and click edit and then done. After that do the refresh procedure described before in X-Code
sigh manage -e to delete all expired profiles
sigh repair will renew all profiles (requires login)
https://github.com/fastlane/sigh
One liner here. No need to download plugins, utilities and all that crap.
ls | grep -l 'com.companyname.AppName' ~/Library/MobileDevice/Provisioning Profiles/*.mobileprovision | xargs rm
In the end, I simply went into my Developer's account and renewed the expiring provisioning profile, even though I don't need/use it any more. Error is gone.

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?
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.
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!
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.
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!
In xcode5 from Preferences, Accounts, (select your account), View Details, press refresh button. then select Provision Profile in build settings.
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..)

Xcode build warning - Target Integrity - Provisioning profile is expiring only for the ProjectnameTests Target

All my apps that i've created so far do this. It does nothing to the app or being able to run it but it's just annoying always having that 1 warning.
I'm Using
Xcode 4.2
OSX 10.7.3
This is the actual warning:
-Target Integrity
Provisioning profile is expiring
Here's an image of it just so I don't have to try and explain. (Edited it and put 'Project' where my actual project name was for privacy)
Thanks for any help!
I had the same issue.
Worked out in the end it was Xcode warning about some expired profiles generally - not ones specifically linked to the current project.
To fix I went to Organizer/ Devices Tab and under Library select Provisioning Profiles
I had two profiles in the list that had expired - I didn't need them so I just right clicked and deleted them.
Warning then went away.
This is a bit different with Xcode 5 now when working with Teams ...
I go the same warning of an expiring old profile which didn't exist anymore - but it still did exist in the local Account setting for the connected team in Xcode (Xcode -> Preferences -> Accounts -> <team account in question> -> View Details). So I just did a refresh on these profiles, and yes, the warning was gone.
Unfortunately there are many more expired profiles for other apps in this team account which I just synched into my local Account setting (and I can't just remove them, as it's a client's account ..) - and now Xcode complains about all of them being expired. Guess you should be happy with what you got sometimes, it can get worse ...
I got the same warning on my old project today.
I tried this, and the warning went away.
At 'Build Settings' -> 'Code Signing Identity', Choose 'Automatic Profile selector'.
For Xcode 6 you need to:
go to the Preferences (Cmd + ,)
Accounts
choose your account
choose your team
Click view details
Choose provisioning profile from warning
right click (show in Finder)
remove from Finder
Now the warning should disappear or you will need to repeat above steps for another warning
I deleted all the provisioning profile from
cd ~/Library/MobileDevice/Provisioning\ Profiles/
and it's gone.
You can use this shell script the get the names of the provisioning profiles
It is a warning that your provisioning profile is about to expire and you should renew it.
You can do this at Apple's developer center website. If your developer profile program is also about to expire, you should renew it too.
I had to also restart Xcode after deleting the old profiles to get the warnings to go away.
I have the similar problem, Xcode say one provisioning profile is expiring.
Then I go to the developer.apple.com to delete the expiring provisioning profile, it fixed.
Hope can help you.
I had this problem because a provisioning profile I used was signed with a certificate that was revoked/expired. First, go to the member center and delete expired and invalid provisioning profiles. Regenerate the ones you need. To clean up Xcode, go to Preferences-> Accounts, select your account.
Click view details.
Right click any profile -> Show in finder. Delete all of them. Then go back to XCode, close details and reopen (to refresh) and re-download the ones you need (there'll be a download button for each profile).
Warning gone. Xcode might complain about code signing issues, but clicking "Resolve" automatically clears this up.
Then everything worked.

Resources