我想使用自己的证书重新签署从应用商店下载的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