A command line tool to manage local provisioning profiles. Mostly useful in iOS development or for mobile CI/CD engineers.
Type mprovision help in your terminal to see the list of subcommands and options.
Most of subcommands work on ~/Library/MobileDevice/Provisioning Profiles
directory by default but you can specify a full path using a --source
argument.
mprovision list will show the list of all provisioning profiles installed in
your system.
- The
listsubcommand accepts an optional argument-tor--textthat allows you to filter the list of provisioning profiles by some text. - The
removesubcommand removes one or more profiles by their uuids or bundle ids.
The show subcommand followed by uuid of a provisioning profile allows you to
see details in xml format. Alternatively, you can use show-file subcommand if
you know exact path to a file.
The list subcommand accepts an optional argument -d or --expire-in-days
followed by a number of days and shows the list of profiles that will expire.
For example, the mprovision list -d 0 command will show profiles that have
already been expired.
The clean subcommand removes expired provisioning profiles.
NOTE: you can see provisioning profiles that will be removed using the
mprovision list -d 0command.
There is no special command for that but you can use the following hack:
mprovision list --oneline | wc -lUse the extract subcommand and pass source and destination.
mprovision extract MyApp.ipa MyApp/MIT