On OSX is there any way to programmatically get the list of all iOS mobile provisioning profiles installed on the machine (that's the list you can see in XCode organizer)?.
Asked
Active
Viewed 2.6k times
2 Answers
44
It's probably the same list, but if you look in ~/Library/MobileDevice/Provisioning Profiles
you'll find the folder of provisioning profiles. So you can just use that path to generate a list (probably with NSFileManager)
Or do a search for extension .mobileprovision

Aleks N.
- 6,051
- 3
- 42
- 42

Scott Bossak
- 2,471
- 20
- 17
-
this was my first attempt, it works but it's not so smart. I would not depend on a physical path, I was looking for a solution using system calls. – Sirio Aug 21 '12 at 18:27
-
1this is the solution. No ways using system calls. – Sirio Jan 27 '14 at 19:11
-
1there's no `~/Library/MobileDevice` path on Mojave – runeks Aug 18 '21 at 16:18
27
Command line,
Step 1 : Open terminal and run this command to list profiles,
cd ~/Library/MobileDevice/Provisioning\ Profiles && ls
or this to open folder in finder,
open ~/Library/MobileDevice/Provisioning\ Profiles

Alenros
- 816
- 7
- 23

Mohammad Zaid Pathan
- 16,304
- 7
- 99
- 130