28

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)?.

Alenros
  • 816
  • 7
  • 23
Sirio
  • 991
  • 2
  • 12
  • 27

2 Answers2

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
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