A tool that helps iOS developers to manage local provisioning profiles. Written in Rust.
-
You need to install Rust Compiler either by downloading from official site or using rustup (which is preferable).
-
Run the following command:
cargo install --git https://github.com/zummenix/mprovision
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.
It's very simple: mprovision list
- The
list
subcommand accepts an optional argument-t
or--text
that allows you to filter the list of provisioning profiles by some text. - The
remove
subcommand allows you to remove one or more profiles by their uuids or bundle ids.
WARNING: the
remove
subcommand is relatively dangerous since it removes profiles from the system completely.
The show
subcommand followed by uuid of a provisioning profile allows you to see details
in xml format.
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 0
command.
Use the list
subcommand with opitons you want, set --oneline
flag and pipe into wc
,
like that:
mprovision list -d 30 --oneline | wc -l
MIT