List installed mobile provisioning profiles

2019-03-24 03:46发布

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

Thanks.

2条回答
神经病院院长
2楼-- · 2019-03-24 03:46

Command line,

Step 1 : Open terminal and run this command,

cd ~/Library/MobileDevice/Provisioning\ Profiles && ls

Enjoy.

查看更多
甜甜的少女心
3楼-- · 2019-03-24 04:10

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

查看更多
登录 后发表回答