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
and then check if an uuid is well configured :
$ security cms -Di yourUnzippedIpa/Payload/appName.app/embedded.mobileprovision | grep uuidYouWantToCheck
That's all !
I've put it together in a script file
Thanks for the gist, it saved me quite some time