分发平台http://fir.im/可以显示APP的开发证书的机器ID,实现证书mobileprovision的内容读取一直好奇是怎么做到的,找到实现方法如下。
使用命令行的方式,源码地址:0xc010d/mobileprovision-read
使用方法:
在Terminal下输入下面的命令并回车:
curl https://raw.githubusercontent.com/0xc010d/mobileprovision-read/master/main.m | clang -framework Foundation -framework Security -o /usr/local/bin/mobileprovision-read -x objective-c -
这条命令的作用是下载mobileprovision-read的源码,然后编译,最后把生成的二进制文件mobileprovision-read
放入到/usr/local/bin/
路径下。
现在你就可以执行mobileprovision-read
命令来查看帮助了。
命令:
mobileprovision-read -- mobileprovision files querying tool.
返回值:
USAGE
mobileprovision-read -f fileName [-o option]
OPTIONS
type – prints mobileprovision profile type (debug, ad-hoc, enterprise, appstore)
appid – prints application identifier
Will print raw provision's plist if option is not specified.
You can also use key path as an option.
EXAMPLES
mobileprovision-read -f test.mobileprovision -o type
Prints profile type
mobileprovision-read -f test.mobileprovision -o UUID
Prints profile UUID
mobileprovision-read -f test.mobileprovision -o ProvisionedDevices
Prints provisioned devices UDIDs
mobileprovision-read -f test.mobileprovision -o Entitlements.get-task-allow
Prints 0 if profile doesn't allow debugging 1 otherwise
查看UUID的命令是:
mobileprovision-read -f file-path -o UUID
查看设备ID的命令是:
mobileprovision-read -f file-path -o
ProvisionedDevices
原创文章如转载请注明:
你必须 登录后 才能对文章进行评论!