I have some expired(unused) provisioning profile in my xcode. I want to delete them but the problem is in my ~/Library/MobileDevice/Provisioning\ Profiles/
folder the provisioning profiles are not saved with the name but a hexadecimal string like
03264601-561e-4185-b6b9-968b168d57a1.mobileprovision
31266708-96d8-4496-88ce-8c2a1681d5c6.mobileprovision
3d26aa08-16ef-4023-a563-ec77168a6043.mobileprovision
4926b573-36f4-4235-9519-5534168b3f9c.mobileprovision
4926eb37-a630-4ca4-989c-0e66168c3795.mobileprovision
6d26b1f0-0695-4bfc-9ae0-a2051680acac.mobileprovision
7c26c1da-a65f-4277-ac1d-c81116828035.mobileprovision
8626b58b-06f3-4aaf-8d1e-f9e61683572d.mobileprovision
af26b527-06d7-476a-888f-2d3a16829277.mobileprovision
f02695b0-6623-47ed-b766-cbb1168ab752.mobileprovision
How can I get the name of each provisioning so that I can delete them. I don't want to delete all and then reinstall the rest.
Just delete them all, then open Xcode > Preferences > Accounts > YourAccount > View Details and press the refresh button in the lower left corner. That will reload the latest versions from the Developer Portal.
You can as well navigate here, then right click on any Profile to open the folder where they are stored.
Easy Way
Go to the folder
~/Library/MobileDevice/Provisioning\ Profiles/
and select a profile and hit space bar you'll see something like thisGeeky Way
I have created the script GitHub/ListProvisioningProfileName. You can find the steps of usage there.
When you run the script it will show the output like below
$ list-provisioning-profile-name.sh
Example Output