iOS使用开发人员配置文件从appstore中撤消IPA

时间:2015-03-11 10:37:23

标签: ios certificate

我正在尝试使用我自己的证书从appstore下载的iOS应用程序辞职怎么做我被困在那里。我正在使用OS X Yosemite这就是我所做的

#  ResignApp.sh
#  
#
#  Created by Naveen P on 3/11/15.
#
IPA="/RnD/Dropbox\ 3.7.ipa "
PROVISION="/RnD/iOSTeam_Provisioning_Profile_.mobileprovision"
CERTIFICATE="iPhone Developer: ABCD " # must be in keychain
# unzip the ipa
unzip -q "$IPA"
# remove the signature
rm -rf Payload/*.app/_CodeSignature Payload/*.app/CodeResources
# replace the provision
cp "$PROVISION" Payload/*.app/embedded.mobileprovision
# sign with the new certificate (--resource-rules has been deprecated OS X Yosemite (10.10), it can safely be removed)
/usr/bin/codesign -f -s "$CERTIFICATE" --resource-rules Payload/*.app/ResourceRules.plist Payload/*.app
# zip it back up
zip -qr resigned.ipa Payload

但它终止而没有辞职显示此

Warning: --resource-rules has been deprecated in Mac OS X >= 10.10!
Payload/*.app/ResourceRules.plist: cannot read resources

2 个答案:

答案 0 :(得分:0)

从参数列表中删除--resource-rules参数。如果您没有使用需要它的其他参数,则可以使用不带该参数的codesign。

答案 1 :(得分:0)

作为您提供的信息," - 资源规则" 已被弃用; 所以,

  1. 检查系统版本;
  2. 删除--resource-rules参数
  3. 我可以这样辞职ipa;但它不能正常运行,它会闪回。 到现在为止我根本不知道;