提取并解析IPA内plist文件

为了明确iOS发布包内申明的权限,写了脚本提取全部Info.plist文件,如果需要包含其他plist文件,也很容易修改:

For getting all permissions in an pre-publish ipa file, use following shell code to output all info.plist files content to result file as Json formatting:

Bash
IPA=xxx.ipa
result=xxxx.txt

rm $result
rm -r Payload
unzip $IPA `zipinfo -1 $IPA | grep -i info.plist`
ls ./Payload/**/Info.plist | xargs plutil -convert json
ls ./Payload/**/Info.plist | xargs -I {} sh -c "cat {} | python3 -m json.tool" > $result

发表回复

电子邮件地址不会被公开。必填项已用 * 标注