[ios] How to remove provisioning profiles from Xcode

Does anyone know how to remove previously installed provisioning profiles from Xcode?

I have seen this link, but I am not able to find that location in my system.

So I think there must be some other way to remove provisioning profiles.

This question is related to ios xcode provisioning-profile ios-provisioning

The answer is


It's simple, go to this folder:

~/Library/MobileDevice/Provisioning\ Profiles/

Open finder on your mac, and click on Go -> Go to Folder ... Just paste this into the search bar and hit Open. It will show the list of provisioning profiles present in Xcode. Delete all provisioning profiles.


Here is how I do it.

Open Finder
Enable it to show hidden files (CMD_SHIFT_.)
Go to ~/Library/MobileDevice/Provisioning\ Profiles
Delete the profile you wish ...

For XCode 9.3, the following steps worked for me.

  1. Go to Applications > Utilities > Keychain Access
  2. Under the login option on the left panel, find Apple Worldwide Developer Relations Certification Authority. Double click to get the options under it.
  3. Under the Trust option, change the When using this certificate option to Always trust .
  4. Exit the keychain access window, quit Xcode and restart Xcode. Rebuild the application. It should work now.

I found out how to find provisioning profiles in Xcode 8. Archive your project (Product -> Archive) and then hit the validate button. Xcode will prepare the binary and the entitlements. When the summary windows comes up just hit the little arrow at the right of the window. A finder window will open with all your downloaded profiles.enter image description here


Post deleting and adding your new profile, you can verify if the profile is active and been take by your project by running below command.

grep -i "yourproject" *.mobileprovision

In Xcode 7:

  1. Go to Preferences > Accounts > Select your account and click View Details...
  2. In the Provisioning Profiles section, right click on the profile you want to delete and choose Move to Trash.
  3. Click Download all to get all the latest profiles for your account, or click Download next to the profile.
  4. Do a sanity check in your project's target(s) Build Settings so each target is indeed using the profile you want.

Update for Xcode 8.3

This no longer works in Xcode 8.3. It appears to be related to Apple's move to automate provisioning profile and certificate generation:

The simplest "solution" (or workaround) is to make sure Xcode is closed, then via Terminal:

rm ~/Library/MobileDevice/Provisioning\ Profiles/*.mobileprovision  

In Xcode 7 & 8:

  1. Open Preferences > Accounts

  2. Select your apple ID from the list

  3. On the right-hand side, select the team your provisioning profile belongs to

  4. Click View Details

  5. Under Provisioning Profiles, right-click the one you want to delete and select Move to Trash:


I was able to delete my Provisioning Profile from XCode 6 by using the Member Center online. I then just did a refresh/Sync in XCode 6 and it disappeared.

In the Apple Developer Member Center I had to do two things to make it happen:

  • Under under Identifiers -> AP IDs I had to first delete the old AP ID still using the old Provisioning Profile that I wanted to delete.
    • This step was crucial for me. If I just deleted the Provisioning Profile alone without the APP ID still using it, the Profile re-appeared in XCode after a Sync.
  • Under Provisioning Profiles I then deleted the unwanted provisioning profile.

In XCode:

  • Under Preferences > Accounts, clicking on my apple ID and View Details... I Sync'd my online provisioning profiles.
  • The Provisioning Profile removed itself from the list.

. Simple Steps:

1:Click finder

2:Right click on Finder
3:click on goto folder

4: Paste in Search : ~/Library/MobileDevice/Provisioning Profiles

5:Click on Go

6:List of the Profiles .you can delete any one

Thanks

You'll want to restart XCode to refresh the list.


-Download iPhone configuration utility tool

-open it-> In Library section:- select provisioning profile(Left side of tool)

-select provisioning profile(which you want to delete) using back space delete it.


Provisioning profiles are stored under settings > accounts. Just press the "View details..." for the developer account you want and the provisioning profiles will be listed there.


  1. Open Terminal
  2. cd ~/Library/MobileDevice/
  3. open ./

Now the finder window will be open with Provisioning Profiles folder. Delete all or any provisioning profiles from here and it will reflect in Xcode.


In xcode 6, provisioning profiles are stored under Xcode > Preferences > accounts. Press "View details". On selecting your profile, you will get option to revoke it under settings(gear) icon below.


In Xcode 6, you can do this mostly right in Xcode:

  1. Go to Xcode -> Preferences -> Accounts.
  2. Choose your Apple ID in the left column.
  3. In the right pane, click the "View Details..." button.
  4. Right-click on the provisioning profile you want to delete, then click "Show Details".
  5. A Finder window will open up with the provisioning profile highlighted.
  6. Delete the selected provisioning profile.

With Xcode 9.3, this seems to be resolved by cleaning the project, quitting and restarting Xcode, and, after the restart, cleaning the build folder (hold Option and select Product->Clean Build Folder).

During the restart I happened to have the Xcode signing-info panel open on the Project navigator and saw a transient message that Xcode was rebuilding the signing profile. Upon trying to run my project on a device, I got a runtime exception due to a Swift framework file having an invalid signature. The second "Clean Build Folder" cleared that up and all works fine now.


open your terminal then use this command

cd /Users/youruser/Library/MobileDevice/Provisioning\ Profiles/

check first inside your folder by use this command

ls

then if all files not use, delete by use this command

rm *

For Xcode 7, brandonscript has the correct answer.

For earlier versions:

  1. Log in to the Apple Developer member centre and delete the profile there: https://developer.apple.com/account/ios/profile/profileList.action
  2. In Xcode you go to Preferences > Accounts and click on your apple ID and View Details...
  3. Then Sync your online provisioning profiles to your local machine and the deleted ones will be removed from the list:

synchronise provisioning profiles


Examples related to ios

Adding a UISegmentedControl to UITableView Crop image to specified size and picture location Undefined Symbols error when integrating Apptentive iOS SDK via Cocoapods Keep placeholder text in UITextField on input in IOS Accessing AppDelegate from framework? Autoresize View When SubViews are Added Warp \ bend effect on a UIView? Speech input for visually impaired users without the need to tap the screen make UITableViewCell selectable only while editing Xcode 12, building for iOS Simulator, but linking in object file built for iOS, for architecture arm64

Examples related to xcode

Undefined Symbols error when integrating Apptentive iOS SDK via Cocoapods Xcode 12, building for iOS Simulator, but linking in object file built for iOS, for architecture arm64 iPhone is not available. Please reconnect the device Make a VStack fill the width of the screen in SwiftUI error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65 The iOS Simulator deployment targets is set to 7.0, but the range of supported deployment target version for this platform is 8.0 to 12.1 Xcode 10.2.1 Command PhaseScriptExecution failed with a nonzero exit code Git is not working after macOS Update (xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools) Xcode 10: A valid provisioning profile for this executable was not found Xcode 10, Command CodeSign failed with a nonzero exit code

Examples related to provisioning-profile

No signing certificate "iOS Distribution" found Xcode 8 shows error that provisioning profile doesn't include signing certificate Code signing is required for product type 'Application' in SDK 'iOS 10.0' - StickerPackExtension requires a development team error Xcode 7.2 no matching provisioning profiles found How to remove provisioning profiles from Xcode An App ID with Identifier '' is not available. Please enter a different string The executable gets signed with invalid entitlements in Xcode Is there a way since (iOS 7's release) to get the UDID without using iTunes on a PC/Mac? Find provisioning profile in Xcode 5 Xcode5 "No matching provisioning profiles found issue" (but good at xcode4)

Examples related to ios-provisioning

No signing certificate "iOS Distribution" found How to remove provisioning profiles from Xcode Proper way to renew distribution certificate for iOS How to re-sign the ipa file? Test iOS app on device without apple developer program or jailbreak