$ brew install https://gist.githubusercontent.com/jackli0855/5690d4f41cb721c4859c11cb6cff2ca7/raw/5ae8a4a1ecfcefdc027976e51bde384ef7e7e6fd/imagemagick.rb
After exporting an ipa for Ad Hoc Deployment, it could be useful to check if all authorized devices are well configured in a provisioning profile. To read a provisioning profile you have to unarchive your ipa :
$ unzip your.ipa
find the embedded.mobileprovision file :
$ ls yourUnzippedIpa/Payload/appName.app/embedded.mobileprovision