IPA包重签企业证书

1. 需要有有效企业证书和描述文件(xxx.mobileprovision)及对应的Bundle identifier

image.png

2.将ipa包的文件后缀改为zip格式,在解压!

image.png

 

image.png

3.打开Payload文件,右击选择显示包内容

image.png

4.找到一个叫embedded.mobileprovision文件,用我们自己的描述文件进行替换(注意:自己的描述文件名字一定要改成embedded.mobileprovision)

image.png

5.使用embedded.mobileprovision制作entitlements.plist 文件,打开终端

 

xianghaodeMacBook-Pro:~ Johnhao$ security cms -D -i /Users/Johnhao/Downloads/Payload/LotteryProject.app/embedded.mobileprovision > /Users/Johnhao/Downloads/Payload/LotteryProject.app/entitlements_full.plist
xianghaodeMacBook-Pro:~ Johnhao$ /usr/libexec/PlistBuddy -x -c 'Print:Entitlements' /Users/Johnhao/Downloads/Payload/LotteryProject.app/entitlements_full.plist  > /Users/Johnhao/Downloads/Payload/LotteryProject.app/entitlements.plist 

security cms -D -i embedded.mobileprovision文件路径 > 生成entitlements_full.plist文件的路径

/usr/libexec/PlistBuddy -x -c 'Print:Entitlements' entitlements_full.plist文件的路径 > 生成entitlements.plist文件的路径

6.完成以上步骤后,打开info.plist文件,更改我们自己描述文件对应的bundle id

image.png

7.重签,安装一下步骤执行,出现replacing existing signature说明你成功了!就可以发布到蒲公英或者fir.im了。

 

xianghaodeMacBook-Pro:~ Johnhao$ /usr/bin/codesign --continue -f -s "iPhone  Distribution: Xiaofu Ecommerce (Beijing) Co., Ltd." --entitlements "/Users/Johnhao/Downloads/Payload/LotteryProject.app/entitlements.plist" "/Users/Johnhao/Downloads/Payload/LotteryProject.app"

/Users/Johnhao/Downloads/Payload/LotteryProject.app: replacing existing signature

/usr/bin/codesign --continue -f -s "证书(在钥匙串访问中找到你的企业证书,在右击显示简介,拷贝组织)" --entitlements "entitlements.plist路径" "app文件路径"

image.png

最后:谢谢你的阅读


 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值