ipa包重签名

1、准备.mobileprovision文件,需要与当前App匹配的,如App ID、Certificates、Devices、Enabled Services等;
2、导出entitlements.plist文件:

2.1、security cms -D -i embedded.mobileprovision > temp.plist;
2.2/usr/libexec/PlistBuddy -x -c 'Print:Entitlements' temp.plist > entitlements.plist

3、使用codesign重签名
3.1、列出证书id列表

security find-identity -v -p codesigning
1) xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "iPhone Developer: Yu Xi An (xxxxxxxxxx)"
2) xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "iPhone Developer: Yu Xi An (xxxxxxxxxx)"
3) xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "iPhone Distribution: Yu Xi An (xxxxxxxxxxx)"

3.2、签名

codesign -fs xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx --entitlements entitlements.plist xxxx.app

One thought on “ipa包重签名

  1. Pingback: tweak项目ipa包重签名 | 一天到晚游泳的余

Leave a Reply