简体   繁体   中英

iOS resign IPA from appstore with developer profile

I am trying to resign iOS app which I downloaded from appstore with my own certificate how to do it I am stuck in that . I am using OS X Yosemite This is what I did

#  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

but it terminates without resigning showing this

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

Remove the --resource-rules parameter from the arguments list. You can use codesign without that parameter, given that you aren't using another parameter that requires it.

as information you provided, "--resource-rules" has been deprecated; so,

  1. check version of your system;
  2. remove the --resource-rules parameter

i can resign the ipa this way; but it can't run normally, it flashback. till now i have no idea about it;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM